Sum using lookup reference

PolarOath

New Member
Joined
Dec 8, 2022
Messages
2
Office Version
  1. 365
Hi All,

I wasn't quite able to find an answer to this. I'm trying to sum a range in a column based on a start and end date; though not quite sure how the formula would look.

For example
Start date: 12/11/2022 6:00:00 AM
End date: 13/11/2022 7:50:00 AM

The formula should then lookup the start/end dates in column A and then sum up the range of values in column L between those times.
I've figured out how to return the row number via
Excel Formula:
=MATCH(AG55,A:A,0)
(AG55 is the start date reference) though not sure how to implement it within the sum formula.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
In the demo below, change F2 to AG55 and F3 to whatever cell you have the end date in.

Book1
ABCDEFGHIJKL
1DateValue
28/11/2022Start Date:12/11/2022153
39/11/2022End Date:13/11/2022157
410/11/2022154
511/11/2022formula:1732183
612/11/2022140
712/11/2022155
812/11/2022174
912/11/2022136
1012/11/2022191
1112/11/2022100
1212/11/2022132
1313/11/2022189
1420/11/2022129
1521/11/2022106
1622/11/2022133
1723/11/2022173
1824/11/2022184
1913/11/2022181
2013/11/2022181
2113/11/2022153
22
Sheet1
Cell Formulas
RangeFormula
F5F5=SUMIFS(L:L,A:A,">="&F2,A:A,"<="&F3)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,424
Messages
6,124,817
Members
449,190
Latest member
rscraig11

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