Custom formatted cells. Can't concatenate or save format in TXT file

Declamatory

Active Member
Joined
Nov 6, 2014
Messages
319
Hi Folks,

I have some data in a workbook (sheet 1). In sheet 2 I am trying to pull together bits of the data into a format that a client can use to upload the information to their systems.

Where I have the price of something in sheet 1 £19.99 in sheet 2 this information needs to be 000000000019990000. I've done this using conditional formatting based on the number of figures in the price (changes from £1, £10, £100 etc.) using custom format to insert leading and trailing zeros.

The various fields then need to be saved in a txt file for upload with no spaces between the various figures and info I've collated in sheet 2.

The problem I have is that when I try to save in the txt file the leading and trailing zeros disappear. It's the same if I try to concatenate the data into one cell so no spaces appear in the text file. The custom format disappears.

Does anyone have any idea how I can keep the custom format when concatenating?

Thanks,
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Thanks, I have tried it but it doesn't seem to have any affect. Format was "00000000000"#"0000" and is now"00000000000"@"0000".
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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