+ Reply to Thread
Results 1 to 5 of 5

IF / INDEX-MATCH Combination

  1. #1
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2010
    Posts
    25

    IF / INDEX-MATCH Combination

    Hi All,

    I'm hoping someone can help me figure this out. Essentially, here is what I'm trying to accomplish using a formula:
    In cell N2, look for matches to M1 value in column B, then within these matches, look for a match to M2 value in column C. Then, given that a combination of these 2 criteria is found, make the following calculation : [(column D value on the right of two criteria match)/L1]*(column E value on the right of two criteria match)

    Then the idea would be to drop this formula down the N column so that it adapts to changing values in the M columns, depending on a choice made in M1.TEST1.xlsx

    I've attached a spreasheet example. Thanks for your help with this!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: IF / INDEX-MATCH Combination

    I *think* this is what you want?
    =SUMPRODUCT(--($B$2:$B$33=$M$1),--($C$2:$C$33=M2),($D$2:$D$33/$L$1*$E$2:$E$33))
    copied down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: IF / INDEX-MATCH Combination

    Hi Fdibbins,

    Thanks for your answer. I don't understand how this formula looks for a multiple criteria MATCH in order to know what values to use in the calculation?

    Thanks!

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: IF / INDEX-MATCH Combination

    I'm reading it the same as you Ford.

    @Joshua,
    Ford is using a well-known (that is, well-known to excel power-users) but informal trick to get the SUMPRODUCT function to do boolean conditional testing; that boolean conditional is the MATCH operation you're looking for.

    This stackoverflow thread which is clarifying the need for number-forcing is actually also a clear and pretty succinct description of how the trick works.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: IF / INDEX-MATCH Combination

    Ben, thanks for the explanation

    Joshua, did it work for you?

+ 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. Combination of IF and INDEX/MATCH
    By flandophile in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-30-2012, 09:52 AM
  2. Index and Match formula combination
    By anstasija in forum Excel General
    Replies: 3
    Last Post: 10-21-2011, 08:17 AM
  3. Index Match Combination for two variables
    By zhopa19 in forum Excel General
    Replies: 2
    Last Post: 06-21-2011, 03:07 PM
  4. combination of IF, INDEX/MATCH command
    By zombie in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-23-2010, 10:49 AM
  5. [SOLVED] Sum index and match combination
    By txbullets in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-08-2009, 06:21 PM
  6. Using INDEX/MATCH in combination with LARGE?
    By scoobz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-06-2008, 02:38 PM
  7. Combination Lookup - Match - Index
    By idrisb59 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-19-2008, 12:25 PM

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