Largest Value & Name. Error When Values Are Exactly The Same

aedctalk

Board Regular
Joined
Oct 9, 2010
Messages
156
Is there a way when im creating a chart of highest values using

=LARGE(IF(U40:AS40=0,,U40:AS40),1)
=LARGE(IF(U40:AS40=0,,U40:AS40),2)

And say when both of them are 4

then when i pull the names i just get the same persons name twice. Is there a way to get both different peoples names that both had 4?

Thank you!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Thanks!

Ok I have my values in AX149:AX154
I have the peoples names in AW149:AW154


Then in AN 150:AN152 i have the top 3 values

IN AL150:AL152 i have the names.. To match names to the top 3 values i use

Code:
=IF(ISERR(INDEX($AW$149:$AW$154,MATCH(AN150,$AX$149:$AX$154,0))),,INDEX($AW$149:$AW$154,MATCH(AN150,$AX$149:$AX$154,0)))


changing the AN150, to AN151, AN152 for 2nd and 3rd names..

If i have 2 people with same number though i get "Nick" twice when i'd like i t to show nick and megan.


Thanks for any insight / solutions! :P
 
Last edited:
Upvote 0
You need an extra column with a unique ranking calculation, so that you get results, 1,2,3,4, etc etc, based on max first. Then you can pull results for 1,2,3 for values and for names.

Excel Workbook
ABCDEFG
1NameAmountRankTop3AmountName
2Abe4001011000Dave
3Bob500921000Eddy
4Carl80043900Larry
5Dave10001
6Eddy10002
7Fred6006
8George6007
9Harry20013
10Ike8005
11John6008
12Kev30011
13Larry9003
14Mike30012
15Nick20014
Sheet4
 
Upvote 0
thank you for your help!

I now have ranking working ok.

However i ran into another issue.




if you look at "top shortages" on right. i have this sheet split into two sections "morning" and night so i have rankings for the morning.. on top 3 uder "top shortages" and rankings for night as the bottom 3 under top shortages..

since both were ranked up to 41.... when i match my AO150 to the rankings in BE .. it doesnt work since i have two 41 rankings 2 40 rankings and 2 39 rankings..

Can you think of any workarounds? Would be willing to send a dummy file to anyone who thinks maybe they can conquer this for me. Been stuck quite a while on this :(

if i take away the doubles of 41, 40, 39.. the bottom 3 names show up correctly on the left..

its just this duplicate rankings issue since i have a morning and night part of the sheet... that is getting me stuck now
 
Upvote 0
You say "I now have ranking working ok.", but it appears not, if you are getting 41 twice. Am I understanding you correctly?
 
Upvote 0
I did not make sense. I do apologize.

The issue i'm having with ranking now is

I have a morning and evening section on one sheet.

Morning totals are on U43:AS43

Evening totals are on row U144:AS144

I now understand how to rank these sperately

However how do i get it to Rank both different rows?

IE: i can have rank 1 be on data on row 144 and rank 2 can be from data on row 43.
 
Upvote 0
I don't understand ... what do you mean "how do i get it to Rank both different rows?" ?

Can you give an example of exactly what you are talking about ... a block of data and a block of expected results?
 
Upvote 0
Hi! Thanks for your continued help!

Ok. Here is a image showing how my confusion in ranking

dummyfile.jpg



So how do i rank the above from 1 to 6 when the names and data are not all on the same rows?

Thanks so much :P
 
Upvote 0
Look at this, and see if it helps:

Excel Workbook
ABCDEFGH
1Names of morning employeesJohnEddieMiguelTop 3AmountName
2Items rung up in morning144110Shawn
3( rank )62324Eddie
4Names of evening employeesJessieAdamShawn34Miguel
5Items rung up in evening2410
6( rank )541
Sheet4
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,304
Members
452,904
Latest member
CodeMasterX

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