Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
killertofu
 
Posts: n/a
Default Creating UPC Codes...


Hey people, first timer here. Didn't exactly know where to put this, so
I followed the big red typing...

Anyway, currently, we use excel to create UPC codes for our products.
I was wondering how to make it more streamlined, and possibly
automatic...

Let me explain how it works. Columns A-F are six seperate fixed
numbers that correspond to our six digit vendor code. Then, in cells
G-K, we have a 5 digit number, starting at 30001 that gets one bigger
for each UPC (30001, 30002, 30003, etc).

There are several more issues I need to address later about making this
UPC code generator automatic, but for now, I would like to know how I
can make excel generate consecutive numbers for the last 5 digits.
Each digit must be in a seperate column, and it has to create a 5 digit
number (30001, 30002, 30003, etc).

Thanks for your help, if you can answer this one, I will give you a
more challenging one later...

KillerTofu


--
killertofu
------------------------------------------------------------------------
killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024
View this thread: http://www.excelforum.com/showthread...hreadid=506922

  #2   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default Creating UPC Codes...

I think this might work for you:

Manually enter the number in cells G1:K1. Then, enter the following
formulas in cells G2:K2. Copy down as many rows as you need.

G2 = MID(CONCATENATE(G1,H1,I1,J1,K1)+1,1,1)
H2 = MID(CONCATENATE(G1,H1,I1,J1,K1)+1,2,1)
I2 = MID(CONCATENATE(G1,H1,I1,J1,K1)+1,3,1)
J2 = MID(CONCATENATE(G1,H1,I1,J1,K1)+1,4,1)
K2 = MID(CONCATENATE(G1,H1,I1,J1,K1)+1,5,1)

Note: This will give the results as text. If you need the results to still
be numbers, then just put the above formulas within a VALUE() function.

=VALUE(MID(CONCATENATE(G1,H1,I1,J1,K1)+1,1,1))

HTH,
Elkar

"killertofu" wrote:


Hey people, first timer here. Didn't exactly know where to put this, so
I followed the big red typing...

Anyway, currently, we use excel to create UPC codes for our products.
I was wondering how to make it more streamlined, and possibly
automatic...

Let me explain how it works. Columns A-F are six seperate fixed
numbers that correspond to our six digit vendor code. Then, in cells
G-K, we have a 5 digit number, starting at 30001 that gets one bigger
for each UPC (30001, 30002, 30003, etc).

There are several more issues I need to address later about making this
UPC code generator automatic, but for now, I would like to know how I
can make excel generate consecutive numbers for the last 5 digits.
Each digit must be in a seperate column, and it has to create a 5 digit
number (30001, 30002, 30003, etc).

Thanks for your help, if you can answer this one, I will give you a
more challenging one later...

KillerTofu


--
killertofu
------------------------------------------------------------------------
killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024
View this thread: http://www.excelforum.com/showthread...hreadid=506922


  #3   Report Post  
Posted to microsoft.public.excel.misc
killertofu
 
Posts: n/a
Default Creating UPC Codes...


Winner, winner, chicken dinner...

Thanks homes, you're a genius. You shoulda seen my previous formulas
that were in there. IF within IF within IF. It was messy.

Speaking of concatination, if you have time, do you think you could
explain what the function is actually doing? I'm one of those people
who has to know why it's working.


--
killertofu
------------------------------------------------------------------------
killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024
View this thread: http://www.excelforum.com/showthread...hreadid=506922

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I have Bar Codes appear in Excel? Max Excel Discussion (Misc queries) 2 September 20th 05 04:03 PM
VBA Codes smck Excel Worksheet Functions 2 May 11th 05 10:03 AM
Excel doesn't sort zip codes properly [email protected] Excel Discussion (Misc queries) 4 February 4th 05 12:30 AM
Printing zip codes that start with 0 ET13 Excel Discussion (Misc queries) 0 January 16th 05 11:47 PM
Set column to only allow certain codes??? Buttercup Excel Worksheet Functions 1 January 6th 05 08:29 PM


All times are GMT +1. The time now is 02:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"