+ Reply to Thread
Results 1 to 4 of 4

How to use formula from another cell to direct formula to another sheet?

  1. #1
    Registered User
    Join Date
    10-16-2013
    Location
    Queensland, Australia
    MS-Off Ver
    MS365, Version 2202
    Posts
    73

    How to use formula from another cell to direct formula to another sheet?

    Hi Guys,

    I have a table of contents (TOC) sheet at the start of my workbook, and I want the row to auto-populate with data from the sheets referred to in the TOC.

    I was previously doing this manually with ='sheetname'!D2 and the various other cell locations it needs to draw data from.

    Now that the first column is auto populated by a TOC macro (macro grabs all active sheet names, and creates a hyperlinked list in the first column) , I want to write a macro/formula that will run after the TOC macro, and auto-populate each row with the relevant formula (='sheetname'!A3 for example)

    I'm having trouble getting excel to use the data in column A. It instead insists on using "A5" in the formula, and not the DATA that is present in A5.

    to better summarise, cell A1 is a macro that grabs the sheet name and hyperlinks. I want cell A2 to be a formula that grabs some info out of a cell on the sheet referred to in cell A1, without having to manually enter the sheet name into cell A2.

    any help greatly appreciated!

    thanks guys!
    Last edited by Christopher135; 10-16-2013 at 10:34 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: How to use formula from another cell to direct formula to another sheet?

    Hi and welcome to the forum

    I think you need to use INDIRECT() for this, maybe something like...
    =INDIRECT("'"&A1&"'!A3")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-16-2013
    Location
    Queensland, Australia
    MS-Off Ver
    MS365, Version 2202
    Posts
    73

    Re: How to use formula from another cell to direct formula to another sheet?

    Hey! it works!

    witch craft.

    Thanks very much!!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: How to use formula from another cell to direct formula to another sheet?

    do do doooo lol naaa its all done with mirrors mate

    Happy to help and thanks for the feedback Looking forward to helping on you next question

+ 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] Can a formula refernce not a direct cell, but the most recent date/highest in a row?
    By 33CDonnelly in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-14-2013, 11:50 AM
  2. Replies: 5
    Last Post: 06-12-2013, 01:31 PM
  3. [SOLVED] Excel formula for Direct Debit calculator - Help Please!
    By Millyweb in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 05-28-2013, 04:27 AM
  4. macro to save specific sheet as pdf direct to folder linked via cell
    By sdts in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-17-2012, 05:45 AM
  5. GoTo Code to direct to another sheet based on input in cell
    By gazzz_tha1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2011, 08:24 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