Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
hmm hmm is offline
external usenet poster
 
Posts: 175
Default Conditional date/time format

My data includes a column list of date/times. I want to show only the time
if the date is the same as the one above, and show both date and time only
for new dates. Is there any way to do it? (I am using Excel 2000, but
upgrade to 2007 is pending.)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Conditional date/time format

"hmm" wrote in message
...
My data includes a column list of date/times. I want to show only the
time
if the date is the same as the one above, and show both date and time only
for new dates. Is there any way to do it? (I am using Excel 2000, but
upgrade to 2007 is pending.)


I don't know about 2007. For older versions, you could do this in two
columns. For example, for dates in column A starting at A1, put this formula
in B2 and copy down as far as necessary:
=IF(INT(A2)=INT(A1),"",A2)
In B1 you could put just =A1.
Then format column column B with a date format of your choice. This will
show the date only where it differs from that above.

For times, you could just format column A with a time format of your choice.
(Formatting just changes what is shown, not what is contained in the cell).

Of course, you could swap the columns over if you want the date shown to the
left of the time.


Reply
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
Military Time Conditional Format stevieboy1313 Excel Discussion (Misc queries) 17 August 15th 07 02:21 PM
Conditional Format for negative time mailrail Excel Discussion (Misc queries) 6 July 16th 07 07:06 PM
Convert date + time text format to date format Paul Ho Excel Worksheet Functions 2 May 22nd 07 05:47 PM
how do I format cells to change date and time to just date bondam Excel Discussion (Misc queries) 3 July 3rd 05 01:10 PM
Remove time from a date and time field? Format removes the displa. oaoboc Excel Worksheet Functions 1 February 16th 05 07:20 PM


All times are GMT +1. The time now is 10:12 AM.

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

About Us

"It's about Microsoft Excel"