+ Reply to Thread
Results 1 to 3 of 3

Replacing a formula with another cell

  1. #1
    Registered User
    Join Date
    06-08-2007
    Posts
    22

    Replacing a formula with another cell

    I have a specific cell which uses the lookup function, however I have many sheets. Without using a macro, is there anyway to have another cell where someone enters the Sheet Name and it replaces 'Sheet1' in this lookup formula?

    So one cell has this formula:
    =VLOOKUP(D4, Sheet1!A4:B364, 2, TRUE)

    And if someone replaces A1 from Sheet1 to Sheet2, I would like this formula to change accordingly.

    Any help would be greatly appreciated. Thanks

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016
    Posts
    3,392
    If your sheet name is in A1,

    =VLOOKUP(D4,INDIRECT(A1&"!A4:B364"),2,TRUE)


    HTH

    Dave
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    06-08-2007
    Posts
    22

    thanks

    Thank you so much

    that worked !

+ 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. Formula - Copy data to remote cell
    By smell_fire in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-28-2008, 05:51 PM
  2. lock formula in a cell to its target cell
    By mcgilles in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-27-2007, 03:17 PM
  3. 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
  4. Replies: 11
    Last Post: 09-09-2007, 05:05 AM
  5. value in cell to determine which named range used in formula
    By trashnation in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-31-2007, 04:20 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