Sum column if between two separate dates

Joined
Aug 29, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
In a project budget, I have an activity start date, end date, and a series of names associated. The data associated with each name is the number of hours they are budgeted for a particular task. I have a calculated field for each name showing the budgeted amount of time each day to spend on an activity.

ActivityStart dateEnd dateName 1Name 2Name etc.Name 1 Calc Field - Hours per dayName 2 Calc Field - Hours per day
Activity A1/1/20221/15/20225=5 / (End Date - Start Date)
Activity B1/10/20222/4/2022105
=10 / (End Date - Start Date)
=5 / (End Date - Start Date)

I have a separate table where in Column A it is every date in the range listed (from minimum start date to maximum end date). In Row 1 I also have all the names mentioned above.

DateName 1Name 2Name etc.
1/1/2022Need formula here that sums budgeted hours for Name 1 across all activities for this date
1/2/2022
Etc.

I would like to sum the total budgeted hours for each name across all activities. I'm having trouble with the sum formula that will return this value.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Assuming
  • one is Table1
  • other is Table2 and
  • Column for Name1 Calc Field in Table1 is H
  • Table2 starts from Cell A1
Try this -

Excel Formula:
=SUMIFS(H:H,B:B,">="&$A2,C:C,"<="&$A2)

=SUMIFS(H:H,B:B,">="&$A2,C:C,"<="&$A2)
  • The above $A2 is cell reference of Table2
  • Remember to correct cell references before using the formula

Check if it works the intended way else we can further refine it to the needs.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,249
Members
449,075
Latest member
staticfluids

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