modify MATCH code

erutherford

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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,224,823
Messages
6,181,170
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