Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

data conversion xls csv

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Data conversion .XLS to .CSV

Data conversion .XLS to .CSV

ResolvedVersion 2002/XP

Phil has attended:
Excel Intermediate course
Excel Advanced course

Data conversion .XLS to .CSV

I have some data within excel which contains bank sorting codes. This data needs to be converted into a csv file so that it can be downloaded into another system. The trouble I am having is when the file conversion sees any bank sorting code that resembles a date (for example 09-01-26) it converts it to a date (9 January 2026 or 9/1/2026) rather than keeping it in its original format. Can you please advise of how the format can be retained.

Thanks

RE: Data conversion .XLS to .CSV

Phil

Can you clarify. I assume when you are saving the file to CSV Excel is changing the bank sorting codes to a date format? To prevent this highlight the cells in question and change them to a text format by going to Format - Cells. In the Number tab select Text. YOU WILL need to Check to see if your other system accepts the sort code in this format or whether it doesn't.

RE: Data conversion .XLS to .CSV

I had already tried this, and it does not solve the problem. The way we are performing the procedure is that we are inputting the data into excel, selecting 'save as' changing the file type to 'CSV (ms-dos) (*.csv)' updating the file name and then saving. During the save process a number of dialogue boxes are shown and the end result is that the data is converted into date format.

Excel is not changing the format, the format is being changed during the save process whilst the file is being converted from excel to CSV.

RE: Data conversion .XLS to .CSV

Sorry Phil


I haven't heard back from you in a while. My apologies for the delay- Is this resolved?

Thanks

RE: Data conversion .XLS to .CSV

No it was not resolved.

The reply I gave on 29 June explained this, and since we could not wait any longer for your reply we have made a work-around and are processing the information differently.

Excel tip:

Generating Random Numbers

To generate a random number in Excel use the = RAND() function.

The value returned will always be between 0 and 1. To convert this to some other random value, you will need to multiply the result by the highest number you want to consider. For example, if you wanted a random number between 1 and 25, you could use the following code line:
= INT(25 * RAND()+ 1)

Since RAND() will always returns a value between 0 and 1 (but never 1 itself), multiplying what it returns by 25 and then using the Integer function INT on that result will return a whole number between 0 and 24.

Finally, 1 is added to this result, so that x will be equal to a number between 1 and 25, inclusive

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.