sum a date range

Gealer

New Member
Joined
Sep 19, 2018
Messages
19
Hi, I have 2 tabs the 1st has a list with 200+ task ID's which is listed in Column E and then another tab with all of the data.
The 2nd tab with the data on has the date running down column A and then the Task Id in Row 1.
I have been using the following formula to retrieve the data from an date but I would now like the ability to sum everything between a second date.
This formula is next to every task id on the 1st tab - =VLOOKUP('Data Analysis KVI'!$D$1,'Total Volumes'!A:ALL,HLOOKUP($E2,'Total Volumes'!B:ALL,2,FALSE),FALSE) which works just fine.


Task IDActual Volumes
591340
591350
591360
591370
591380
591390
591400
<colgroup><col width="50" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1828;"> <col width="64" style="width: 48pt;"> <tbody> </tbody>

2nd tab looks like this

Task ID59134591355913659137
Column#2345
Date
24/12/2018
25/12/2018
26/12/2018
27/12/2018
28/12/2018
31/12/2018
01/01/2019
02/01/2019
03/01/2019
<colgroup><col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"> <col width="64" style="width: 48pt;" span="4"> <tbody> </tbody>

With this being my input

Start Date01/01/19
End Date
<colgroup><col width="80" style="width: 60pt; mso-width-source: userset; mso-width-alt: 2925;"> <col width="168" style="width: 126pt; mso-width-source: userset; mso-width-alt: 6144;"> <tbody> </tbody>
So if there is nothing in the end date it will just return the single cell value and then with an end date input it will add up everything inbetween and including the dates.

Thanks in advance
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
start date03/11/2018
end date05/11/2018
taskvolume59134591355913659137591385913959140
5913433641442139243724
59135298
59136318
59137332
59138308
59139340
59140326
59134591355913659137591385913959140
01/11/2018106171129is this what you want ?
02/11/20185111829413
03/11/201820831513194
04/11/2018192028391
05/11/201821616168919
06/11/20189181521817
07/11/201841121820139
08/11/2018184195101213
09/11/2018191739171312
10/11/2018520516297
11/11/20183510179137
12/11/201892171014819
13/11/2018171122031111
14/11/201898181316920
15/11/2018108144202015
16/11/20181895151171
17/11/2018131919153116
18/11/2018113542081
19/11/2018204111951618
20/11/2018817452420
21/11/20184114191081
22/11/20183711114176
23/11/201815917318142
24/11/20181694171412
25/11/2018981918161012
26/11/20181061910161316
27/11/201891717211517
28/11/20181222117313
29/11/20182014192041615
30/11/2018915184201820

<colgroup><col><col><col span="9"><col><col span="6"></colgroup><tbody>
</tbody>
 
Upvote 0
yes that is what I need. From the data set at the bottom it will return what ever in the date(s) at the top. Most of the time it will just be the 1 day but I will need to complete analysis weekly or monthly hence the other criteria.

So Monthly the figures would be
Start Date01/11/2018
End Date30/11/2018
taskvolume
59134336
59135298
59136318
59137332
59138308
59139340
59140326
<colgroup><col width="113" style="width: 85pt; mso-width-source: userset; mso-width-alt: 3616;"> <col width="83" style="width: 62pt; mso-width-source: userset; mso-width-alt: 2656;"> <col width="165" style="width: 124pt; mso-width-source: userset; mso-width-alt: 5280;"> <tbody> </tbody>

or
Start Date03/11/2018
End Date05/11/2018
taskvolume
5913441
5913544
5913621
5913739
5913824
5913937
5914024
<colgroup><col width="113" style="width: 85pt; mso-width-source: userset; mso-width-alt: 3616;"> <col width="83" style="width: 62pt; mso-width-source: userset; mso-width-alt: 2656;"> <col width="87" style="width: 65pt; mso-width-source: userset; mso-width-alt: 2784;"> <tbody> </tbody>

If there is a vba code that could be used I will be happy with that as well
 
Upvote 0

Forum statistics

Threads
1,215,356
Messages
6,124,471
Members
449,163
Latest member
kshealy

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