LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 149
Default Coverting Dates to Text

No sweat, I figured a way around it. Thanks for your help.


"Bob Phillips" wrote in message
...
Sorry Scott, the format will always give at least 2 year digits.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"scott" wrote in message
...
It almost works, but here's the results.

EXAMPLE 1:
' below is a correct entry and then your formula result which is good
0-04-1 returns 0-04-1

EXAMPLE 2
' below is an incorrect entry and then your formula result which is bad
1/4/2001 returns 4-01-01

EXAMPLE 2 result should end up like EXAMPLE 1. That is both should return
0-04-1





"Bob Phillips" wrote in message
...
Scott,

Try =TEXT(A1,"d-mm-y")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"scott" wrote in message
...
I've got a column that contains cells like 0-04-1, which is a text
code
with
a dash delimiter. But Excel converts them to dates when the figures
get
imported from a file.

Can someone help me create a formula that could convert 1/4/2001 to
0-04-01?

Another example would be:

1/6/2001 should be 0-06-1












 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to edit text boxes after coverting to excel 2007 Extraordinaire Excel Discussion (Misc queries) 0 October 31st 08 09:45 PM
Coverting text to numeric Steve Williams Excel Worksheet Functions 5 April 27th 06 09:37 PM
Coverting string of text into individual sums? Pookie76 Excel Discussion (Misc queries) 4 March 29th 06 06:22 PM
Coverting Formula to Text Catch 22 Excel Discussion (Misc queries) 3 April 1st 05 01:13 AM
Coverting dates Tony Excel Programming 4 October 4th 04 02:54 PM


All times are GMT +1. The time now is 06:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"