modify MATCH code

erutherford

Active Member
Joined
Dec 19, 2016
Messages
453
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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
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
You're welcome

The * is equivalent to And
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
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