A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

IF Dates



 
 
Thread Tools Display Modes
  #1  
Old June 17th, 2009, 12:36 AM posted to microsoft.public.excel.worksheet.functions
Talladega
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  
Old June 17th, 2009, 12:50 AM posted to microsoft.public.excel.worksheet.functions
joeu2004
external usenet poster
 
Posts: 1,748
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(A1date(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(A1datevalue("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


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:37 AM.


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