Using OFFSET and MATCH to return the correct value

Brendan89

New Member
Joined
Oct 18, 2017
Messages
26
I have a problem with using the MATCH formula to return the correct 'ranking' from my named array.

I have the following:

Cell Q3 - with options VL,L,M,H,VH
Cell R3 - with options VL,L,MLH,VH

Cell T3 should return an overall rating depending on what the user has selected from Cell Q3 and R3.

I have a named range (Matrix1) which shows the what values should be returned (this may or may not have copied correctly into this post.

I tried the following formula as somewhat of a stab in the dark but returned with a #N/A error:

=OFFSET(Matrix1,MATCH(Q3,Matrix1,0),MATCH(R3,Matrix1,0))

Can anyone help with what I should be using to do what I need this to do here?



[TABLE="width: 448"]
<colgroup><col width="64" style="width: 48pt;" span="7"></colgroup>
<tbody>[TR]

[TD="class: xl69, width: 64, bgcolor: transparent, align: center"]Impact[/TD]

[TD="class: xl80, width: 384, bgcolor: transparent, colspan: 6"]Probability[/TD]

[/TR]

[TR]

[TD="class: xl70, bgcolor: transparent"] [/TD]

[TD="class: xl71, bgcolor: transparent"]A: VH[/TD]

[TD="class: xl71, bgcolor: transparent"]B: H[/TD]

[TD="class: xl71, bgcolor: transparent"]C: M[/TD]

[TD="class: xl71, bgcolor: transparent"]D: L[/TD]

[TD="class: xl71, bgcolor: transparent"]E: VL[/TD]

[TD="class: xl72, bgcolor: transparent"]F: None[/TD]

[/TR]

[TR]

[TD="class: xl73, bgcolor: transparent"]1: VH[/TD]

[TD="class: xl74, bgcolor: black"]1-VH[/TD]

[TD="class: xl75, bgcolor: red"]2-H[/TD]

[TD="class: xl75, bgcolor: red"]2-H[/TD]

[TD="class: xl75, bgcolor: red"]2-H[/TD]

[TD="class: xl76, bgcolor: #FFFF99"]3-M[/TD]

[TD="class: xl77, bgcolor: transparent"]None[/TD]

[/TR]

[TR]

[TD="class: xl73, bgcolor: transparent"]2: H[/TD]

[TD="class: xl75, bgcolor: red"]2-H[/TD]

[TD="class: xl75, bgcolor: red"]2-H[/TD]

[TD="class: xl76, bgcolor: #FFFF99"]3-M[/TD]

[TD="class: xl76, bgcolor: #FFFF99"]3-M[/TD]

[TD="class: xl78, bgcolor: #99CCFF"]4-L[/TD]

[TD="class: xl77, bgcolor: transparent"]None[/TD]

[/TR]

[TR]

[TD="class: xl73, bgcolor: transparent"]3: M[/TD]

[TD="class: xl75, bgcolor: red"]2-H[/TD]

[TD="class: xl76, bgcolor: #FFFF99"]3-M[/TD]

[TD="class: xl76, bgcolor: #FFFF99"]3-M[/TD]

[TD="class: xl78, bgcolor: #99CCFF"]4-L[/TD]

[TD="class: xl78, bgcolor: #99CCFF"]4-L[/TD]

[TD="class: xl77, bgcolor: transparent"]None[/TD]

[/TR]

[TR]

[TD="class: xl73, bgcolor: transparent"]4: L[/TD]

[TD="class: xl78, bgcolor: #99CCFF"]4-L[/TD]

[TD="class: xl78, bgcolor: #99CCFF"]4-L[/TD]

[TD="class: xl78, bgcolor: #99CCFF"]4-L[/TD]

[TD="class: xl78, bgcolor: #99CCFF"]4-L[/TD]

[TD="class: xl79, bgcolor: #D6DCE4"]5-VL[/TD]

[TD="class: xl77, bgcolor: transparent"]None[/TD]

[/TR]

[TR]

[TD="class: xl80, bgcolor: transparent"]5: VL[/TD]

[TD="class: xl78, bgcolor: #99CCFF"]4-L[/TD]

[TD="class: xl78, bgcolor: #99CCFF"]4-L[/TD]

[TD="class: xl79, bgcolor: #D6DCE4"]5-VL[/TD]

[TD="class: xl79, bgcolor: #D6DCE4"]5-VL[/TD]

[TD="class: xl79, bgcolor: #D6DCE4"]5-VL[/TD]

[TD="class: xl77, bgcolor: transparent"]None[/TD]

[/TR]

[TR]

[TD="class: xl80, bgcolor: transparent"]6: None[/TD]

[TD="class: xl77, bgcolor: transparent"]None[/TD]

[TD="class: xl77, bgcolor: transparent"]None[/TD]

[TD="class: xl77, bgcolor: transparent"]None[/TD]

[TD="class: xl77, bgcolor: transparent"]None[/TD]

[TD="class: xl77, bgcolor: transparent"]None[/TD]

[TD="class: xl77, bgcolor: transparent"]None[/TD]

[/TR]

</tbody>[/TABLE]
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
You can't use the same range for all 3 arguments, so I've guessed which ranges you've used for columns and rows.
=INDEX(Matrix1, MATCH(Q3,A2:A6,0),MATCH(R3,B1:G1,0))
 
Upvote 0
You can't use the same range for all 3 arguments, so I've guessed which ranges you've used for columns and rows.
=INDEX(Matrix1, MATCH(Q3,A2:A6,0),MATCH(R3,B1:G1,0))

Thanks, slowly getting there! I changed the reference as you suggested and it returns a value from the table but not the correct ones. It's actually referencing A2:A6 and B1:G1 rather than returning the combined rating from selecting both within the table itself?

Q3 Is Probability
R3 is Impact

The cell with this formula in it should return the combined rating according to the table.
 
Upvote 0
What does the range "Matrix1" refer to? This should refer just to the data you are querying, so in this case, B2:G6.

Thanks, slowly getting there! I changed the reference as you suggested and it returns a value from the table but not the correct ones. It's actually referencing A2:A6 and B1:G1 rather than returning the combined rating from selecting both within the table itself?

Q3 Is Probability
R3 is Impact

The cell with this formula in it should return the combined rating according to the table.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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