#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default If formula

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?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default If formula

IF(COUNTIF(A1:D1,""&M1),"Yes","No")

where M1 holds the check date

--
__________________________________
HTH

Bob

"jwbuyer" wrote in message
...
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?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default If formula

worked like a charm, thanks

"Bob Phillips" wrote:

IF(COUNTIF(A1:D1,""&M1),"Yes","No")

where M1 holds the check date

--
__________________________________
HTH

Bob

"jwbuyer" wrote in message
...
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?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default If formula

=IF(AND(A1DATE(2009,1,2,),B1DATE(2009,1,2),C1DA TE(2009,1,2),D1DATE(2009,1,2)),"At
least one is greater","none is greater")
best wishes

--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"jwbuyer" wrote in message
...
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?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default If formula

jw,

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


HTH,
Bernie
MS Excel MVP


"jwbuyer" wrote in message
...
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?





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default If formula

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


"jwbuyer" wrote:

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?

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 09:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"