#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PAL PAL is offline
external usenet poster
 
Posts: 200
Default OR

I have a series of projects, each w/ 10 dates. I am trying to count the
number of projects that have a least one date that was in 2006 or 2007 and
return a Value of "Yes"

I am thinking this is a whopper of an IF statement where for every date I
have to check it against 2006 or 2007, but can't pull it together in my head
and was hoping there was a simpler way.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default OR

Say there is a row for each project with the project name in column A and the
dates in cols B thru K. Put the following formula in column L:

=if(sumproduct(--(year(b1:k1)=2007))+sumproduct(--(year(b1:k1)=2006))0,"yes","")

and copy down. There will be a "yes" for every row with at least 1 date in
2007 or 2007
--
Gary''s Student - gsnu200777


"PAL" wrote:

I have a series of projects, each w/ 10 dates. I am trying to count the
number of projects that have a least one date that was in 2006 or 2007 and
return a Value of "Yes"

I am thinking this is a whopper of an IF statement where for every date I
have to check it against 2006 or 2007, but can't pull it together in my head
and was hoping there was a simpler way.

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



All times are GMT +1. The time now is 09:17 PM.

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"