Loookup on multiple date range & multiple lines

BrazenBigfoot

New Member
Joined
Oct 17, 2017
Messages
1
Hello - I'm a beginner in Excel so my question may be very simple. I've gone through several threads for the past 45 minutes and cannot find one like this. I believe I may not need a Vlookup or an IF but possibly a INDEX and Match nested formula. I would be eternally grateful if you could assist me please.

I have data of a few volunteer's actual spend amounts and need to calculate the variance from the budget, so who over spent. Budgetary amounts are set based on the date of the year and location. Some locations can have from 1 - 6 date ranges with different amounts and some locations can have just 1.

This table right here shows an example of what the final result should be on the Budget column:

ABCDEF
VolunteerLocationTravel Start DateTravel End DateActual AmountBudget Amount
SuzieTokyo1/9/20171/10/2017120131
ChipTokyo4/11/20174/13/2017240131
JennyTokyo9/17/20179/22/2017262300

<tbody>
</tbody>

Sheet A - This is the reference tab with all the facts. Notice the date ranges for the locations.

ABCD
LocationStart DateEnd DateBudget Amount
Tokyo01/01/201705/15/2017131
Tokyo05/16/201709/15/2017203
Tokyo09/16/201712/31/2017300
Australia01/01/201705/14/2017131
Australia05/15/201712/31/2017141
South Africa01/01/201703/01/2017210
South Africa03/02/201712/31/2017240

<tbody>
</tbody>

Sheet B- This show what the volunteers spent, their result. This is where I build my report. Each volunteer will have 1 line only.

ABCDEF
VolunteerLocationTravel Start DateTravel End DateActual AmountBudget Amount
SuzieTokyo1/9/20171/10/2017120 ?
ChipTokyo4/11/20174/13/2017240 ?
JennyTokyo9/17/20179/22/2017262 ?

<tbody>
</tbody>
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Re: Loookup on multiple date range & multiple lines - Mr. Excel Please Help!

Given you're trying to add up numbers, you can use an array based formula (i.e. use CONTROL+SHIFT+ENTER rather than just ENTER) as follows, starting in cell F2 on Sheet B and filling down:

=SUM(IF((B2='Sheet A'!$A$2:$A$8)*(C2>='Sheet A'!$B$2:$B$8)*(D2<='Sheet A'!$C$2:$C$8),'Sheet A'!$D$2:$D$8))
 
Upvote 0

Forum statistics

Threads
1,214,385
Messages
6,119,209
Members
448,874
Latest member
b1step2far

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