Lookup from two different tables

alexm3430

New Member
Joined
Aug 27, 2015
Messages
47
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am trying to do a lookup based on two criteria in a dropdown box. Cell B1 defines what table to extract the data from. Cell B2 tells you what month to use in that table. I want the data to be populated in row 23.


Thank you.
 

Attachments

  • Lookup.PNG
    Lookup.PNG
    51.1 KB · Views: 6

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Something like this? Just change the column lookup for each cell accross

Book1
BCDEFG
1Table2
23/1/2024
3
4
5
6Date5101520
71/1/20241
82/1/2024235
93/1/20245
104/1/2024
11
12
13Date5101520
141/1/20241
152/1/20242355
163/1/202436
174/1/20243
18
19
2036
Sheet1
Cell Formulas
RangeFormula
C20C20=IF(B1="Table1",VLOOKUP($B$2, Table1,2),VLOOKUP($B$2, Table2,2))
 
Upvote 0

Forum statistics

Threads
1,215,124
Messages
6,123,187
Members
449,090
Latest member
bes000

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