help with extracting part numbers in a text format

Jeffrey Green

Well-known Member
Joined
Oct 24, 2007
Messages
1,021
We have access to a client system. the problem column is the Part Number column. Some parts start with 0, 00, 000. Some also start with a leading 0, but have a non-numeric character in them. Those are fine. They come in as text.

The only way we can get their data into our system is to "extract" and the only option when we "extract" from their portal is into Excel 97-2003.

We we do that, our excel brings in the part numbers that contain only numeric characters as numbers, and then drops the leading zeros. Their IT cannot seem to get us a text file.

How can i get excel on our end to default all columns as text before opening their file?
Is that even possible?

thanks
 
Last edited:

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
What kind of a file is that you are opening?
If it is a Text file, it should invoke the Import Wizard, where you can designate the field type of each field (so you can set it to text).
 
Upvote 0
Is it a CSV file? What is the extension on the file?

If it truly is an Excel file, you cannot control how Excel already brings it in because it is already in Excel format!
You would create a process for updating/fixing that field after you open it up.
 
Last edited:
Upvote 0
Jeffrey, it's hard to believe that your client's export options don't allow for creation of a .csv or .txt file. You may have to output first to one of these formats, and then open that file with Excel and Save-As an Excel extension.
 
Last edited:
Upvote 0
i did manage to open it with anothe program, but if i open in Wordpad, i only get HTML. I even cleaned up the HTML, but only got less than half the rows from the table
 
Upvote 0
If they are truly exporting to Excel, and the leading zeroes are missing, then the dropping off the leading zeroes is happening on their end, and there isn't much you can do about it unless you can figure out how many leading zeroes should be there. Then you can create some formulas or VBA to add them back in.

The reason I was asking about the text files, because I have seen this issue with CSV files. CSV files automatically open in Excel by default, but do text and date conversions like that. As such, you should never use Excel to view a CSV file is you truly want to see what is in there (use a Text Editor). But that does not sound like the case here, from what you are telling us.

i did manage to open it with anothe program, but if i open in Wordpad, i only get HTML. I even cleaned up the HTML, but only got less than half the rows from the table
This makes me question whether or not it truly is an Excel file, or a file in another format that you are opening in Excel. What is the file extension?
 
Upvote 0
Solved. it is truly excel 97. I called their IT and they are looking at other options. Thanks everyone. I ended up finding the 5000 parts and extracting them into HTML and stripping out the HTML . . . .
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,636
Members
452,662
Latest member
Aman1997

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