Help me with Excel, please.
January 16, 2008 7:13 PM
Subscribe
Can someone help me come up with an Excel formula? I have a column, and each row in the column has a 9 or 10 digit number. I want to apply a formula that will recognize only those numbers with 9 digits and when one is discovered, it should place a "0" in front of the number to make it a 10-digit number. I will explain why inside.
I am exporting a LibraryThing catalog into Excel as a CSV. In the ISBN column, all ISBNs that begin with a zero lose the zero after it is imported because Excel will not recognize numbers as text until I tell it to, but I have to open the spreadsheet first, and by that time, the damage is done. I have lost my zeroes. I do not want to have to go through it and insert the zero manually on each number. I know how to make the zero stay there after I have re-inserted it, but how can I get the zeroes to re-appear without manually doing it? There are hundreds of ISBNs.
posted by foxinthesnow to technology (7 comments total)
3 users marked this as a favorite
If you have a blank workbook open, on the Data menu, select Import External Data, then Import Data.
Find your file, then click Open. Pick "Delimited," if it's a CSV file. Click next, then uncheck Tab and check comma. Check "treat consecutive delimiters as one." Click next.
On this page, select the offending column and pick "text." Click finish, and you should be good.
posted by "Tex" Connor and the Wily Roundup Boys at 7:21 PM on January 16, 2008