SUMIF Formula to Include Data Range and SUM of Hours

BillScott

New Member
Joined
Sep 6, 2023
Messages
2
Office Version
  1. 2021
Platform
  1. Windows
Hello,

I have three columns, Column A is a date range (short date), Column B contains Names, Column C contains Hours. I would like to pull a person's hours by their name and specific date range (from to). Right now I have the following formula to pull just the sum of the hours based on the person's name, but I'm not certain how to include a specific date range: =SUMIF(B1:B50, "Harry", C1:C50). I would like to pull all of Harry's hours for a specific month of the year only and not the entire year. I can do this by manipulating the B1:B50 & C1:C50, but I believe there is a more robust formula that can solve this dilemma.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Try
=SUMIFS($C$1:$C$50,$B$1:$B$50,"Harry",$A$1:$A$50,">="&[the cell with the Start Date or the Start Date],$A$1:$A$50,"<="&[the cell with the Finish Date Date or the Finish Date])
 
Upvote 0
Try
=SUMIFS($C$1:$C$50,$B$1:$B$50,"Harry",$A$1:$A$50,">="&[the cell with the Start Date or the Start Date],$A$1:$A$50,"<="&[the cell with the Finish Date Date or the Finish Date])
This is what I was thinking, but is there another way to capture the date range by inputting something like 'May' instead of selecting a range?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top