+ Reply to Thread
Results 1 to 4 of 4

Looking up values across sheets and return not only the value but also the sheet name

  1. #1
    Registered User
    Join Date
    01-14-2014
    Location
    Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    8

    Looking up values across sheets and return not only the value but also the sheet name

    Hi

    I wonder if you guys could help me with my issue. I am looking up the largest value across various sheets (1 to 99) with the following formula:

    =LARGE('1:99'!$B$1:$B$50;$C3)

    That correctly returns the largest value in range B1:B50 across sheets 1 to 99.

    However now I want to know the sheet name of the value above in a seperate cell, let say in: A3.
    I'm using excel 2010.

    Any suggestions?

    Thanks a lot!

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Looking up values across sheets and return not only the value but also the sheet name

    Have a look here:
    http://www.excelforum.com/excel-form...heet-name.html

    Perhaps you can use the formula in post 3:
    =INDEX($A$2:$A$13,MATCH(TRUE,COUNTIF(INDIRECT("'"&$A$2:$A$13&"'!C14"),B2)>0,0))

    you probably don't need to do it with the sheet names listed in A2:A13 - you can probably replace this with row(A1:A99) to generate the 1:99 numbers.

    I think if this method doesn't work for you, you will need a UDF.

  3. #3
    Registered User
    Join Date
    01-14-2014
    Location
    Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Looking up values across sheets and return not only the value but also the sheet name

    I guess I need a UDF... what is this?

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Looking up values across sheets and return not only the value but also the sheet name

    You can write a custom function (user-defined-function) with vba. For example, something like:
    Please Login or Register  to view this content.
    might work if you are working with unique values. Press Alt+F11 to open the vba editon, then select insert->module and paste the code in the new module.

    Then on your worksheet, you can use it as you would another function, so:
    =find_sheet_name(A1)
    should return the sheet on which the value in A1 is stored.

+ 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. [SOLVED] Return multiple rows based on values in other sheets
    By DutchYankee in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-20-2013, 09:43 AM
  2. [SOLVED] use 2 values on sheet 1 to search sheet 2 & return text on sheet 1
    By BlakeLee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2013, 04:56 PM
  3. Replies: 1
    Last Post: 10-28-2011, 03:13 AM
  4. Vlookup 2 sheets and return values in rows
    By fun4four in forum Excel General
    Replies: 3
    Last Post: 11-04-2010, 04:37 PM
  5. How to return values from different sheets
    By SMB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-09-2009, 02:56 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