Help with imported data from ERP system - issues with leading zeros, text to date

schbrownie

New Member
Joined
Aug 2, 2013
Messages
6
I just started at a new company and am having issues using the information I have pulled from our ERP system (SyteLine, which uses a SQL back end) into excel. The problem is the formatting of our sku's... there is no common part number format across all of our product lines. Some start with letters and some start with numbers. The length varies from 1 to 30 characters. Some of the SKU's have leading zeros and the sku "000001" is a different part than "001". In addition to letters and numbers, the following special characters are also in some of the SKUs:
. periods
- hyphen
_ underscore
() parenthesis
/ forward slash
, comma
: colon
space
& ampersand

I need to figure out a way to setup the data so that I can use it... When I straight import the data, it shows up exactly like it does in the ERP system.. but then I get a "#N/A" error if I try to do a VLOOKUP function against it. Whatever the solution, it needs to be formula based as I'm not going to go through 110,000 SKU's to manually change each one.

I have tried using 'Text to Columns', but that does not effectively work. I have tried using various other tactics, but they either end up eliminating the leading zeros or they end up converting some of the numbers (e.g. 2-1271) to a date format.

Please help! (Thank you!) :)
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Sorry for follow-up post...

To make things more complicated... Our ERP database is connected (ODBC, i think) to an Access database. I then use the "Get External Data" function to import data from Access. [Enterprise security prevents a direct connection to the ERP's SQL database]

Every time I open the excel workbook that has this data table, it refreshes (which is important) - and any manual formatting is lost :(

Unfortunately, whatever solution we come up with would either have to be dynamic OR would need to be a change to the way I use the VLOOKUP function to pull information from this spreadsheet.
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,972
Members
448,537
Latest member
Et_Cetera

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