+ Reply to Thread
Results 1 to 7 of 7

Formula determining tab from which to extract information based upon text in adjacent cell

  1. #1
    Registered User
    Join Date
    01-12-2015
    Location
    England
    MS-Off Ver
    2010
    Posts
    2

    Formula determining tab from which to extract information based upon text in adjacent cell

    Hi All

    Was wondering if someone could help me with a formula related problem I have. I essentially have multiple tabs in my workbook, which all have the same proforma layout. I want to make a summary sheet which lists all the tab names (this list is already made) and extracts a value from each of them (in each tab, the value is in the same cell). Is there any way to create a formula which will choose the tab from which to extract the data based upon the tab name in the list next to it? I tried using the following formula =left(XXX)!A1 to reference the cell but I feel I'm in over my depth here.

    Thanks!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula determining tab from which to extract information based upon text in adjacent

    Hi,

    You need to use the INDIRECT() function. e.g. with the sheet tab name in A1 and the value you want from each of the sheets is in say E1 then

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Formula determining tab from which to extract information based upon text in adjacent

    =indirect("'"&A1&"'!B2")

    if A1 is the first cell of your list of Tab names and the data uou want to copy is in B2 on each sheet; this should work for you. If not, post an excel sheet.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    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

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,228

    Re: Formula determining tab from which to extract information based upon text in adjacent

    Hi th335,

    Sheets can be retrieved by an Index Number. The maximum sheet index in a workbook is Sheets.Count. See if this code makes sense as I think it is close to what you want.
    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    01-12-2015
    Location
    England
    MS-Off Ver
    2010
    Posts
    2

    Re: Formula determining tab from which to extract information based upon text in adjacent

    Hi both

    That formula worked! Thanks very much for the quick response. How is the code you posted working? I get the function, but specifically the use of & in the code?

  6. #6
    Registered User
    Join Date
    01-12-2015
    Location
    Mumbai
    MS-Off Ver
    2010
    Posts
    1

    Re: Formula determining tab from which to extract information based upon text in adjacent

    Hi,
    What if we want to copy range instead of cell?

  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 2406
    Posts
    44,662

    Re: Formula determining tab from which to extract information based upon text in adjacent

    Amoldhore 22. Please start a thread of your own, explaining clearly what you want and prefereably attaching a sample worksheet, showing what you have and what you want. the reaon I ask is that, unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.



    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

+ 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: 12
    Last Post: 09-15-2012, 10:20 PM
  2. Formula for date change based on text in adjacent cell
    By checklist in forum Excel General
    Replies: 5
    Last Post: 04-21-2011, 10:30 AM
  3. Replies: 3
    Last Post: 11-29-2010, 10:28 AM
  4. Replies: 2
    Last Post: 09-22-2009, 10:55 PM
  5. Auto-fill cell based on adjacent cell information..
    By sans in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-17-2005, 07:05 PM

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