+ Reply to Thread
Results 1 to 6 of 6

How to use Indirect function in array lookup formula

  1. #1
    Registered User
    Join Date
    04-24-2014
    Location
    Willowbrook, USA
    MS-Off Ver
    Excel 2010
    Posts
    23

    How to use Indirect function in array lookup formula

    Hello,

    I am trying to incorporate indirect function in the below formula so that the formula always looks for same cells even though the reference cells in the master sheet are deleted or changed(when new cells are inserted in between). Any ideas on how I can accomplish it in the below formula?

    Appreciate your help!

    =IFERROR(INDEX(MASTER!$S$3:$BS$3,SMALL(IF(((MASTER!$CB4:$EB4)=(I$3))*(YEAR(MASTER!$S4:$BS4)=YEAR(I$2)),COLUMN(MASTER!$S4:$BS4)-COLUMN(MASTER!$S$4)+1),COLUMNS($I4:$I4)))," ")

    Thanks in advance!

    PM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: How to use Indirect function in array lookup formula

    Just encapsulate INDIRECT around the ranges. Assuming each range converts to a string, the absolute references become unnecessary.

    Please Login or Register  to view this content.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    04-24-2014
    Location
    Willowbrook, USA
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: How to use Indirect function in array lookup formula

    Thanks a lot! It worked. I learnt what I was doing wrong before, forgot "" for the cell ranges before.

    Lookslike when we drag the cell with the formula Indirect("MASTER!$CB4:$EB4") to other cells(to copy the formula) it is not changing to Indirect("MASTER!$CB5:$EB5"). Is they way to get that with Indirect function?

    Appreciate your help!

    Thanks,

    PM.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: How to use Indirect function in array lookup formula

    Yes, but it's a lot more complicated. INDIRECT translates text into references, and text doesn't change with reference.

    Instead you'll need to write an expression that does change, mostly using ROW() or COLUMN().

    Is this formula being dragged up and down or left and right?

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: How to use Indirect function in array lookup formula

    For example, imagine we have a cell where we are targeting Sheet2 A1.

    =INDIRECT("Sheet2!A" & row(a1)) could be used to represent this with a relative reference.

    As this formula is dragged down, the ROW(A1) reference will change, incrementing to

    Sheet2!A2
    Sheet2!A3
    Sheet2!A4
    etc

  6. #6
    Registered User
    Join Date
    04-24-2014
    Location
    Willowbrook, USA
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: How to use Indirect function in array lookup formula

    Thanks a lot! I need to drag down. It works. Appreciate your help!

+ 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] Using INDIRECT function with an array formula
    By al_noggin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-02-2014, 04:21 AM
  2. Entering INDIRECT.exe IF function as an array
    By Mr ZN in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-31-2013, 12:31 AM
  3. Indirect function combined with Array
    By NYRealEstateAnalyst in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-10-2013, 02:46 AM
  4. [SOLVED] LOOKUP function with SEARCH and INDIRECT
    By bubbacheese in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-13-2013, 03:55 PM
  5. Indirect function and Array formula
    By Manumusashi in forum Excel General
    Replies: 3
    Last Post: 04-28-2011, 10:13 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