+ Reply to Thread
Results 1 to 3 of 3

Copying formulas across worksheets

Hybrid View

  1. #1
    Registered User
    Join Date
    12-15-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    1

    Copying formulas across worksheets

    I have a large worksheet that has multiple worksheets as tabs. Each of these tabs has information in a table. These tabs are named things like AAD, CTV, BTY, etc.

    One worksheet is set up to summarise the contents of these tabs. I do not wish to sum, or do anything mathematically to them (so not suitable to use Consolidate).

    I simply want to create a row of formulas in the summary sheet that just points to the relevant cell in the respective tab.

    For example, say there are tabs AAA, BBB, CCC , so in my summary worksheet I have a column that goes down in rows AAA, BBB, CCC. I want a formula that when it is on row AAA, looks up a range of cells in tab AAA. When I copy this formula down to row BBB, then I want it to look up the same range of cells, but this time in tab BBB.



    Is this possible?



    Thanks

  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: Copying formulas across worksheets

    I believe you want to use INDIRECT().

    If A1 had the text string "AAA" in it, and in B1 you wanted cell D25 from the sheet listed in A1, then this formula would accomplish that:

    =INDIRECT("'" & A1 & "'!D25")

    Now you could copy that down the B column and each cell would take the text strings from the adjacent cell in the A column and thus attempt to grab a value from a different sheet...indirectly.
    Last edited by JBeaucaire; 12-16-2009 at 03:58 AM.
    _________________
    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
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Copying formulas across worksheets

    =INDIRECT("'" & A1 & "'!D25")

    slight correction, probably a typo as far as I know JB's work. And these quotes are flipping hard to see.

    it should be
    =INDIRECT(<double quote><single quote><double quote> & etc...

+ 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