+ Reply to Thread
Results 1 to 6 of 6

Relative referencing of worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    08-22-2005
    Posts
    15

    Relative referencing of worksheet

    My search for this has not gone well...

    I have a list of worksheet names within the book I am working with.
    I need to point to any one of the names on the list and use it to find the value of a cell within the selected worksheet.

    Please assume the name of the worksheet is "Harry Smith" located in cell B27 on the active sheet and the information I need on the selected sheet is found in cell E12.

    What does the formula look like?

    Thanks in advance!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524
    A UDF could help,
    This is explained quite well here

    http://www.ozgrid.com/VBA/VlookupAllSheets.htm

  3. #3
    Registered User
    Join Date
    08-22-2005
    Posts
    15

    relative pointer to spcific worksheet

    Thanks for the link. That is a very useful piece of code.

    However, what I need to do is take the name of the worksheet such as "Harry Smith" and use in in a formula to obtain the value of a cell in "Harry Smith" at B27.

    The name "Harry Smith" is obtained via a dropdown list that puts "Harry Smith" into cell in the current worksheet at, say, C45.

    "Harry Smith" will change each time but the formula needs to be the same for all names selected. Something like $C$45 ?

    Thanks in advance.

  4. #4
    all4excel
    Guest

    Lightbulb Have u tried the INDIRECT function.?

    Quote Originally Posted by paradox
    Thanks for the link. That is a very useful piece of code.

    However, what I need to do is take the name of the worksheet such as "Harry Smith" and use in in a formula to obtain the value of a cell in "Harry Smith" at B27.

    The name "Harry Smith" is obtained via a dropdown list that puts "Harry Smith" into cell in the current worksheet at, say, C45.

    "Harry Smith" will change each time but the formula needs to be the same for all names selected. Something like $C$45 ?

    Thanks in advance.
    Paradox,

    You can create list of all the TAb names in a column and then use it s dropdown.

    If i understand u correctly what u want is to get the data from a constant cell B27 from any of the selected sheets/tabs in your Drop-down


    Lets say u store all the names of all the tabs in a column m from m2 till m20
    U have a dropdown in cell b2, then in c2 type this formula
    u can use this formula in cell c2-

    =INDIRECT("'"&$B$2&"'!$C$45")

    Pls note that there 2 quotes 1 single quote again double quotes & $B$2 and 2 quotes 1 single quote exclamation..

    You can even make this cell ($C$45) address dynamic by storing it somewhere and refering the cell which stores...

    Hope this takes care of your question...

  5. #5
    Registered User
    Join Date
    08-22-2005
    Posts
    15

    Thumbs up Thank you - total success!

    Thank you! Your formula did the trick. Much appreciated!

  6. #6
    all4excel
    Guest

    Smile My pleasure

    Quote Originally Posted by paradox
    Thank you! Your formula did the trick. Much appreciated!
    I'm glad to be of help to you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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