TEXT problem...

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

Hello.

I have a cell with the following formula:

TEXT(e2,"mmmm dd, yyyy (CSC)")

cell e2 contains a date formatted value, "March 27, 2004"

Question, although the formula appears to work in terms of
converting the date to a text datg (for manipulation
later), why does the result yield "March 27, 2004 (C0C)"
instead of "March 27, 2004 (CSC)"?

For some reason, the function is replacing my 'S' for a
zero (0).

Any ideas?

Mark :)
 
Hi Mark!

Its because the S is being interpreted as seconds. Since you
(presumably) have a naked date in E2 without a time, the seconds are
0.

To get what you want use:

=TEXT(e2,"mmmm dd, yyyy")&" CSC"


--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 
Excellent - thank you very much Norman.

Mark :)

-----Original Message-----
Hi Mark!

Its because the S is being interpreted as seconds. Since you
(presumably) have a naked date in E2 without a time, the seconds are
0.

To get what you want use:

=TEXT(e2,"mmmm dd, yyyy")&" CSC"


--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.



.
 
Hi Mark!

Always pleased to help. Come back soon!

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 

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

Back
Top