Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
LyleB_Austin
 
Posts: n/a
Default Finding number of values in a range on a per year basis

I have a column of data that represents task durations. I have a separate
column that indicates the year in which the task was completed. I want to
get a count of the number of tasks with a duration of 0-30 days, 31-60 days,
61-90 days etc. for each year represented on the spreadsheet. I know how to
get all tasks within a range, but I don't know how to limit it to just one
year, when there are several different years involved. In other words I want
0-30, 31-60, etc. for 2003, the same for 2004, 2005, etc. In some cases the
duration value is blank. Thanks.
  #2   Report Post  
Bernard Liengme
 
Posts: n/a
Default

A count of tasks with year 2001 and duration 30 or less:
=SUMPRODUCT(--(B2:B20=2001),--(A2:A20<30))
I have assumed year in B and duration in A

Next one: =SUMPRODUCT(--(A2:A2230),--(A2:A22<60),--(B2:B22=2001))

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"LyleB_Austin" wrote in message
...
I have a column of data that represents task durations. I have a separate
column that indicates the year in which the task was completed. I want to
get a count of the number of tasks with a duration of 0-30 days, 31-60
days,
61-90 days etc. for each year represented on the spreadsheet. I know how
to
get all tasks within a range, but I don't know how to limit it to just one
year, when there are several different years involved. In other words I
want
0-30, 31-60, etc. for 2003, the same for 2004, 2005, etc. In some cases
the
duration value is blank. Thanks.



  #3   Report Post  
LyleB_Austin
 
Posts: n/a
Default

Thanks mucho!

"Bernard Liengme" wrote:

A count of tasks with year 2001 and duration 30 or less:
=SUMPRODUCT(--(B2:B20=2001),--(A2:A20<30))
I have assumed year in B and duration in A

Next one: =SUMPRODUCT(--(A2:A2230),--(A2:A22<60),--(B2:B22=2001))

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"LyleB_Austin" wrote in message
...
I have a column of data that represents task durations. I have a separate
column that indicates the year in which the task was completed. I want to
get a count of the number of tasks with a duration of 0-30 days, 31-60
days,
61-90 days etc. for each year represented on the spreadsheet. I know how
to
get all tasks within a range, but I don't know how to limit it to just one
year, when there are several different years involved. In other words I
want
0-30, 31-60, etc. for 2003, the same for 2004, 2005, etc. In some cases
the
duration value is blank. 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
finding the right number kevindict Excel Worksheet Functions 2 September 7th 05 11:27 PM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Finding LARGE value within range of lookup table WPA Excel Discussion (Misc queries) 2 June 13th 05 07:41 PM
Lookup Table Dilemma Karen Excel Worksheet Functions 2 June 10th 05 08:22 PM
How to add one number to a range of numbers BatonRougeguy Excel Worksheet Functions 1 February 16th 05 06:47 AM


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