+ Reply to Thread
Results 1 to 3 of 3

inserting worksheet names into a formula

  1. #1
    Registered User
    Join Date
    05-15-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    inserting worksheet names into a formula

    Hi all

    I have the following formula which works perfectly, but I'm having problems trying to make it more dynamic...

    i.e. the formula arrays used in the index are currently fixed to the worksheet 'ABB Aluminium'

    I would like to get this to refer to a cell, say A8, which would have the name of the relevant worksheet in.

    =IF(BE8<=55,INDEX('ABB Aluminium'!$B$8:$K$29,MATCH(BE8,'ABB Aluminium'!$B$8:$B$29,0),MATCH(CA8,'ABB Aluminium'!$B$8:$K$8,0)),"-")

    I've tried to use INDIRECT, but I can't seem to get it to work...

    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: inserting worksheet names into a formula

    Hello
    The following INDIRECT reference should work for your first range:

    INDIRECT("'"&$A$8&"'!$B$8:$K$29")

    Amend for your second range.

    Hope this helps.
    DBY

  3. #3
    Registered User
    Join Date
    05-15-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: inserting worksheet names into a formula

    Thanks DBY, that's perfect.

+ 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