+ Reply to Thread
Results 1 to 3 of 3

Use cell value as tab name in formula

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Use cell value as tab name in formula

    I need to make the Tina Walsh part of the below formula the value in C* so I can runthis formula down a column and use the tab names (which are the user names in column C) and have the formula find the relevant data on each of their respective tabs.

    It's been so long since I've needed to do this that I can't remember (I think it has something to do with the Index function but I'm confusing myself using index and index).

    I've tried googling it but I keep coming up with using named ranges which isn't what I want.

    Any assistance would be appreciated (and I will kick myself for you when I see the simple answer to this issue.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Use cell value as tab name in formula

    you need to use the INDIRECT function
    assuming name is in C3

    =INDEX(INDIRECT("'" & C3 & "'!E:E"),MATCH(9.99999999999999E+307,INDIRECT("'" & C3 & "'!E:E")))
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    03-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Use cell value as tab name in formula

    if you mean the in C2 have the name of "Tina Walsh" that exactly same with the tab name in other sheet and not other workbook?

    If yes, replace 'Tina Walsh'!E:E with INDIRECT("'"&C2&"'!E:E)
    Hope you can learn every time you visit here.

    If you still confuse on how it work, kindly ask or go to
    i) Formula - Formula (Ribbon) > Formula Auditing (Section) > Evaluate Formula > Evaluate; or
    ii) VBA/Code - Click F8 to see how it work step by step.

    It it take care of your question, Please:
    Mark tread as [Solved] [Thread Tools->Mark thread as Solved]
    ;and
    Click *Add Reputation to thank anyone solved your 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] If cell has a formula, copy text to TextBox and leave formula unchanged in cell
    By yachrishere in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2016, 06:26 PM
  2. Replies: 3
    Last Post: 07-14-2016, 03:53 PM
  3. [SOLVED] Formula to return Blank cell if referenced cell has no entries, if not use formula
    By stpeter in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-17-2016, 01:41 PM
  4. VBA to enter formula in cell not calculating...showing formula in cell
    By kmlloyd in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-09-2015, 06:42 PM
  5. [SOLVED] Enter formula result from one cell into a COUNTIF formula in another cell. Help please!
    By gregrach in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2014, 11:23 AM
  6. [SOLVED] Retaining formula cell references when copying a formula to a different cell
    By FrankParisi in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2013, 07:05 AM
  7. Replies: 5
    Last Post: 05-07-2013, 08:34 AM

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