Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MIchel Khennafi
 
Posts: n/a
Default Sumproduct based on Date range

Good morning to All of you

Situation:
- I have dates like "From" and "To" in A1 and B1
- In C3, I have the formula =+SUMPRODUCT((names=B6)*Hours)/8
- The ranges "names" and "hours" refer to a list where I have people name
and number of hours.

I would like to change the fornula =+SUMPRODUCT((names=B6)*Hours)/8 so that
I only do the SUM of the rows in the list that are WITHIN the date range in
A1 and C1. What should I do to only sum those row which date are in between
A1 and B1 Please?

Michel


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Sumproduct based on Date range

=SUMPRODUCT(--(names=B6),--(dates=A1),--(dates<=B1),Hours)/8

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"MIchel Khennafi" wrote in message
...
Good morning to All of you

Situation:
- I have dates like "From" and "To" in A1 and B1
- In C3, I have the formula =+SUMPRODUCT((names=B6)*Hours)/8
- The ranges "names" and "hours" refer to a list where I have people name
and number of hours.

I would like to change the fornula =+SUMPRODUCT((names=B6)*Hours)/8 so

that
I only do the SUM of the rows in the list that are WITHIN the date range

in
A1 and C1. What should I do to only sum those row which date are in

between
A1 and B1 Please?

Michel




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
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Date range criteria and Pivot tables (again!) DerbyJim1978 Excel Worksheet Functions 3 July 13th 05 10:14 PM
MIN within range based on criteria StevenL Excel Discussion (Misc queries) 9 July 11th 05 11:33 PM
adding occurrences for date range Mike Excel Discussion (Misc queries) 1 April 28th 05 09:14 PM
I have a list of dates that I need to count based on a date range ejb030353 Excel Worksheet Functions 4 November 24th 04 02:27 PM


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