+ Reply to Thread
Results 1 to 4 of 4

Using Cell Data in a forumla

  1. #1
    Registered User
    Join Date
    11-08-2010
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    4

    Using Cell Data in a forumla

    Hi Guys,

    I'm trying to use cell data as a reference in a formula. I want to be able to type the name of a tab into a cell and use that to reference the data on that tab, in a forumla.

    EG:

    CELL A1: TEST

    TAB NAME: TEST

    so far i have found using INDIRECT might help, but cant find the correct formatting for the forumla. I have tried many variants on the below

    =INDIRECT(["&a&1"]!a1)

    to try to get it to just print the value in A1 but it keeps returning an error.

    Help,


    Thanks

    DJ

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Using Cell Data in a forumla

    Hi,

    Try

    Please Login or Register  to view this content.
    Which will return the value 'Test' if the word test is in A1
    More typically I expect you'd want to access the value of some other cell on the sheet test, in which case

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-08-2010
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Using Cell Data in a forumla

    That's awesome Richard. Thanks works a treat.

    I've tried to add it into this formula, but am getting an error... Do you have time to look at this for me?

    =IF(ISNA(VLOOKUP(A3,(INDIRECT("'"&c3&"'!"))$A$6:$F$2560,6,FALSE))=TRUE,"Employee not found",(VLOOKUP(A3,(INDIRECT("'"&c3&"'!"))$A$6:$F$2560,6,FALSE)))


    The formula VLOOKUP's a list of names against an array of data on the appropriately named sheet (C3), and returns column 6 in the lookup array....


    Thanks muchly

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Using Cell Data in a forumla

    Hi,

    Try

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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