Highest Value(s) displaying text

Newbienew

Active Member
Joined
Mar 17, 2017
Messages
395
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I am looking for a formula that will sort a data set and return a text for the highest number out of the set in C16 down. As you see there are two 9s so the text would display for those numbers if they are the highest.

In the event, I get blindsided as it happens to me a lot. I am also asking for a second formula that would allow for the second-highest to do the same. So if there are two 9s and an a 8 a formula would be able to display text for that one as well.

I attempted to use IF and Max which didn't work out for me and a countif max which I couldn't figure out. Please help.


Awards Stats.xlsx
ABC
2jOSVET3
3jOSVET3
4jOSVET3
5kOSVET3
6kOSVET3
7kOSVET3
8 
9 
10 
11 
12
13
14
15osvet
16j9
17k9
180
190
200
210
Sheet1
Cell Formulas
RangeFormula
C2:C11C2=IFERROR(VLOOKUP(B2,Sheet2!$A$2:$B$6,2,FALSE),"")
B16:B21B16=SUMIFS($C$2:$C$11,$A$2:$A$11,A16,$B$2:$B$11,$B$15)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B16:B21Cell Valuecontains ""textNO
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
So, I am having an issue with my formula that I can't figure out. I formula in column d is supposed to display who would get an award based on the highest number. It is also supposed to display the second-highest and display two awards. Anything lower than this is just blank, as you see below. The second-highest is not the second-highest for the award. How do I get this formula to work for what I am trying to achieve?
AwardsS tats.xlsx
ABCD
2J39 
3K412 
4K515 
5k618 
6k7212 AWARD
7L824 
8L927 
9L1030 
10L1133AWARD
Sheet1
Cell Formulas
RangeFormula
C2:C10C2=IF(ISBLANK(A2),"",B2*Sheet2!$B$4)
D2:D10D2=IF(C2=MAX($C$2:$C$11),"AWARD",IF(C2<SMALL($C$2:$C$11,4),"",IF(C2=SMALL($C$2:$C$11,5),"2 AWARD","")))
 
Upvote 0
So, I am having an issue with my formula that I can't figure out. I formula in column d is supposed to display who would get an award based on the highest number. It is also supposed to display the second-highest and display two awards. Anything lower than this is just blank, as you see below. The second-highest is not the second-highest for the award. How do I get this formula to work for what I am trying to achieve?


Awards Stats.xlsx
ABCD
1OSVET
2J39 
3K412 
4K515 
5k618 
6k7212 AWARD
7L824 
8L927 
9L1030 
10L1133AWARD
Sheet1
Cell Formulas
RangeFormula
C2:C10C2=IF(ISBLANK(A2),"",B2*Sheet2!$B$4)
D2:D10D2=IF(C2=MAX($C$2:$C$11),"AWARD",IF(C2<SMALL($C$2:$C$11,4),"",IF(C2=SMALL($C$2:$C$11,5),"2 AWARD","")))
 
Upvote 0
Hi, your formula is testing for 5th smallest rather than the 2nd largest.

Maybe you could try like this instead:
Excel Formula:
=IF(C2=LARGE($C$2:$C$10,1),"AWARD",IF(C2=LARGE($C$2:$C$10,2),"2 AWARD",""))
 
Upvote 1
Try this

Book1
ABCD
1OSVET
2J39 
3K412 
4K515 
5K618 
6K7212 AWARD
7L824 
8L927 
9L1030 
10L1133AWARD
Sheet1
Cell Formulas
RangeFormula
D2:D10D2=IF(C2=MAX($C$2:$C$11),"AWARD",IF(C2=AGGREGATE(14,6,$C$2:$C$11/($A$2:$A$11<>INDEX($A$2:$A$11,MATCH(MAX($C$2:$C$11),$C$2:$C$11,0))),1),"2 AWARD",""))
 
Upvote 1
@Newbienew
In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

This time I have merged both threads.
 
Upvote 0
@FormR Thank you very much for your response and assistance on the topic

@Phuoc I would like to thank you as well for your response and assistance as well.

@Fluff I apologize for the double posting and breaking the rules. I was once told that if your posting doesn't get a response in so many days to repost it. In the event that I do make a posting and it does not get a response in so many does what is the best approach other than responding to my own posting?
 
Upvote 0
If you don't get a response you should just Bump the thread by posting to it.
 
Upvote 1

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

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