#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default IF Dates

Hi,

I have a column filled with dates. I need to write a formula to show if the
date in column a is after 12/31/06. If it is, then is shows the date of
column a otherwise a blank.

Column A Column B
2/1/2004 2/1/2004
7/25/2006 7/25/2006
12/31/2008
1/31/2005 1/31/2005
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default IF Dates

"Talladega" wrote:
I have a column filled with dates. I need to write a formula to show if
the
date in column a is after 12/31/06. If it is, then is shows the date of
column a otherwise a blank.


There are several ways to write this. One way:

=if(A1<date(2006,12,31), A1, "")

Note that this results in the column A date if it is __before__ 12/31/06,
not after. This is consistent with your example.

Another way to write this is:

=if(A1<datevalue("12/31/2006"), A1, "")


----- original message -----

"Talladega" wrote in message
...
Hi,

I have a column filled with dates. I need to write a formula to show if
the
date in column a is after 12/31/06. If it is, then is shows the date of
column a otherwise a blank.

Column A Column B
2/1/2004 2/1/2004
7/25/2006 7/25/2006
12/31/2008
1/31/2005 1/31/2005


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
compare 2 tables of dates to find the preceding dates Babi Excel Worksheet Functions 3 October 28th 08 05:52 AM
how do I sort a column of random dates into Consecutive dates Rob Gibson Excel Worksheet Functions 2 June 12th 07 05:10 AM
Identifying unique dates within a range of cells containing dates cdavidson Excel Discussion (Misc queries) 0 October 12th 06 08:19 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Charting data against dates where dates are not at fixed intervals PK Charts and Charting in Excel 4 June 16th 05 05:08 AM


All times are GMT +1. The time now is 03:04 PM.

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"