Convert Dates to text

  • Thread starter Thread starter lmullenjr
  • Start date Start date
L

lmullenjr

I am trying to convert a date - 2/3/06 - into text format to run an
INDIRECT formula. I want the date to convert to 02-03-06 as text.
Would there be a way to do this without having to retype the date?

drummer
 
use this function:
Cell A1: Date
A2=TEXT(MONTH(A1),"00")&"-"&TEXT(DAY(A1),"00")&"-"&RIGHT(YEAR(A1),2)
 
With the date in A1, use =TEXT(A1,"dd-mm-yy")
or =TEXT(A1,"mm-dd-yy") if you're using US-style dates.
 
lmullenjr said:
I am trying to convert a date - 2/3/06 - into text format to run an
INDIRECT formula. I want the date to convert to 02-03-06 as text.
Would there be a way to do this without having to retype the date?

drummer


Hi,

try this:

=Text(A1,"dd-mm-yy")

to have the date in a day-month-year format, or:

=Text(A1,"mm-dd-yy")

to have the date in a month-day-year format,

where your date is A1.

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy
 

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

Similar Threads


Back
Top