How to combine these 11 cells into one cell for upc formula?

Rocky2889

New Member
Joined
Feb 1, 2005
Messages
14
Currently I am using this formula for UPC code generating. But the problem is I have all digit 11 cells. Is there anyway to combine into cell. Here is the formula.

=MOD(10-(MOD(((A1+C1+E1+G1+I1+K1)*3)+(B1+D1+F1+H1+J1),10)),10)

Thanks

Rocky
 
Not sure if the last post will depict the image properly.

So:

Cell A1 (User Input): 268268-12345

Cell C1 (Calculated): =MOD(10-(MOD(((MID(A1,1,1)+MID(A1,3,1)+MID(A1,5,1)+MID(A1,8,1)+MID(A1,10,1)+MID(A1,12,1))*3)+(MID(A1,2,1)+MID(A1,4,1)+MID(A1,6,1)+MID(A1,9,1)+MID(A1,11,1)),10)),10)

Cell E1 (Calculated): =REPLACE(A1,7,1,"")&C1
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,215,945
Messages
6,127,840
Members
449,411
Latest member
adunn_23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top