max number depending on column left

psychic duck

New Member
Joined
Nov 8, 2010
Messages
20
NFL 51
NBA 67
NFL 43
NHL 35

In this table I want to be able to find the highest number, but only with the text "NFL" to the left of the number.

So it therefore doesn't include 67 which is the highest answer but gives the value 51 which is the highest answer with NFL to the left of it.

I want it in a formula not in filter.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
A messy (but workable) way of doing it would be to input a new column and use the formula

=if($A1 = "NFL", "$B1, "") then use MAX(C:C)
 
Upvote 0
NFL 51
NBA 67
NFL 43
NHL 35

In this table I want to be able to find the highest number, but only with the text "NFL" to the left of the number.

So it therefore doesn't include 67 which is the highest answer but gives the value 51 which is the highest answer with NFL to the left of it.

I want it in a formula not in filter.

Try...

Control+shift+enter, not just enter:

=MAX(IF($A$2:$A$5="NFL",$B$2:$B$5))
 
Upvote 0
--- Edit ---

Sorry already answered - Adadin's solution will work great!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,907
Messages
6,122,183
Members
449,071
Latest member
cdnMech

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