+ Reply to Thread
Results 1 to 14 of 14

Extracting name of sheet having maximum value

  1. #1
    Registered User
    Join Date
    08-04-2015
    Location
    Stuttgart
    MS-Off Ver
    2013
    Posts
    10

    Extracting name of sheet having maximum value

    Hello,

    I am using the following formula to get maximum value from a particular cell across 97 different sheets with name variation. This works fine. How can I get the sheet name from which the maximum value is coming?

    Best, Sushant

    =MAX(MAX('LK1-beam:LK9-beam'!Q10),MAX('LK10-column:LK97-column'!Q10))

  2. #2
    Forum Contributor
    Join Date
    07-10-2012
    Location
    Bangladesh
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: Extracting name of sheet having maximum value

    1st attach workbook dear

    need excel file 2 see what we can do 4 u

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Extracting name of sheet having maximum value

    If you have that many sheets, I would probably make a summary sheet where I pull in the value from each sheet (name), determine the max from that, and then, because you will already have all the sheet names, it would be simple to pull out the sheet name from that list
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Extracting name of sheet having maximum value

    Assuming your sheet names follow a consistent naming pattern, i.e.:

    LK1-beam, LK2-beam, LK3-beam,..., LK9-beam
    LK10-column, LK11-column, LK12-column,..., LK97-column

    then:

    =IF(MAX('LK1-beam:LK9-beam'!Q10)>MAX('LK10-column:LK97-column'!Q10),"LK"&MATCH(1,FREQUENCY(MAX('LK1-beam:LK9-beam'!Q10),'LK1-beam:LK9-beam'!Q10),0)&"-beam","LK"&9+MATCH(1,FREQUENCY(MAX('LK10-column:LK97-column'!Q10),'LK10-column:LK97-column'!Q10),0)&"-column")

    though you gave no indication of which sheet should be preferred if the maximum is shared by one or more sheets.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Extracting name of sheet having maximum value

    You can adapt this.

    Sheet 1 A3 returns the maximum value from the same range across 3 sheets.

    Sheet 1 I1 to I150 uses an inbuilt Excel function (must be macro enabled) to return a list of sheets in the workbook minus the one on which the list is created. There is a Named Range working here, too. CTRL F3. It is called Sheets.

    Sheet 1 B3 returns the sheet name, using another named range (ShtList) which is a dynamic list of sheet names, currently set to a mximum of 150. It's an array formula (set with CTRL-SHIFT-ENTER).
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Extracting name of sheet having maximum value

    Hi Glenn Kennedy,

    Just wondering why you saved the file as xlsm, because I could not able to find any code


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Extracting name of sheet having maximum value

    Hi. 'cos of the Excle 4.0 function used to get the list of sheetnames in the named range (Sheets):

    =TRANSPOSE(GET.WORKBOOK(1))&T(NOW())

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Extracting name of sheet having maximum value

    Quote Originally Posted by Glenn Kennedy View Post
    Hi. 'cos of the Excle 4.0 function used to get the list of sheetnames in the named range (Sheets):
    Oopss.. Sorry for that since I have not paid full attention on your all formula's.

    I thought those sheet name arriving column was used as a manual input area.

    Thanks for the clarification

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Extracting name of sheet having maximum value

    Here's a formula method to generate the sheet names:

    https://www.excelforum.com/showthread.php?t=929969

    Since it uses an Excel4 macro function the file must be saved as a macro enabled file in Excel versions 2007 or later.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  10. #10
    Registered User
    Join Date
    08-04-2015
    Location
    Stuttgart
    MS-Off Ver
    2013
    Posts
    10

    Re: Extracting name of sheet having maximum value

    Hi all,

    Thanks for replying. I found the answer here-
    http://www.mrexcel.com/forum/excel-q...max-value.html

    See the comment by Domenic.

    Best regards

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Extracting name of sheet having maximum value

    Did you try the solution that i suggested?

  12. #12
    Registered User
    Join Date
    08-04-2015
    Location
    Stuttgart
    MS-Off Ver
    2013
    Posts
    10

    Re: Extracting name of sheet having maximum value

    Dear Glenn,

    I haven't tried it yet as I found the answer in Domenic's post.

    Best regards,
    Sushant

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Extracting name of sheet having maximum value

    Sg_89, this is exactly why we - and most other forums - insist that if you post the same question on another forum, you include a link to that cross-post.

    That way, members dont waste their time and effort on your question, when you have already got the answer elsewhere!!

  14. #14
    Registered User
    Join Date
    08-04-2015
    Location
    Stuttgart
    MS-Off Ver
    2013
    Posts
    10

    Re: Extracting name of sheet having maximum value

    FDibbins, I am sorry for this and would make sure that next time I include a link to the cross-post.

    Best regards,
    Sushant

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 08-03-2014, 03:32 AM
  2. Extracting Sum in one sheet with daily data being refreshed in another sheet.
    By Paritosh negi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-03-2013, 07:47 AM
  3. Replies: 5
    Last Post: 07-10-2013, 02:33 PM
  4. Extracting data from a row on one sheet into another sheet based on a unique cell
    By roshanvarghese in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-23-2013, 03:49 AM
  5. Extracting Maximum values of a column base on the multiple ranges in rows
    By sepantafa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2012, 03:06 AM
  6. Pulling figures from one sheet to another with a maximum.
    By Mountaineer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2009, 02:15 PM
  7. Replies: 4
    Last Post: 12-01-2005, 12:00 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1