+ Reply to Thread
Results 1 to 16 of 16

Entering a barcode without getting +12 formatted in

  1. #1
    Registered User
    Join Date
    09-22-2007
    Posts
    81

    Entering a barcode without getting +12 formatted in

    I'm trying to copy about 10,000 barcode over to a new spreadsheet, the prob is that when I copy them over they appear as XXXX+12 and then when I try and use them it doesn't like it. I can solve it if I format the column to text - and then double click it. This is ok for a hundred or so but fingers start to hurt after that! lol

  2. #2
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Entering a barcode without getting +12 formatted in

    Have you tried formatiing the column to text before you copy the barcodes there?

  3. #3
    Registered User
    Join Date
    09-22-2007
    Posts
    81

    Re: Entering a barcode without getting +12 formatted in

    I did but it seems to get reformatted once I have pasted in the barcodes ...

  4. #4
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Entering a barcode without getting +12 formatted in

    Try Paste Special and select values from the list!

  5. #5
    Registered User
    Join Date
    09-22-2007
    Posts
    81

    Re: Entering a barcode without getting +12 formatted in

    ah just noticed that it is copying from a spreadsheet that alreadys stores them as XXE+12 .... so can't paste it over like suggested. ... any other ideas?

    Cheers

  6. #6
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Entering a barcode without getting +12 formatted in

    Just format the column as a number with 0 decimal places, no commas and widen the column so you can see all the digits!

    As long as it contains less than 15 digits in the barcode it will display them all!

  7. #7
    Registered User
    Join Date
    09-22-2007
    Posts
    81

    Re: Entering a barcode without getting +12 formatted in

    You have saved me hours!! lol that simple.

    Thank you mate!!! brilliant phew lol

  8. #8
    Registered User
    Join Date
    09-22-2007
    Posts
    81

    Re: Entering a barcode without getting +12 formatted in

    So close ... however now it is a number if the barcode has a zero infront of it as I've found out many do lol ... then it deletes the zero ( I understand that as it isn't of any value as a number ). But this is confusing my program and won't scan properly.

    So I need to keep the zero infront whilst stopping the E+12 thingy

  9. #9
    Forum Contributor GuruWannaB's Avatar
    Join Date
    01-24-2008
    Location
    An hour due East of Cowtown Ohio
    MS-Off Ver
    2010
    Posts
    421

    Re: Entering a barcode without getting +12 formatted in

    Let's say column A has your number (minus the starting 0's) and are supposed to be 15 digits long (if the starting 0 was there)

    In column B put in

    Please Login or Register  to view this content.
    It looks to see if the length of the number is 14 and if so, puts in a 0 at the beginning...otherwise if its not...it just copies it over.
    Last edited by GuruWannaB; 03-04-2009 at 06:12 PM.
    I help because of the Pavlovian dog that resides in the inner me...so if you are happy with the results, please add to my reputation. It helps keep me motivated!



    Please mark your threads as Solved once it is solved. Check the FAQ's to see how.

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Entering a barcode without getting +12 formatted in

    once its storred e+12 the leading 0 will disappear when you convert it back
    to do them all at once use data text to columns/next/next select text ,click ok
    then in another column use
    =TEXT(A1,"00000000000000") with as many 0's as you need string length to be
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  11. #11
    Registered User
    Join Date
    09-22-2007
    Posts
    81

    Re: Entering a barcode without getting +12 formatted in

    So I can force the number of characters in the column and it would replace infront with zeros?

    Only little prob is I have a DB with 20,000 barcodes some with shorter and some with longer, no set length.

    Is there no way I could just ask excel not format anything and display everything then copy it all over.

    I've also noticed mainly I think with CSV files but occassionaly the barcodes will all become the same code? Ever noticed this>??

    Thank you

  12. #12
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Entering a barcode without getting +12 formatted in

    arnt you using standard length bar codes? 11 digits i think for upc

  13. #13
    Registered User
    Join Date
    09-22-2007
    Posts
    81

    Re: Entering a barcode without getting +12 formatted in

    nah some are longer some are shorter not sure if the wholesaler create some or what but what about ... dreamt about this lol

    If I/we created a visual basic macro type thingy to click each row in the column, then format the cell as text. I've found that if I manually click the cell with the barcode once it has been formatted to Text it will display the whole barcode - could this be done?

  14. #14
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Entering a barcode without getting +12 formatted in

    to do them all at once use data text to columns/next/next select text ,click ok

    does just that

  15. #15
    Registered User
    Join Date
    09-22-2007
    Posts
    81

    Re: Entering a barcode without getting +12 formatted in

    Erm... stupid question but what do you mean? How do I do this

  16. #16
    Registered User
    Join Date
    09-22-2007
    Posts
    81

    Re: Entering a barcode without getting +12 formatted in

    Don't worry figured it out ... basically as you said Data - Text to columns - text - ok

    Perfect!

    Oh and again Thank you very much
    Last edited by robert_harper; 03-05-2009 at 02:10 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1