Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help PLEASE! Not sure what answer is: Match? Index? Other? | Excel Worksheet Functions | |||
Date range criteria and Pivot tables (again!) | Excel Worksheet Functions | |||
MIN within range based on criteria | Excel Discussion (Misc queries) | |||
adding occurrences for date range | Excel Discussion (Misc queries) | |||
I have a list of dates that I need to count based on a date range | Excel Worksheet Functions |