+ Reply to Thread
Results 1 to 5 of 5

use cell A1 as sheet name in formula

  1. #1
    Forum Contributor
    Join Date
    04-27-2014
    Location
    england
    MS-Off Ver
    excel 2003,2016 and google sheets
    Posts
    129

    use cell A1 as sheet name in formula

    Hi maybe a simple one for someone but im trying to use a dropdown list with all the sheet names in it as a refrence, then what ever i select in the drop down list it uses it as the sheet name in the formula, i have attached a example, using google sheets. so in the formula where it says for example Sheet2! i want that replaced with the value in the drop down list. formula is in B1.
    thanks again for any help.
    https://docs.google.com/spreadsheets...it?usp=sharing

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: use cell A1 as sheet name in formula

    Use the Indirect function.

    =INDIRECT(A1 &"!A1")
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    04-27-2014
    Location
    england
    MS-Off Ver
    excel 2003,2016 and google sheets
    Posts
    129

    Re: use cell A1 as sheet name in formula

    Thanks for the reply, how would I link that in with my formula?

    =TRANSPOSE(FILTER(Sheet2!B2:B,Sheet2!A2:A = A2 ) )

    I need to replace sheet2! With Value in cell A1
    Thank you

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: use cell A1 as sheet name in formula

    =TRANSPOSE(FILTER(indirect(A1&"!B2:B"),Indirect(A1&"!A2:A") = A2 ) )

  5. #5
    Forum Contributor
    Join Date
    04-27-2014
    Location
    england
    MS-Off Ver
    excel 2003,2016 and google sheets
    Posts
    129

    Re: use cell A1 as sheet name in formula

    Works perfect thank you very much for your 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. [SOLVED] sum 2nd sheet to last sheet specific cell formula issue
    By Jack7774 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-25-2016, 03:37 PM
  2. [SOLVED] how to copy a cell with formula from sheet 1 (data is all vertical) into sheet 2
    By parag in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-21-2014, 07:34 PM
  3. Formula to link cell on one sheet to changing cells on another sheet
    By Patish in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-18-2014, 12:55 PM
  4. [SOLVED] Using in Formula, Ref to a Sheet, a Cell Ref Cont the Sheet Name, Inst of Name Itself
    By 1971erRoadRunner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2014, 03:12 AM
  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. Indirect Formula to return Text from one sheet to cell in another sheet
    By lou031205 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-04-2007, 02:51 PM
  7. Lookup cell contents in on sheet based on a formula in second sheet
    By Michael Wright via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-30-2005, 12:06 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