change custom format number to text


G

Guest

i have a long colum of custom formated dates i need to change them into text
in order to prosses them -the custom format is dd/mm/yyyy h:mm the cell reads
01/09/2005 9:30 the number that shows up is 38596.39583 when i try to convert
the format to standard text. is there a function that will do this for me?
 
Ad

Advertisements

G

Guest

Just add an apostrophy in front of the date. Be sure to do it in the formula
bar.
So if you see 9/16/2005 make it '9/16/2005
 
G

George Nicholson

With your date/time value in A2, use the following in an empty column & copy
down:
=TEXT(A2,"dd/mm/yyyy hh:mm")

If using VBA, you can use the Format function with pretty much the same
arguments. Both functions do essentially the same thing: convert a numerical
value into text with the specified formatting.

HTH,
 
Ad

Advertisements

G

Guest

Thanks George - just what i needed

George Nicholson said:
With your date/time value in A2, use the following in an empty column & copy
down:
=TEXT(A2,"dd/mm/yyyy hh:mm")

If using VBA, you can use the Format function with pretty much the same
arguments. Both functions do essentially the same thing: convert a numerical
value into text with the specified formatting.

HTH,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top