+ Reply to Thread
Results 1 to 8 of 8

Formula reference to cell in another sheet, sheet name from cell reference

  1. #1
    Forum Contributor
    Join Date
    04-11-2014
    Location
    Norway
    MS-Off Ver
    Office 365 version 2302
    Posts
    156

    Formula reference to cell in another sheet, sheet name from cell reference

    Hi,

    I have a formula with reference to another sheet, but instead of using sheet name in the formula, I would like the formula to use the sheet name from a cell value.

    Is this possible?

    Please see attached sample.
    Attached Files Attached Files
    Last edited by goranimo; 03-22-2024 at 06:49 AM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,682

    Re: Formula reference to cell in another sheet, sheet name from cell reference

    you can do it this way using indirect but based on how you have designed it you'll have to change the tab name to exclude spaces so Test 2 will need to get rid of the space either by doing it this way Test_2 (and the tab to match) or Test2 with also a tab to match. =INDIRECT(A2&"!a1") that you can drag down.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,671

    Re: Formula reference to cell in another sheet, sheet name from cell reference

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Forum Contributor
    Join Date
    04-11-2014
    Location
    Norway
    MS-Off Ver
    Office 365 version 2302
    Posts
    156

    Re: Formula reference to cell in another sheet, sheet name from cell reference

    Thank you JohnTopley!

  5. #5
    Forum Contributor
    Join Date
    04-11-2014
    Location
    Norway
    MS-Off Ver
    Office 365 version 2302
    Posts
    156

    Re: Formula reference to cell in another sheet, sheet name from cell reference

    Hi again,

    So I made the sample to easy to implement this to my project.

    My formula is:
    =COUNTA('F3482'!$I$3:$I$200)

    The sheet name 'F3482' is in cell A10 in active sheet.

    I tried =INDIRECT(A10&"!COUNTA($I$3:$I$200)")

    That didnt work.
    Any suggestions?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,182

    Re: Formula reference to cell in another sheet, sheet name from cell reference

    No, it won't work!

    Try this:

    =COUNTA(INDIRECT("'"&A10&"'!$I$3:$I$200"))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Contributor
    Join Date
    04-11-2014
    Location
    Norway
    MS-Off Ver
    Office 365 version 2302
    Posts
    156

    Re: Formula reference to cell in another sheet, sheet name from cell reference

    Thank you AliGW!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,182

    Re: Formula reference to cell in another sheet, sheet name from cell reference

    Glad to have helped.

    If you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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. Indirect Sheet reference with cell reference left function and text
    By teststrip in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2015, 10:31 AM
  2. Reference Cell as Sheet Name in Formula
    By johnctholen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-19-2014, 05:45 PM
  3. [SOLVED] =INDIRECT, Sheet reference with Incremental cell reference
    By Deap in forum Excel General
    Replies: 4
    Last Post: 06-16-2014, 05:58 AM
  4. [SOLVED] Calling string inside cell reference to reference another sheet.
    By {=OR(value=array)} in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-26-2013, 04:45 PM
  5. [SOLVED] Use cell reference on one sheet as a sheet name in a formula on another sheet
    By GavJ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-10-2013, 05:06 AM
  6. Use cell value as reference to sheet in formula?
    By bluegnu in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-19-2013, 02:23 PM
  7. Dragging formula, change sheet reference, but not cell reference
    By Kalilaya0419 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-13-2013, 04:50 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