Number format with 6 digits from import without leading zeros

bkeebaugh

New Member
Joined
Nov 24, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello!

I work with two software programs that don't speak to each other. I would like to be able to export to excel from one program (website) and import from excel into the other (accounting program). The problem is that the website only exports client #'s without leading zeros and the accounting system needs the leading zeros to function properly with a 6 digit format. I've used a custom number format 000000 to get the website data to contain the leading zeros. However, the accounting software needs excel imports to be in CSV format and for the cell formats to be text. When I change the client #'s to text format, I lose the leading zeros.

For the past few years I've been manually entering the data, but I would very much like to be able to ex/import to not only save time, but have my work be more accurate. Does anyone have any suggestions?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Not sure if the web program drops the zeros or Excel is doing that. Did you try the following if you're pulling data into Excel?
An alternative might be to convert the Excel data into text with leading zeros with vba before exporting from/importing into the accounting program. I have to think there's an issue with text format dropping the zeros though. That doesn't make sense to me, but I'm more familiar with how Access behaves with that.
 
Upvote 0
Under Options - Data uncheck remove leading 0's
1700841753899.png
 
Upvote 0
Also, make sure that Notify of data conversion is checked (under additional options)
1700841970042.png
 
Upvote 0
Not sure if the web program drops the zeros or Excel is doing that. Did you try the following if you're pulling data into Excel?
An alternative might be to convert the Excel data into text with leading zeros with vba before exporting from/importing into the accounting program. I have to think there's an issue with text format dropping the zeros though. That doesn't make sense to me, but I'm more familiar with how Access behaves with that.
The web program drops the zeros itself. I'll give this a try, thanks!
 
Upvote 0

Forum statistics

Threads
1,215,086
Messages
6,123,033
Members
449,092
Latest member
ikke

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