Vlookup Question (Please help)

barham

New Member
Joined
Jan 13, 2015
Messages
26
I have two tables pictured below:

Table 1
Columns
RowsABCDEFGHIJKLMNOPQ
1
2Day of month18192021222324252627281234
3Date2/18/20152/19/20152/20/20152/21/20152/22/20152/23/20152/24/20152/25/20152/26/20152/27/20152/28/20153/1/20153/2/20153/3/20153/4/2015
4MonthFebruaryFebruaryFebruaryFebruaryFebruaryFebruaryFebruaryFebruaryFebruaryFebruaryFebruaryMarchMarchMarchMarch
5Service
6Sales
7Reserve
8
9
10
11 Table 2
12
13Day of month18192021222324252627281234
14ServiceMonth
15January25141313111919282214232291323
16February321817111121153225192023101129
17March2517298830232523232118141723
18Sales
19January281526141125242820292723121726
20February351821141221234226242625102232
21March332222111733243231252135161730

<tbody>
</tbody>
On cell C5 I want a vlookup function that will look at both table 1 and table 2 to get me the corresponding data. If the day of the month ranging from 18 - 4 are the same, the dept are the same (Service,sales, etc) and the Month from Table 1 is the same, get me the data within the range of C15:Q21.

I will be very thankful if someone can assist.

Thank you
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi

Try this formula in cell C5 :-

SUMPRODUCT(($A$15:$A$21=$B5)*($B$15:$B$21=C$4)*($C$13:$Q$13=C$2)*$C$15:$Q$21)

Cheers
Chris
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,044
Members
448,543
Latest member
MartinLarkin

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