+ Reply to Thread
Results 1 to 4 of 4

Formula Required to Lookup and Match Multiple Criteria

  1. #1
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Formula Required to Lookup and Match Multiple Criteria

    Hi,

    I've got a schedule of orders and subsequent invoices raised and would like to establish which invoices had original related orders.

    I've attached an example of what i'm working with and included some additional narrative in comments boxes. I've attempted the first formula myself which does the job but i'm not sure it's the most efficient? i'd be grateful if someone could point out an alternative/better solution?

    If you have any queries just give me a shout.

    Thanks in advance,

    Snook
    Attached Files Attached Files
    Last edited by The_Snook; 01-10-2014 at 08:53 AM.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Formula Required to Lookup and Match Multiple Criteria

    I don't see anything wrong with how you did it. I guess one alternative would be to use an array formula, such as:
    =IF(SUM(IF(B3&C3&D3=Orders!B3:B20&Orders!C3:C20&Orders!D3:D20,1,0))>0,"True","False").

    I'd guess the quickest calculation wise would probably to have helper columns with the concatenated values of columns B, C and D and use a countif or something with the helper columns.

  3. #3
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Formula Required to Lookup and Match Multiple Criteria

    F3:
    =COUNTIFS(Orders!$B$3:$B$20,Invoice!B3,Orders!$C$3:$C$20,Invoice!C3,Orders!$D$3:$D$20,D3)>0
    H3
    (confirm Contrl+shift+enter
    =IFERROR(MATCH(1,(Orders!$B$3:$B$20=Invoice!B3)*(Orders!$C$3:$C$20=Invoice!C3)*(Orders!$D$3:$D$20=D3),0),"")
    J3
    =COUNTIFS(Orders!$B$3:$B$20,Invoice!B3,Orders!$C$3:$C$20,Invoice!C3,Orders!$D$3:$D$20,D3)
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  4. #4
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Formula Required to Lookup and Match Multiple Criteria

    Hi, try these formulas

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy the formulas down...

    ps: first two of the above are array formulas, i.e. press ctrl+shift+enter instead of just enter



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

+ 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] Lookup formula required to search for two criteria and return result
    By dave1983 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-12-2012, 03:29 PM
  2. Lookup and Match Formula required
    By pauldaddyadams in forum Excel General
    Replies: 15
    Last Post: 09-12-2012, 12:05 PM
  3. Replies: 3
    Last Post: 03-25-2012, 12:56 AM
  4. Multiple Criteria Lookup/Match/Index
    By Kasz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-15-2011, 09:30 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