Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Les Les is offline
external usenet poster
 
Posts: 240
Default If AND OR formula

I have the following formula:

=IF(AND(M3<TODAY()-35,W3="",X3="",Y3="",Z3=""),1,2)

Which basically says if the date entered in M3 is older than 35 days and W3,
X3, Y3, and Z3 have been not been populated then return a 1, otherwise return
a 2.

What I want it to say is if the date entered in M3 is older than 35 days and
the data is missing from just one of the cells W3, X3, Y3 or Z3, whichever
one it is, then return the values.

Thanks for helping.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 515
Default If AND OR formula

=IF(AND(M3<TODAY()-35,OR(W3="",X3="",Y3="",Z3="")),1,2)
--
Hth

Kassie Kasselman
Change xxx to hotmail


"Les" wrote:

I have the following formula:

=IF(AND(M3<TODAY()-35,W3="",X3="",Y3="",Z3=""),1,2)

Which basically says if the date entered in M3 is older than 35 days and W3,
X3, Y3, and Z3 have been not been populated then return a 1, otherwise return
a 2.

What I want it to say is if the date entered in M3 is older than 35 days and
the data is missing from just one of the cells W3, X3, Y3 or Z3, whichever
one it is, then return the values.

Thanks for helping.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default If AND OR formula

Hi Les

Try
=IF(AND(M3<TODAY()-35,OR(W3="",X3="",Y3="",Z3="")),1,2)

or
=IF(AND(M3<TODAY()-35,COUNTA(W3:Z3)<4),1,2)


--
Regards

Roger Govier


"Les" wrote in message
...
I have the following formula:

=IF(AND(M3<TODAY()-35,W3="",X3="",Y3="",Z3=""),1,2)

Which basically says if the date entered in M3 is older than 35 days
and W3,
X3, Y3, and Z3 have been not been populated then return a 1, otherwise
return
a 2.

What I want it to say is if the date entered in M3 is older than 35
days and
the data is missing from just one of the cells W3, X3, Y3 or Z3,
whichever
one it is, then return the values.

Thanks for helping.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default If AND OR formula

If you mean missing from one or more of W3 to Z3,
=IF(AND(M3<TODAY()-35,OR(W3="",X3="",Y3="",Z3="")),1,2)

If by "just one" you mean missing from one and only one of W3 to Z3,
=IF(AND(M3<TODAY()-35,COUNTIF(W3:Z3,"")=1),1,2)
--
David Biddulph

"Les" wrote in message
...
I have the following formula:

=IF(AND(M3<TODAY()-35,W3="",X3="",Y3="",Z3=""),1,2)

Which basically says if the date entered in M3 is older than 35 days and
W3,
X3, Y3, and Z3 have been not been populated then return a 1, otherwise
return
a 2.

What I want it to say is if the date entered in M3 is older than 35 days
and
the data is missing from just one of the cells W3, X3, Y3 or Z3, whichever
one it is, then return the values.

Thanks for helping.



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



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