Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Looking for help with If statement

Is there a function like the ISBLANK function for dates. I am trying to write
and IF statement formular that works like this:
If the value in A1 is a Date then perform calculation else leave blank.

What is the best way to do this.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Looking for help with If statement

Please try this will return FALSE if valid date..
=ISERROR(DATE(YEAR(A1),MONTH(A1),DAY(A1)))

If this post helps click Yes
---------------
Jacob Skaria


"Ayo" wrote:

Is there a function like the ISBLANK function for dates. I am trying to write
and IF statement formular that works like this:
If the value in A1 is a Date then perform calculation else leave blank.

What is the best way to do this.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Looking for help with If statement

I was looking for something in this line:
=If(A1=Date,
SUMPRODUCT(--(Progress!$A$5:$A$1756=$A$5),--(Progress!$D$5:$D$1756=C$3),--(Progress!$E$5:$E$1756=$B5)), "")

"Jacob Skaria" wrote:

Please try this will return FALSE if valid date..
=ISERROR(DATE(YEAR(A1),MONTH(A1),DAY(A1)))

If this post helps click Yes
---------------
Jacob Skaria


"Ayo" wrote:

Is there a function like the ISBLANK function for dates. I am trying to write
and IF statement formular that works like this:
If the value in A1 is a Date then perform calculation else leave blank.

What is the best way to do this.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default Looking for help with If statement

Try here

http://www.mrexcel.com/forum/showthread.php?t=36619

This a formula the will give True False - which you could use

=OR(CELL("format",A1)={"D1","D2","D3","D4","D5"})

Original formula from :

Aladin Akyurek
MrExcel MVP

edvwvw



Ayo wrote:
Is there a function like the ISBLANK function for dates. I am trying to write
and IF statement formular that works like this:
If the value in A1 is a Date then perform calculation else leave blank.

What is the best way to do this.

Thanks


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200904/1

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Looking for help with If statement

Then just implement Jacob's suggestion, as in:
=IF(ISERROR(DATE(YEAR(A1),MONTH(A1),DAY(A1))),"",
SUMPRODUCT(--(Progress!$A$5:$A$1756=$A$5),--(Progress!$D$5:$D$1756=C$3),--(Progress!$E$5:$E$1756=$B5)))

Regards,
Fred.

"Ayo" wrote in message
...
I was looking for something in this line:
=If(A1=Date,
SUMPRODUCT(--(Progress!$A$5:$A$1756=$A$5),--(Progress!$D$5:$D$1756=C$3),--(Progress!$E$5:$E$1756=$B5)),
"")

"Jacob Skaria" wrote:

Please try this will return FALSE if valid date..
=ISERROR(DATE(YEAR(A1),MONTH(A1),DAY(A1)))

If this post helps click Yes
---------------
Jacob Skaria


"Ayo" wrote:

Is there a function like the ISBLANK function for dates. I am trying to
write
and IF statement formular that works like this:
If the value in A1 is a Date then perform calculation else leave
blank.

What is the best way to do this.

Thanks


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
Embedding an OR statement in an IF statement efficiently Chatnoir11 Excel Discussion (Misc queries) 4 February 2nd 09 08:12 PM
Sum if statement with a left statement Eric D Excel Discussion (Misc queries) 4 July 23rd 08 05:31 PM
SUMIF statement with AND statement Eric D Excel Discussion (Misc queries) 2 July 14th 08 07:24 PM
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM


All times are GMT +1. The time now is 11:17 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"