How would I combine these two formulas?

Poppyrob

New Member
Joined
Jan 23, 2023
Messages
14
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
I have two formulas that work. But I would like to combine them into one formula. I have tried and cannot get them nested together correctly.

=INDEX(C6:G10,XMATCH(K5,A6:A10),XMATCH(J5,C4:G4))

=INDEX(C6:G10,XMATCH(M5,A6:A10),XMATCH(L5,C4:G4))

I am using XMatch because if I use Match it will not work. I have 5 ratings, Very Low, Low, Moderate, High, Very High and if I try to match "Low" or "High" the formula will not work. I am guessing because there are other values with the same words in them and it is causing an error. If I select Very Low, Moderate, or Very High match will work.
 
As indicated above, one of the problems in trying to help you is that your data and layout changes with every post.
This is my best guess

24 07 27.xlsm
ABCDEFGHIJKL
1
2Very LowLowModerateHighVery HighLowHighModerateHighModerate
3Very HighLowModerateHighVery HighVery HighLowLowModerateHighLow
4HighLowModerateModerateHighVery HighModerateModerateModerateModerateModerate
5ModerateLowLowModerateModerateHighHighVery HighLowModerateVery High
6LowVery LowLowLowModerateModerate
7Very LowVery LowVery LowLowLowLow
Poppyrob
Cell Formulas
RangeFormula
L2:L5L2=INDEX(B$3:F$7,MATCH(INDEX(B$3:F$7,MATCH(H2,A$3:A$7,0),MATCH(I2,B$2:F$2,0)),A$3:A$7,0),MATCH(INDEX(B$3:F$7,MATCH(J2,A$3:A$7,0),MATCH(K2,B$2:F$2,0)),A$3:A$7,0))
 
Upvote 0
Solution

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
We can make the matrix be generic. I removed the matrix name and we just have a plain matrix.
The yellow is the index of the Likelihood. A low and low is Low.
The orange is the index of the Impact. A Moderate and High is Moderate
What I need is to get the index of the Likelihood (Low) and Impact (Moderate).


Additional for excel help 3.PNG
 
Upvote 0
That works .. Thank you!!!
You're welcome. Thanks for the follow-up. :)

In case it is of interest, below I have provided a slightly shorter version of the formula in column M.

24 07 27.xlsm
ABCDEFGHIJKLM
1
2Very LowLowModerateHighVery HighLowHighModerateHighModerateModerate
3Very HighLowModerateHighVery HighVery HighLowLowModerateHighLowLow
4HighLowModerateModerateHighVery HighModerateModerateModerateModerateModerateModerate
5ModerateLowLowModerateModerateHighHighVery HighLowModerateVery HighVery High
6LowVery LowLowLowModerateModerate
7Very LowVery LowVery LowLowLowLow
Poppyrob
Cell Formulas
RangeFormula
L2:L5L2=INDEX(B$3:F$7,MATCH(INDEX(B$3:F$7,MATCH(H2,A$3:A$7,0),MATCH(I2,B$2:F$2,0)),A$3:A$7,0),MATCH(INDEX(B$3:F$7,MATCH(J2,A$3:A$7,0),MATCH(K2,B$2:F$2,0)),A$3:A$7,0))
M2:M5M2=LET(R,B$3:F$7,H,B$2:F$2,V,A$3:A$7,INDEX(R,MATCH(INDEX(R,MATCH(H2,V,0),MATCH(I2,H,0)),V,0),MATCH(INDEX(R,MATCH(J2,V,0),MATCH(K2,H,0)),V,0)))
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,117
Members
453,021
Latest member
Justyna P

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