+ Reply to Thread
Results 1 to 4 of 4

Cell value to reference a tab

  1. #1
    Registered User
    Join Date
    01-25-2024
    Location
    Essex
    MS-Off Ver
    Office 11
    Posts
    1

    Cell value to reference a tab

    Hi all, this is my first post so not sure what to expect.

    I have created a spreadsheet with a number of tabs with the tab sheets all hold similar data but in different years.


    I have this formula to reference 'Sheet A'

    =COUNTIFS('sheet A'!$B$4:$B$2941,B12,'Sheet A'!$E$4:$E$2941,$C$11,'Sheet A'!$O$4:$O$2941,$A$10).

    I would like to used a dropdown list with the tab name instead of using many $tring$ to reference the sheets individually, how do i show this instead of 'Sheet A'!


    Many thanks in advance
    Phil

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Cell value to reference a tab

    you can use an Indirect() to reference that cell and use the contents in another formula
    HOWEVER
    A sample sheet would help here, and possibly will enable a quicker and more accurate solution for you.


    The forum does allow for spreadsheets to be uploaded direct to the forum -

    Please see the Yellow Banner at the top of the page explaining how to attach a sample spreadsheet

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Here are the instructions, found at the top of the page again
    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,918

    Re: Cell value to reference a tab

    Administrative Note:

    Is your forum profile showing the Excel PRODUCT that you need this to work for? Office 11 does not exist ...

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The three most recent Excel products are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,918

    Re: Cell value to reference a tab

    You could try this:

    =COUNTIFS(INDIRECT("'"&A1&"'!$B$4:$B$2941""),B12,INDIRECT("'"&A1&"'!$E$4:$E$2941"),$C$11,INDIRECT("'"&A1&"'!$O$4:$O$2941"),$A$10)

    where A1 contains the text Sheet A.

+ 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: 3
    Last Post: 03-22-2021, 10:21 AM
  2. [SOLVED] Calculate positive cell reference against negative cell reference
    By Por2gal in forum Excel General
    Replies: 5
    Last Post: 09-15-2020, 09:16 AM
  3. Replies: 1
    Last Post: 08-14-2015, 02:49 AM
  4. Replies: 1
    Last Post: 02-11-2015, 01:56 PM
  5. [SOLVED] Replace absolute cell reference with Indirect cell reference in formula
    By Roothy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-11-2013, 04:46 AM
  6. Replies: 5
    Last Post: 02-25-2010, 03:51 PM
  7. Text Cell reference and increase the cell reference by step value
    By Supriya in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2005, 08:18 AM

Tags for this Thread

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