Dynamic Lookup Value using Column and Row

rubz71

New Member
Joined
Aug 13, 2013
Messages
36
Hi All,

Need a bit of help with a dynamic look-up value.
Sheet 1 contains the Machine Name and Day of the week.

Sheet 2 contains
list of Machines and their capacity per day.

I need to fill the "Capacity" column in sheet 1 based on the machine name and day of the week from Sheet 2.

Appreciate your help on this.

Sheet 1
Machine_NameDay_of_the_WeekMachine_Name_DOW_KeyCapacity
ABCMondayABC_Monday1,200
ABCTuesdayABC_Tuesday1,300
ABCWednesdayABC_Wednesday1,350
ABCThursdayABC_Thursday1,250
ABCFridayABC_Friday1,100
ABCSaturdayABC_Saturday1,000
ABCSundayABC_Sunday900
XYZMondayXYZ_Monday1,400
XYZTuesdayXYZ_Tuesday1,350
XYZWednesdayXYZ_Wednesday1,300
XYZThursdayXYZ_Thursday1,200
XYZFridayXYZ_Friday1,250
XYZSaturdayXYZ_Saturday1,100
XYZSundayXYZ_Sunday1,000
PQRMondayPQR_Monday1,800
PQRTuesdayPQR_Tuesday1,700
PQRWednesdayPQR_Wednesday1,600
PQRThursdayPQR_Thursday1,500
PQRFridayPQR_Friday1,400
PQRSaturdayPQR_Saturday1,300
PQRSundayPQR_Sunday1,200
CDEMondayCDE_Monday700
CDETuesdayCDE_Tuesday600
CDEWednesdayCDE_Wednesday500
CDEThursdayCDE_Thursday400
CDEFridayCDE_Friday300
CDESaturdayCDE_Saturday200
CDESundayCDE_Sunday250

Sheet 2
MachineMondayTuesdayWednesdayThursdayFridaySaturdaySunday
ABC1,2001,3001,3501,2501,1001,000900
XYZ1,4001,3501,3001,2001,2501,1001,000
PQR1,8001,7001,6001,5001,4001,3001,200
CDE700600500400300200250
IJK1,9001,6001,3502,2501,1001,000900
LMN3,4003,3503,3003,2003,2503,1003,000
EFG5,8005,7005,6005,5005,4005,3005,200
 

Attachments

  • excel_capacity.png
    excel_capacity.png
    57.9 KB · Views: 7

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
as per your screenshot... and the formula you shared in our conversation..
Excel Formula:
=INDEX(H3:M8,MATCH(A2,$G$2:$G$8,1),MATCH(B2,$H$2:$M$2,1))
should work
 
Upvote 0
Book1
ABCDEFGHIJKLMN
1Machine_NameDay_of_the_WeekMachine_Name_DOW_KeyCapacity
2ABCMondayABC_Monday1200MachineMondayTuesdayWednesdayThursdayFridaySaturdaySunday
3ABCTuesdayABC_Tuesday1300ABC1,2001,3001,3501,2501,1001,000900
4ABCWednesdayABC_Wednesday1350XYZ1,4001,3501,3001,2001,2501,1001,000
5ABCThursdayABC_Thursday1250PQR1,8001,7001,6001,5001,4001,3001,200
6ABCFridayABC_Friday1100CDE700600500400300200250
7ABCSaturdayABC_Saturday1000IJK1,9001,6001,3502,2501,1001,000900
8ABCSundayABC_Sunday900LMN3,4003,3503,3003,2003,2503,1003,000
9XYZMondayXYZ_Monday1400EFG5,8005,7005,6005,5005,4005,3005,200
10XYZTuesdayXYZ_Tuesday1350
11XYZWednesdayXYZ_Wednesday1300
12XYZThursdayXYZ_Thursday1200
13XYZFridayXYZ_Friday1250
14XYZSaturdayXYZ_Saturday1100
15XYZSundayXYZ_Sunday1000
16PQRMondayPQR_Monday1800
17PQRTuesdayPQR_Tuesday1700
18PQRWednesdayPQR_Wednesday1600
19PQRThursdayPQR_Thursday1500
20PQRFridayPQR_Friday1400
21PQRSaturdayPQR_Saturday1300
22PQRSundayPQR_Sunday1200
23CDEMondayCDE_Monday700
24CDETuesdayCDE_Tuesday600
25CDEWednesdayCDE_Wednesday500
26CDEThursdayCDE_Thursday400
27CDEFridayCDE_Friday300
28CDESaturdayCDE_Saturday200
29CDESundayCDE_Sunday250
Sheet1
Cell Formulas
RangeFormula
D2:D29D2=SUMPRODUCT(($G$3:$G$9=A2)*($H$2:$N$2=B2),$H$3:$N$9)
 
Upvote 0
Solution
Book1
ABCDEFGHIJKLMN
1Machine_NameDay_of_the_WeekMachine_Name_DOW_KeyCapacity
2ABCMondayABC_Monday1200MachineMondayTuesdayWednesdayThursdayFridaySaturdaySunday
3ABCTuesdayABC_Tuesday1300ABC1,2001,3001,3501,2501,1001,000900
4ABCWednesdayABC_Wednesday1350XYZ1,4001,3501,3001,2001,2501,1001,000
5ABCThursdayABC_Thursday1250PQR1,8001,7001,6001,5001,4001,3001,200
6ABCFridayABC_Friday1100CDE700600500400300200250
7ABCSaturdayABC_Saturday1000IJK1,9001,6001,3502,2501,1001,000900
8ABCSundayABC_Sunday900LMN3,4003,3503,3003,2003,2503,1003,000
9XYZMondayXYZ_Monday1400EFG5,8005,7005,6005,5005,4005,3005,200
10XYZTuesdayXYZ_Tuesday1350
11XYZWednesdayXYZ_Wednesday1300
12XYZThursdayXYZ_Thursday1200
13XYZFridayXYZ_Friday1250
14XYZSaturdayXYZ_Saturday1100
15XYZSundayXYZ_Sunday1000
16PQRMondayPQR_Monday1800
17PQRTuesdayPQR_Tuesday1700
18PQRWednesdayPQR_Wednesday1600
19PQRThursdayPQR_Thursday1500
20PQRFridayPQR_Friday1400
21PQRSaturdayPQR_Saturday1300
22PQRSundayPQR_Sunday1200
23CDEMondayCDE_Monday700
24CDETuesdayCDE_Tuesday600
25CDEWednesdayCDE_Wednesday500
26CDEThursdayCDE_Thursday400
27CDEFridayCDE_Friday300
28CDESaturdayCDE_Saturday200
29CDESundayCDE_Sunday250
Sheet1
Cell Formulas
RangeFormula
D2:D29D2=SUMPRODUCT(($G$3:$G$9=A2)*($H$2:$N$2=B2),$H$3:$N$9)
oh wow, this works like a magic

Thanks for your help!!
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

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