Matching on 3 Criteria Formula Troubles

Pineapple_Crazy

Board Regular
Joined
May 2, 2017
Messages
51
Hello,

I'm trying to match on 3 criteria to return a result, but no matter what I have tried it hasn't worked. In the example attached I am trying to match "Rms Cable Television", "Jan-18", and "ACTUAL" (all in bold below), to return a value. The formula I am attempting to use is =INDEX(C3:AB50,MATCH(B2,C3:C50,0),MATCH(B3,C3:AB3,0),MATCH(B4,C4:AB4,0)) (shown in #REF ! area below which would be in cell A2). The criteria "Rms Cable Television", "Jan-18", and "ACTUAL" start in cell B2. In the particular example provided I have in bold the criteria in the data set I am trying to match. I am trying to receive the value of 0.62. Would someone suggest a good formula for the way this data is set up in the workbook to achieve the desired result ? The formula seems to work for 2 criteria, but not for 3. Thanks so much!

PC

[TABLE="width: 1583"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD] Rooms Department - ACTUAL[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]#REF ![/TD]
[TD]Rms Cable Television[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Jan-18[/TD]
[TD]Available Rooms[/TD]
[TD]Jan-17[/TD]
[TD]Feb-17[/TD]
[TD]Mar-17[/TD]
[TD]Apr-17[/TD]
[TD]May-17[/TD]
[TD]Jun-17[/TD]
[TD]Jul-17[/TD]
[TD]Aug-17[/TD]
[TD]Sep-17[/TD]
[TD]Oct-17[/TD]
[TD]Nov-17[/TD]
[TD]Dec-17[/TD]
[TD]Jan-18[/TD]
[TD]Feb-18[/TD]
[TD]Mar-18[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]ACTUAL[/TD]
[TD]Occupied Rooms[/TD]
[TD]ACTUAL[/TD]
[TD]ACTUAL[/TD]
[TD]ACTUAL[/TD]
[TD]ACTUAL[/TD]
[TD]ACTUAL[/TD]
[TD]ACTUAL[/TD]
[TD]ACTUAL[/TD]
[TD]ACTUAL[/TD]
[TD]Budget[/TD]
[TD]Budget[/TD]
[TD]Budget[/TD]
[TD]Budget[/TD]
[TD]ACTUAL[/TD]
[TD]BUDGET[/TD]
[TD]BUDGET[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD] Payroll[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD] Rms Payroll[/TD]
[TD] 33.68[/TD]
[TD] 31.32[/TD]
[TD] 35.57[/TD]
[TD] 34.60[/TD]
[TD] 36.13[/TD]
[TD] 36.80[/TD]
[TD] 41.00[/TD]
[TD] 39.53[/TD]
[TD] 35.06[/TD]
[TD] 32.64[/TD]
[TD] 29.33[/TD]
[TD] 30.58[/TD]
[TD] 33.81[/TD]
[TD] 32.60[/TD]
[TD] 39.06[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD] Rms Benefits[/TD]
[TD] 4.38[/TD]
[TD] 4.00[/TD]
[TD] 4.47[/TD]
[TD] 3.99[/TD]
[TD] 3.89[/TD]
[TD] 3.61[/TD]
[TD] 4.50[/TD]
[TD] 4.21[/TD]
[TD] 4.25[/TD]
[TD] 3.81[/TD]
[TD] 3.51[/TD]
[TD] 3.55[/TD]
[TD] 3.69[/TD]
[TD] 3.86[/TD]
[TD] 4.22[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD] Rms Payroll Taxes[/TD]
[TD] 4.09[/TD]
[TD] 3.79[/TD]
[TD] 4.12[/TD]
[TD] 3.91[/TD]
[TD] 4.10[/TD]
[TD] 4.16[/TD]
[TD] 4.64[/TD]
[TD] 4.60[/TD]
[TD] 4.07[/TD]
[TD] 3.79[/TD]
[TD] 3.40[/TD]
[TD] 3.55[/TD]
[TD] 3.94[/TD]
[TD] 3.80[/TD]
[TD] 4.55[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD] Rms Total Payroll & Related[/TD]
[TD] 42.15[/TD]
[TD] 39.11[/TD]
[TD] 44.17[/TD]
[TD] 42.50[/TD]
[TD] 44.12[/TD]
[TD] 44.57[/TD]
[TD] 50.14[/TD]
[TD] 48.34[/TD]
[TD] 43.38[/TD]
[TD] 40.24[/TD]
[TD] 36.25[/TD]
[TD] 37.68[/TD]
[TD] 41.44[/TD]
[TD] 40.26[/TD]
[TD] 47.83[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD] Expenses[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD] Rms Cable Television [/TD]
[TD] 0.77[/TD]
[TD] 0.80[/TD]
[TD] 0.72[/TD]
[TD] 0.70[/TD]
[TD] 0.76[/TD]
[TD] 0.77[/TD]
[TD] 0.76[/TD]
[TD] 0.75[/TD]
[TD] 0.85[/TD]
[TD] 0.81[/TD]
[TD] 0.71[/TD]
[TD] 0.76[/TD]
[TD] 0.62[/TD]
[TD] 0.64[/TD]
[TD] 0.83[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD] Rms Cleaning Supplies[/TD]
[TD] 0.25[/TD]
[TD] 1.14[/TD]
[TD] 1.33[/TD]
[TD] 0.63[/TD]
[TD] 1.60[/TD]
[TD] 0.53[/TD]
[TD] 1.11[/TD]
[TD] 1.62[/TD]
[TD] 0.66[/TD]
[TD] 0.63[/TD]
[TD] 0.55[/TD]
[TD] 0.59[/TD]
[TD] 0.65[/TD]
[TD] 0.67[/TD]
[TD] 0.87[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD] Rms Commissions GDS[/TD]
[TD] 1.01[/TD]
[TD] 1.58[/TD]
[TD] (1.04)[/TD]
[TD] -[/TD]
[TD] -[/TD]
[TD] -[/TD]
[TD] -[/TD]
[TD] -[/TD]
[TD] 0.81[/TD]
[TD] 0.77[/TD]
[TD] 0.67[/TD]
[TD] 0.72[/TD]
[TD] -[/TD]
[TD] -[/TD]
[TD] -[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Excel 2010
ABCDEFGHIJKLMNOPQR
1Rooms Department - ACTUAL
20.62Rms Cable Television
318-JanAvailable Rooms17-Jan17-Feb17-Mar17-Apr17-May17-Jun17-Jul17-Aug17-Sep17-Oct17-Nov17-Dec18-Jan18-Feb18-Mar
4ACTUALOccupied RoomsACTUALACTUALACTUALACTUALACTUALACTUALACTUALACTUALBudgetBudgetBudgetBudgetACTUALBUDGETBUDGET
5Payroll
6Rms Payroll33.6831.3235.5734.636.1336.84139.5335.0632.6429.3330.5833.8132.639.06
7Rms Benefits4.3844.473.993.893.614.54.214.253.813.513.553.693.864.22
8Rms Payroll Taxes4.093.794.123.914.14.164.644.64.073.793.43.553.943.84.55
9Rms Total Payroll & Related42.1539.1144.1742.544.1244.5750.1448.3443.3840.2436.2537.6841.4440.2647.83
10
11
12
13
14
15Expenses
16Rms Cable Television0.770.80.720.70.760.770.760.750.850.810.710.760.620.640.83
17Rms Cleaning Supplies0.251.141.330.631.60.531.111.620.660.630.550.590.650.670.87
18Rms Commissions GDS1.011.58-1.04-----0.810.770.670.72---
Sheet4
Cell Formulas
RangeFormula
A2{=INDEX(D5:R18,MATCH(B2,C5:C18,0),MATCH(B3&B4,D3:R3&D4:R4,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
A
[/TD]
[TD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TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
6
[/TD]
[TD]Available Rooms[/TD]
[TD]
17-Jan​
[/TD]
[TD]
17-Feb​
[/TD]
[TD]
17-Mar​
[/TD]
[TD]
17-Apr​
[/TD]
[TD]
17-May​
[/TD]
[TD]
17-Jun​
[/TD]
[TD]
17-Jul​
[/TD]
[TD]
17-Aug​
[/TD]
[TD]
17-Sep​
[/TD]
[TD]
17-Oct​
[/TD]
[TD]
17-Nov​
[/TD]
[TD]
17-Dec​
[/TD]
[TD]
18-Jan​
[/TD]
[TD]
18-Feb​
[/TD]
[TD]
18-Mar​
[/TD]
[/TR]
[TR]
[TD]
7
[/TD]
[TD]Available Rooms[/TD]
[TD]
ACTUAL​
[/TD]
[TD]
ACTUAL​
[/TD]
[TD]
ACTUAL​
[/TD]
[TD]
ACTUAL​
[/TD]
[TD]
ACTUAL​
[/TD]
[TD]
ACTUAL​
[/TD]
[TD]
ACTUAL​
[/TD]
[TD]
ACTUAL​
[/TD]
[TD]
Budget​
[/TD]
[TD]
Budget​
[/TD]
[TD]
Budget​
[/TD]
[TD]
Budget​
[/TD]
[TD]
ACTUAL​
[/TD]
[TD]
BUDGET​
[/TD]
[TD]
BUDGET​
[/TD]
[/TR]
[TR]
[TD]
8
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
9
[/TD]
[TD]Payroll[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
10
[/TD]
[TD]Rms Payroll[/TD]
[TD]
33.68​
[/TD]
[TD]
31.32​
[/TD]
[TD]
35.57​
[/TD]
[TD]
34.6​
[/TD]
[TD]
36.13​
[/TD]
[TD]
36.8​
[/TD]
[TD]
41​
[/TD]
[TD]
39.53​
[/TD]
[TD]
35.06​
[/TD]
[TD]
32.64​
[/TD]
[TD]
29.33​
[/TD]
[TD]
30.58​
[/TD]
[TD]
33.81​
[/TD]
[TD]
32.6​
[/TD]
[TD]
39.06​
[/TD]
[/TR]
[TR]
[TD]
11
[/TD]
[TD]Rms Benefits[/TD]
[TD]
4.38​
[/TD]
[TD]
4​
[/TD]
[TD]
4.47​
[/TD]
[TD]
3.99​
[/TD]
[TD]
3.89​
[/TD]
[TD]
3.61​
[/TD]
[TD]
4.5​
[/TD]
[TD]
4.21​
[/TD]
[TD]
4.25​
[/TD]
[TD]
3.81​
[/TD]
[TD]
3.51​
[/TD]
[TD]
3.55​
[/TD]
[TD]
3.69​
[/TD]
[TD]
3.86​
[/TD]
[TD]
4.22​
[/TD]
[/TR]
[TR]
[TD]
12
[/TD]
[TD]Rms Payroll Taxes[/TD]
[TD]
4.09​
[/TD]
[TD]
3.79​
[/TD]
[TD]
4.12​
[/TD]
[TD]
3.91​
[/TD]
[TD]
4.1​
[/TD]
[TD]
4.16​
[/TD]
[TD]
4.64​
[/TD]
[TD]
4.6​
[/TD]
[TD]
4.07​
[/TD]
[TD]
3.79​
[/TD]
[TD]
3.4​
[/TD]
[TD]
3.55​
[/TD]
[TD]
3.94​
[/TD]
[TD]
3.8​
[/TD]
[TD]
4.55​
[/TD]
[/TR]
[TR]
[TD]
13
[/TD]
[TD]Rms Total Payroll & Related[/TD]
[TD]
42.15​
[/TD]
[TD]
39.11​
[/TD]
[TD]
44.17​
[/TD]
[TD]
42.5​
[/TD]
[TD]
44.12​
[/TD]
[TD]
44.57​
[/TD]
[TD]
50.14​
[/TD]
[TD]
48.34​
[/TD]
[TD]
43.38​
[/TD]
[TD]
40.24​
[/TD]
[TD]
36.25​
[/TD]
[TD]
37.68​
[/TD]
[TD]
41.44​
[/TD]
[TD]
40.26​
[/TD]
[TD]
47.83​
[/TD]
[/TR]
[TR]
[TD]
14
[/TD]
[TD]Expenses[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
15
[/TD]
[TD]Rms Cable Television[/TD]
[TD]
0.77​
[/TD]
[TD]
0.8​
[/TD]
[TD]
0.72​
[/TD]
[TD]
0.7​
[/TD]
[TD]
0.76​
[/TD]
[TD]
0.77​
[/TD]
[TD]
0.76​
[/TD]
[TD]
0.75​
[/TD]
[TD]
0.85​
[/TD]
[TD]
0.81​
[/TD]
[TD]
0.71​
[/TD]
[TD]
0.76​
[/TD]
[TD]
0.62​
[/TD]
[TD]
0.64​
[/TD]
[TD]
0.83​
[/TD]
[/TR]
[TR]
[TD]
16
[/TD]
[TD]Rms Cleaning Supplies[/TD]
[TD]
0.25​
[/TD]
[TD]
1.14​
[/TD]
[TD]
1.33​
[/TD]
[TD]
0.63​
[/TD]
[TD]
1.6​
[/TD]
[TD]
0.53​
[/TD]
[TD]
1.11​
[/TD]
[TD]
1.62​
[/TD]
[TD]
0.66​
[/TD]
[TD]
0.63​
[/TD]
[TD]
0.55​
[/TD]
[TD]
0.59​
[/TD]
[TD]
0.65​
[/TD]
[TD]
0.67​
[/TD]
[TD]
0.87​
[/TD]
[/TR]
[TR]
[TD]
17
[/TD]
[TD]Rms Commissions GDS[/TD]
[TD]
1.01​
[/TD]
[TD]
1.58​
[/TD]
[TD]
-1.04​
[/TD]
[TD]
-​
[/TD]
[TD]
-​
[/TD]
[TD]
-​
[/TD]
[TD]
-​
[/TD]
[TD]
-​
[/TD]
[TD]
0.81​
[/TD]
[TD]
0.77​
[/TD]
[TD]
0.67​
[/TD]
[TD]
0.72​
[/TD]
[TD]
-​
[/TD]
[TD]
-​
[/TD]
[TD]
-​
[/TD]
[/TR]
</tbody>[/TABLE]

A2
=SUMPRODUCT((A10:A17=B2)*(B6:P6=B3)*(B7:P7=B4)*(ISNUMBER(B10:P17)),B10:P17)


 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,435
Members
452,326
Latest member
johnshaji

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