+ Reply to Thread
Results 1 to 7 of 7

Search & Match Mulitple Criteria then Fill Cell with Data

  1. #1
    Registered User
    Join Date
    07-25-2015
    Location
    USA
    MS-Off Ver
    MS Office 2010, Google Sheet
    Posts
    37

    Search & Match Mulitple Criteria then Fill Cell with Data

    Hello Excel Guru,

    Please help with this problem:

    On "Log" tab find and match both EMAIL and ITEM in "Form" tab, then fill blank with Order Number.

    Attached for reference. Thank you so much in advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Search & Match Mulitple Criteria then Fill Cell with Data

    In C2 copied down:
    =IFERROR(INDEX(Form!$B$2:$B$5,MATCH(1,(Form!$A$2:$A$5=Log!$A2)*(Form!$C$2:$C$5=Log!B2),0)),"")

    In E2, copied down:
    =IFERROR(INDEX(Form!$B$2:$B$5,MATCH(1,(Form!$A$2:$A$5=Log!$A2)*(Form!$D$2:$D$5=Log!B2),0)),"")

    In G2, copied down:
    =IFERROR(INDEX(Form!$B$2:$B$5,MATCH(1,(Form!$A$2:$A$5=Log!$A2)*(Form!$E$2:$E$5=Log!B2),0)),"")

    These are array formulae. Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    07-25-2015
    Location
    USA
    MS-Off Ver
    MS Office 2010, Google Sheet
    Posts
    37

    Re: Search & Match Mulitple Criteria then Fill Cell with Data

    Hi Glen,

    Thanks for the quick response. However, it only half worked. Please see attach to see if I made any mistake.

    No orders were found for Amy (A3), and David suppose to have also ordered Item aaa (B5) but doesn't show.
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Search & Match Mulitple Criteria then Fill Cell with Data

    Try this, and remove the extra space after ccc in cell Form C5.

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

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Search & Match Mulitple Criteria then Fill Cell with Data

    @ Glenn Kennedy,
    Sharp eyes Glenn. Didn't see why my formula wasn't working.

    @Swaski,

    Here's another way. It's a non-array formula. Enter this in C2 and fill down. Copy that selected range and paste successively into cells E2 and G2.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  6. #6
    Registered User
    Join Date
    07-25-2015
    Location
    USA
    MS-Off Ver
    MS Office 2010, Google Sheet
    Posts
    37

    Re: Search & Match Mulitple Criteria then Fill Cell with Data

    Thanks again Glenn. But I notice this formula would only work if the emails were in the same sequence on both sheet. If they do not match the same number cell then this formula won't work, is that true?
    Attached Files Attached Files
    Last edited by Swaski; 01-20-2017 at 04:08 PM.

  7. #7
    Registered User
    Join Date
    07-25-2015
    Location
    USA
    MS-Off Ver
    MS Office 2010, Google Sheet
    Posts
    37

    Re: Search & Match Mulitple Criteria then Fill Cell with Data

    @ FlameRetired
    With this formula, amy is completely dismissed. Peter did not order item ccc but still got counted for.

    EDIT: sorry i opened the wrong file. FlameRetired formula works perfectly! THANK YOU!!!
    Last edited by Swaski; 01-20-2017 at 04:16 PM.

+ 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. Replies: 1
    Last Post: 08-11-2016, 02:18 AM
  2. [SOLVED] Index/Match with mulitple criteria referencing same table
    By mchiappetta in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2014, 09:24 AM
  3. [SOLVED] how do I vlookup a cell with mulitple data to match another another multiple data,
    By kemi2299 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-13-2013, 08:21 AM
  4. Mulitple Criteria Index,Match or Evaluate issue
    By Journeyman3000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2013, 04:30 PM
  5. Formula to search and match data from using two criteria
    By Joe O Ceadaigh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-30-2012, 02:08 PM
  6. sumifs with mulitple columns and mulitple criteria in each column
    By bkaufman in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-18-2012, 05:11 PM
  7. [SOLVED] Fill cells if adjacent cell match criteria
    By Jess in forum Excel General
    Replies: 6
    Last Post: 06-01-2006, 04: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