Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula Question - Related to MAX 1

Status
Not open for further replies.

debbiezzzzz

IS-IT--Management
Aug 24, 2007
58
0
0
US
Hello,

I have a user that is utilizing the MAX function to obtain the highest value of specific cells covering MANY separate worksheets in a workbook. The value is correct, but it would help him tremendously if he could also obtain the sheet name and cell that contains this max value.

Example: Workbook with 3 Sheets. (Sheet1, Sheet2, Sheet3)
The user is comparing the values of Sheet1 Cell A1, Sheet2 Cell B2, and Sheet3 Cell C1) The values in these 3 cells are 100,200, and 300 respectively.

The formula =MAX(A1,Sheet2!B2,Sheet3!C1) returns the value of 300 correctly.

Is there a way to also obtain the fact that this value was from Sheet 3 Cell C1?

Any help is appreciated.

Fam
 



Hi,

[tt]
=MAX(A1,Sheet2!B2,Sheet3!C1)

=if(MAX(A1,Sheet2!B2,Sheet3!C1)=A1,"Sheet1"
,if(MAX(A1,Sheet2!B2,Sheet3!C1)=Sheet2!B2,"Sheet2"
,if(MAX(A1,Sheet2!B2,Sheet3!C1)=Sheet3!C1,"Sheet3","")))
[/tt]

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 

=MAX(A1,Sheet2!B2,Sheet3!C1)

=if(MAX(A1,Sheet2!B2,Sheet3!C1)=A1,"Sheet1"
,if(MAX(A1,Sheet2!B2,Sheet3!C1)=Sheet2!B2,"Sheet2","Sheet3"))


Randy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top