+ Reply to Thread
Results 1 to 10 of 10

Same cell from Multiple tabs

  1. #1
    Registered User
    Join Date
    02-12-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Same cell from Multiple tabs

    I am after help with pulling the same cell from mulitple tabs/worksheets.

    Eg. i have 10 tabs and i want data from cell L20 from each tab to be listed on tab 11 from A1 to A10. but i need to be able to just copy the formula down the A column if i end up adding in more tabs.

    My brain just isn't functioning today.

    Thanks

    Matt
    Last edited by Gallinski; 06-01-2010 at 02:52 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Same cell from Multiple tabs

    You can use the INDIRECT() function to build formulas from pieces of information like that so that it increments as you copy down. Read up on that function.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-12-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Same cell from Multiple tabs

    i had a read up on it, but still don't get it. my tabs/sheets are numbered 1-10, and cell L20 in each tab has the number i require.
    In tab 11, A1='1'!$L$20, A2='2'!$L$20 etc....

  4. #4
    Registered User
    Join Date
    07-18-2008
    Location
    India
    Posts
    68

    Re: Same cell from Multiple tabs

    Hi,

    If you are comfortable with macros, please use the following codes..

    Please Login or Register  to view this content.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Same cell from Multiple tabs

    I can't see any need for VBA!

    The formulas should work

    ='1'!L20

    Attach the workbook for someone to check
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    02-12-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Same cell from Multiple tabs

    ok here is the basic sheet. notice tabs 1 and 2 and then sheet3, sheet4 etc. in the official document, the tabs are numbers 1,2,3, etc. is this what is causing the issue of Indirect not working?
    Attached Files Attached Files

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Same cell from Multiple tabs

    For INDIRECT to work in this manner you should really use a consistent sheet naming convention (ie 1,2, 3 to 7) - it is the inconsistency (1, 2, sheet3, sheet4 etc...) that presently precludes this approach from working.

    If the sheet names are inconsistent then you may wish to use alternative methods (ie store the sheet name in each row in a given Column and refer to that in the INDIRECT call)

    FWIW, be aware that INDIRECT is Volatile (see link in sig. for more info.) - if you over use this function you may find overall performance of your file is affected when run in Auto Calculation mode.

  8. #8
    Registered User
    Join Date
    02-12-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Same cell from Multiple tabs

    oh i realise the inconsistancy with the sheet names. sorry should have pointed that out. Indirect works if the sheets are called Sheet1 Sheet2 etc. but when i call them all 1,2,3,4,etc it does not work. this is what i need fixed.

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Same cell from Multiple tabs

    If they are all digits then why do you have "Sheet " in the sheet name ?

    =INDIRECT("'"&ROWS(A$1:A1)&"'!L2")

    again though I make the point that if you also wish to include sheets that do not follow this rule then simply add the sheet name in each row and refer to it

    =INDIRECT("'"&$Z1&"'!L2")

    where Z1, Z2 etc holds the respective sheet name to be used.

    INDIRECT in essence executes the text string generated within the parentheses as a range reference - so you simply need to ensure the string generated matches that required of the "standard" reference were you to create it manually.

  10. #10
    Registered User
    Join Date
    02-12-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Same cell from Multiple tabs

    Yeah the formula I found and copied from another thread.

    Works a treat. Thanks

+ 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