+ Reply to Thread
Results 1 to 3 of 3

Indirect formula problem

  1. #1
    Forum Contributor
    Join Date
    01-25-2010
    Location
    Virginia
    MS-Off Ver
    Excel 2013
    Posts
    104

    Indirect formula problem

    Attached is a sample spreadsheet with a problem formula.

    The Indirect formula works fine for matching ids in Section A, which starts at the top of the column, but as soon as I try to find matches in the same column for any section that starts anywhere other than the first row, I run into problems. (See column I for some comments on the errors.)

    Can someone tell me what I'm doing wrong?


    Thank you for all the quick help!!
    Attached Files Attached Files
    Last edited by SueWithQuestion; 12-09-2010 at 12:33 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Indirect formula problem

    Put this in E2 and copy down:

    =IF(ISERROR(MATCH(D2,$B:$B, 0)), "-", INDEX($C:$C, MATCH(D2,$B:$B, 0)))

    Then copy E2 to H2, then copy that down.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Indirect formula problem

    Any reason why using INDIRECT?

    Try:

    =INDEX($C$2:$C$35,MATCH(1,INDEX(($A$2:$A$35="B")*($B$2:$B$35=G2),0),0))

    copied down.

    Does that work for you?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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