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.
[TABLE="width: 86"]
<colgroup><col width="50" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1828;"> <col width="64" style="width: 48pt;"> <tbody>[TR]
[TD="width: 50, bgcolor: #4F81BD"]Task ID[/TD]
[TD="width: 64, bgcolor: #4F81BD"]Actual Volumes
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]59134[/TD]
[TD="bgcolor: transparent"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]59135[/TD]
[TD="bgcolor: transparent"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]59136[/TD]
[TD="bgcolor: transparent"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]59137[/TD]
[TD="bgcolor: transparent"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]59138[/TD]
[TD="bgcolor: transparent"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]59139[/TD]
[TD="bgcolor: transparent"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]59140[/TD]
[TD="bgcolor: transparent"]0[/TD]
[/TR]
</tbody>[/TABLE]
2nd tab looks like this
[TABLE="width: 248"]
<colgroup><col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"> <col width="64" style="width: 48pt;" span="4"> <tbody>[TR]
[TD="width: 75, bgcolor: #4F81BD"]Task ID[/TD]
[TD="width: 64, bgcolor: #4F81BD"]59134[/TD]
[TD="width: 64, bgcolor: #4F81BD"]59135[/TD]
[TD="width: 64, bgcolor: #4F81BD"]59136[/TD]
[TD="width: 64, bgcolor: #4F81BD"]59137[/TD]
[/TR]
[TR]
[TD="width: 75, bgcolor: #4F81BD"]Column#[/TD]
[TD="width: 64, bgcolor: #4F81BD"]2[/TD]
[TD="width: 64, bgcolor: #4F81BD"]3[/TD]
[TD="width: 64, bgcolor: #4F81BD"]4[/TD]
[TD="width: 64, bgcolor: #4F81BD"]5[/TD]
[/TR]
[TR]
[TD="bgcolor: #4F81BD"]Date[/TD]
[TD="bgcolor: #4F81BD"] [/TD]
[TD="bgcolor: #4F81BD"] [/TD]
[TD="bgcolor: #4F81BD"] [/TD]
[TD="bgcolor: #4F81BD"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]24/12/2018[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]25/12/2018[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]26/12/2018[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]27/12/2018[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]28/12/2018[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]31/12/2018[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]01/01/2019[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]02/01/2019[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]03/01/2019[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
With this being my input
[TABLE="width: 186"]
<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>[TR]
[TD="width: 80, bgcolor: #4F81BD"]Start Date[/TD]
[TD="width: 168, bgcolor: transparent, align: right"]01/01/19[/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: #4F81BD"]End Date[/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
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
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.
[TABLE="width: 86"]
<colgroup><col width="50" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1828;"> <col width="64" style="width: 48pt;"> <tbody>[TR]
[TD="width: 50, bgcolor: #4F81BD"]Task ID[/TD]
[TD="width: 64, bgcolor: #4F81BD"]Actual Volumes
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]59134[/TD]
[TD="bgcolor: transparent"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]59135[/TD]
[TD="bgcolor: transparent"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]59136[/TD]
[TD="bgcolor: transparent"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]59137[/TD]
[TD="bgcolor: transparent"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]59138[/TD]
[TD="bgcolor: transparent"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]59139[/TD]
[TD="bgcolor: transparent"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]59140[/TD]
[TD="bgcolor: transparent"]0[/TD]
[/TR]
</tbody>[/TABLE]
2nd tab looks like this
[TABLE="width: 248"]
<colgroup><col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"> <col width="64" style="width: 48pt;" span="4"> <tbody>[TR]
[TD="width: 75, bgcolor: #4F81BD"]Task ID[/TD]
[TD="width: 64, bgcolor: #4F81BD"]59134[/TD]
[TD="width: 64, bgcolor: #4F81BD"]59135[/TD]
[TD="width: 64, bgcolor: #4F81BD"]59136[/TD]
[TD="width: 64, bgcolor: #4F81BD"]59137[/TD]
[/TR]
[TR]
[TD="width: 75, bgcolor: #4F81BD"]Column#[/TD]
[TD="width: 64, bgcolor: #4F81BD"]2[/TD]
[TD="width: 64, bgcolor: #4F81BD"]3[/TD]
[TD="width: 64, bgcolor: #4F81BD"]4[/TD]
[TD="width: 64, bgcolor: #4F81BD"]5[/TD]
[/TR]
[TR]
[TD="bgcolor: #4F81BD"]Date[/TD]
[TD="bgcolor: #4F81BD"] [/TD]
[TD="bgcolor: #4F81BD"] [/TD]
[TD="bgcolor: #4F81BD"] [/TD]
[TD="bgcolor: #4F81BD"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]24/12/2018[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]25/12/2018[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]26/12/2018[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]27/12/2018[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]28/12/2018[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]31/12/2018[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]01/01/2019[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]02/01/2019[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]03/01/2019[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
With this being my input
[TABLE="width: 186"]
<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>[TR]
[TD="width: 80, bgcolor: #4F81BD"]Start Date[/TD]
[TD="width: 168, bgcolor: transparent, align: right"]01/01/19[/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: #4F81BD"]End Date[/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
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