modify MATCH code

erutherford

Active Member
Joined
Dec 19, 2016
Messages
449
I have used this code before and it functions fine. I want to modify it for another use.

original code
Code:
{=IFERROR(INDEX(Entry,MATCH(1,(B56=Div)*(B57=Model)*(MAX(IF(Div=B56,IF(Model=B57,Pts)))=Pts),0)),"x")}

I no longer need "model", so I thought I could just removed it, but it's not functioning. It does returns the "x".

Modified code:
Code:
{=IFERROR(INDEX(Pts,MATCH(1,(B61=Div)*(MAX(IF(Div=B61,Pts)))=Pts),0),"x")}

I have 3 columns "index",'Div" & "pts", the code should return the name in "index" column, based on "Div" criteria in B61 with the highest score in "pts".

thanks
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Try
=IFERROR(INDEX(Indx,MATCH(MAX(IF(Div=B61,pts)),pts,0)),"x")

change value in red to match the name of your "Index" column
 
Upvote 0
Thanks Fluff! I'll research what the purpose of the "*" does, since that looks like what the problem was.
 
Upvote 0
You're welcome

The * is equivalent to And
 
Upvote 0

Forum statistics

Threads
1,213,487
Messages
6,113,943
Members
448,534
Latest member
benefuexx

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