If formula

J

jwbuyer

I have four different columns with dates in them. I want to use an if
formula to check whether the dates in either of these columns is greater than
a certain date value. How do use one if formula across all four columns?
 
B

Bernard Liengme

=IF(AND(A1>DATE(2009,1,2,),B1>DATE(2009,1,2),C1>DATE(2009,1,2),D1>DATE(2009,1,2)),"At
least one is greater","none is greater")
best wishes
 
B

Bernie Deitrick

jw,

=IF(MAX(A3:D3)>DATEVALUE("Mar 6, 2009"),"It's greater","It's not")


HTH,
Bernie
MS Excel MVP
 
E

Elkar

See if this works for you:

=IF(MAX(A1:D1,$F$1)=$F$1,"Yes","No")

This assumes your columns are A thru D and your comparison date is stored in
cell F1. Adjust the cell references to meet your needs.

HTH
Elkar
 
J

jwbuyer

worked like a charm, thanks

Bob Phillips said:
IF(COUNTIF(A1:D1,">"&M1),"Yes","No")

where M1 holds the check date

--
__________________________________
HTH

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top