Finding a max value in range of cells and returning which sheet that value exists in

Dannytt93

New Member
Joined
Feb 13, 2019
Messages
9
Hello,

I am creating a dashboard so that i can see who has the highest value of in a certain column. I can get it to return the value which is great, but is there anyway to get it to return the sheet name too?

e.g. so far i have this:

=MAX('Name1'!N6:N26,'Name2'!N6:N26,'Name3'!N6:N26,'Name4'!N6:N26,'Name5'!N6:N26,'Name6'!N6:N26,'Name7'!N6:N26,'Name8'!N6:N26,'Name9'!N6:N26)


I have tried using Array but due to the names being actual names and not a numerical value, i cant get it to work. i have changed the name of the people (which are the names of the sheets) to name 1 for privacy.

Any help would be great.

Kind Regards

Dan
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Not saying I'll answer this but...

As usual with a MAX() command, what happens if there's a more than one person has the highest value in a certain column?
What would you expect to see then?
 
Upvote 0

Book1
N
5
63
77
83
97
10
Name1



Book1
N
5
64
71
87
9
10
Name2



Book1
N
5
65
74
82
9
10
Name3


We have a set of 3 sheets for reasons of space.


Book1
ABC
1Name1max value
2Name27
3Name3list
4Name1
5Name1
6Name2
7
result


Create a range for the relevant sheet names as done in A1:13 above; select this range and name the selection SheetList.

In C2 control+shift+enter, not just enter:

=MAX(N(OFFSET(INDIRECT("'"&TRANSPOSE(SheetList)&"'!N2:N26"),ROW($N$2:$N$26)-ROW($N$2),0)))

In C4 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX(SheetList,SMALL(IF(TRANSPOSE(N(OFFSET(INDIRECT("'"&TRANSPOSE(SheetList)&"'!N2:N26"),ROW($N$2:$N$26)-ROW($N$2),0)))=$C$2,ROW(SheetList)-ROW(INDEX(SheetList,1,1))+1),ROWS($1:1))),"")
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

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