Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default OR options in IF statement

I'm trying to look at two cells, and if either has a date in it I want that
date in a third cell (where the formula is).

This formula works: =IF(COUNT(tab!$AF6)=1,MAX(tab!$AF6),"")

for checking one cell, but I also want to check (tab!AQ6) for a date. Any
suggestions?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default OR options in IF statement

In general you can have multiple logical tests in an IF statement

=IF(AND(test1,test2),action if true,action if false)

=IF(AND(COUNT(tab!$AF6)=1,tab!AQ6 = Today()),MAX(tab!$AF6,"")

However your test if AF6 = 1, is true then MAX of it will also be 1 !

--

Regards,
Nigel




"Skeeterj" wrote in message
...
I'm trying to look at two cells, and if either has a date in it I want
that
date in a third cell (where the formula is).

This formula works: =IF(COUNT(tab!$AF6)=1,MAX(tab!$AF6),"")

for checking one cell, but I also want to check (tab!AQ6) for a date. Any
suggestions?

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
tools options view window options Joe[_14_] Excel Discussion (Misc queries) 1 November 11th 09 04:08 PM
Send mail with outlook message options-Delivery OptionS JC Excel Programming 1 April 30th 08 10:52 PM
Working with options from within Tools Options clears the Clipboar Peter Rooney Excel Programming 6 November 18th 05 04:49 PM
How to diasble the 'Tools - Options - View - Comments' options? Alan Excel Programming 3 May 19th 05 10:58 PM
Can an IF statement be used for 3 options? Jambruins Excel Discussion (Misc queries) 6 February 21st 05 09:59 PM


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