+ Reply to Thread
Results 1 to 7 of 7

Match Multiple Criteria

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    Nashville
    MS-Off Ver
    Excel 2010
    Posts
    6

    Match Multiple Criteria

    hi all,

    I need a formula!

    BH1 = 3/31/2013
    C = 2635467
    J = 2212.50

    Look in Column B and match to BH1 AND Look in Column E and match to C3

    If both of those match give me the value in Column J

    I have this but it won't give me the value in Column J, it says 0:

    =INDEX(J:J,MATCH(1,(B:B=BH1)*(E:E=C3),0))

    Thank you!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702

    Re: Match Multiple Criteria

    Your formula works but it's an "array formula" that needs to be confirmed with CTRL+SHIFT+ENTER

    Put the formula in a cell, press F2 key to select formula then hold down CTRL and SHIFT keys and press ENTER so that curly braces like { and } appear around formula.

    Probably best to use restricted ranges rather than the whole columns though, otherwise the formula may be slow.....
    Audere est facere

  3. #3
    Registered User
    Join Date
    04-11-2013
    Location
    Nashville
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Match Multiple Criteria

    I forgot to mention that it was in Array formula. Came back with the answer 0 and not the value for that cell. I will restrict the ranges.

  4. #4
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Match Multiple Criteria

    Hello,

    You can try these:
    =INDEX(J:J,MATCH(BH1&C3,B:B&E:E,0))
    =SUMPRODUCT(--(B:B=BH1),--(E:E=C3),J:J)
    The first one is an Array formula though.

    Hope this help.
    (copy pasta from Ford)
    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

    Regards,
    Lem

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702

    Re: Match Multiple Criteria

    Quote Originally Posted by ENAPo View Post
    I forgot to mention that it was in Array formula. Came back with the answer 0 and not the value for that cell. I will restrict the ranges.
    It works OK for me, see attached with formula in D3
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-11-2013
    Location
    Nashville
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Match Multiple Criteria

    The second formula worked. Thank you!

  7. #7
    Registered User
    Join Date
    04-11-2013
    Location
    Nashville
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Match Multiple Criteria

    daddylonglegs,

    I was trying to simplify it by not mentioning that a lot of the data is on another worksheet. I wonder if that was what mixed it up??

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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