My question relates to a solution posted by mbarron in a previous forum topic: "Add a leading zero to CSV file"
=======FORUM POST IN QUESTION=============
mbarron (TechnicalUser) Nov 22, 2004
Assuming you want you want your number to be 6 characters long:
=RIGHT(REPT("0",6)&A1,6)
Change the 6s to the number of characters you want your results.
Mike
=========================================
Note: I am creating a file in excel and converting it to a CSV file.
By using the above formula, you are able to add leading-spaces to your text. However, I need to be able to add trailing-spaces to my text. Is there another function I need to use to do this? I tried LEFT() thinking it moves the space from leading to trailing but it does not.
Here's an example of what I am trying to do:
=Excel File= *L=Length
L=10 | L=10 | L=3 | L=9 |
Jones | Sammuel | USA | 111111111 |
Warner | Jim | USA | 222222222 |
=CSV File=
Jones ,Sammuel ,USA,111111111
Warner ,Jim ,USA,222222222
=======FORUM POST IN QUESTION=============
mbarron (TechnicalUser) Nov 22, 2004
Assuming you want you want your number to be 6 characters long:
=RIGHT(REPT("0",6)&A1,6)
Change the 6s to the number of characters you want your results.
Mike
=========================================
Note: I am creating a file in excel and converting it to a CSV file.
By using the above formula, you are able to add leading-spaces to your text. However, I need to be able to add trailing-spaces to my text. Is there another function I need to use to do this? I tried LEFT() thinking it moves the space from leading to trailing but it does not.
Here's an example of what I am trying to do:
=Excel File= *L=Length
L=10 | L=10 | L=3 | L=9 |
Jones | Sammuel | USA | 111111111 |
Warner | Jim | USA | 222222222 |
=CSV File=
Jones ,Sammuel ,USA,111111111
Warner ,Jim ,USA,222222222