Find max value with criteria and return corresponding value

AKAvenger

New Member
Joined
Mar 22, 2017
Messages
32
Dear Excel Guru's
I need urgent assistance.

I need to find the max value on a file number and return the corresponding customer name. My image refers. I am able to find the max value for a file number but unable to return the corresponding customer name.
Can someone help me?
 

Attachments

  • Get MAX Value based on File Number and return Customer Name.jpg
    Get MAX Value based on File Number and return Customer Name.jpg
    124.2 KB · Views: 66

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I'm assuming the Max value is in E,
BUT this does NOT need E - however MAXIF is 2019 or excel 365
What version do you have


=INDEX(A:A,MATCH(MAXIFS(D:D,C:C,C2),D:D,0))

lookup the Max Date for a value.xlsx
ABCDEF
1NameFile NumberValueName Max
2A1100G
3B2200B
4C3300C
5G1400G
6B2500B
7C31C
Sheet1
Cell Formulas
RangeFormula
F2:F7F2=INDEX(A:A,MATCH(MAXIFS(D:D,C:C,C2),D:D,0))
 
Upvote 0
what happens if for various file numbers they have the same Max value but for different customers?
 
Upvote 0
what happens if for various file numbers they have the same Max value but for different customers?
Hi Etaf,
Answer 1: Column D is the value I need to search to find max. Column E is a formula that finds the max amount based on the file number which works for that purpose but I need the customer name to be returned not the max value. I am using O365.
Answer2: I realize that this might happen, where there is the same value and different customer names, but currently I am not concerned if the formula returns whichever comes first, the number of times this occurs is rare.

I tried your suggestion: =INDEX(A:A,MATCH(MAXIFS(D:D,C:C,C2),D:D,0)) and it works:-). I will now apply to my main data and see if I get the desired results.
 
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,102
Members
452,379
Latest member
IainTru

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