+ Reply to Thread
Results 1 to 4 of 4

INDIRECT or alternative?

  1. #1
    Registered User
    Join Date
    10-04-2013
    Location
    Liverpool
    MS-Off Ver
    Excel 2003
    Posts
    27

    INDIRECT or alternative?

    Hi,

    I am trying to make a reference to different worksheets within a formula based on the what text the user selects from a combo box.

    The basic idea is to pull the data from cell A2 in a worksheet, as chosen.

    I can get the text matching the work sheet name to display (in a cell B66 on a defined sheet) no problem using both below:

    =INDIRECT("' '!$B$66") or
    =(CONCATENATE("",' '!B66,""))

    I can also get the data I need to display if I have another cell (C66) with A2 typed in with this:

    =INDIRECT("'"&' '!B66&"'!"&' '!C66)

    And also using this:

    =INDIRECT(CONCATENATE("'",' '!B66,"'", "!A2"))

    But what I then need to be able to is copy this formula across rows and down columns so that I can act on a whole grid of data and that's where I get stuck. Obviously =INDIRECT("'"&' '!B66&"'!"&' '!C66) doesn't do it as C66 becomes C67 etc and I lose the reference, and the final one is just text so doesn't copy and move the A2 reference.

    Any pointers at this stage would be greatly appreciated!!

    Thanks D

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: INDIRECT or alternative?

    =INDIRECT("'"&' '!B66&"'!"&' '!C66)
    All those quotes don't look right.

    See if this does what you want:

    =INDIRECT("'"&B66&"'!"&CELL("address",C66))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    10-04-2013
    Location
    Liverpool
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: INDIRECT or alternative?

    Hi Tony thank you for your quick reply, that's solved my issue straight away.

    The quote marks were my fault as I was actually working in a sheet with one space for a name hence the multiple ' '!...I was going to change that before posting but ended up working til late.

    Thanks again!

    D

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: INDIRECT or alternative?

    You're welcome. Thanks for the feedback!

+ 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] VB alternative to using INDIRECT.EXE?
    By xlyfe in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-27-2014, 02:35 PM
  2. Alternative to Indirect()
    By erwina in forum Excel General
    Replies: 3
    Last Post: 09-04-2010, 08:06 PM
  3. Alternative for INDIRECT
    By Hein in forum Excel General
    Replies: 11
    Last Post: 01-27-2009, 05:42 AM
  4. Alternative To INDIRECT?
    By SamuelT in forum Excel General
    Replies: 3
    Last Post: 11-20-2008, 03:53 PM
  5. [SOLVED] Alternative to Indirect
    By [email protected] in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-20-2006, 07:35 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