Results 1 to 8 of 8

Lookup Values which meet two or more criteria and return multiple matches horizontally

Threaded View

  1. #1
    Registered User
    Join Date
    02-02-2015
    Location
    Adelaide
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    2

    Lookup Values which meet two or more criteria and return multiple matches horizontally

    Lookup values which meet two or more criteria and return multiple matches horizontally.xlsxLookup values which meet two or more criteria and return multiple matches horizontally.PNGHi everyone

    I have been reading your posts for a while and they have been very useful.

    I was wondering if any of you can assist me with the following problem.

    I would like to lookup for values (prices) in a table that meet two criteria (item name="Pen" & Delivery date<Today()) and retrieve all results horizontally. So far I have been able to identify two formulas that may help but I haven't been able to combine them and come with the solution yet.

    The formulas are:

    {=+IFERROR(INDEX($C$3:$C$12, SMALL(IF($A$3:$A$12="Pen",ROW($A$3:$A$12)-ROW($C$3)+1), COLUMN(A1))),"-")}
    Main Issue: Retrieves values which do not meet the criteria


    {=+IFERROR(INDEX($A$3:$C$12,MATCH(1,($A$3:$A$12="Pen")*($B$3:$B$12<TODAY()),0),3),"-")}
    Main Issue: Retrieves only one of the values which meet the criteria

    Have you come across this problem before?

    Your help is greatly appreciated

    Regards

    Jose Martinez



    Range to Lookup
    Item Delivery Date Purchase Price Meet Criteria
    Pen 05-Feb-2015 $5.20 No
    Eraser 01-Feb-2015 $5.30 No
    Paper 08-May-2015 $5.40 No
    Pen 15-Jan-2015 $5.50 Yes
    Paper clip 15-Jan-2015 $2.20 No
    Pen 01-Feb-2015 $4.30 Yes
    Eraser 05-Jan-2015 $2.10 No
    Paper 31-Dec-2014 $6.30 No
    Pen 30-Mar-2015 $3.20 No
    Paper clip 05-Mar-2015 $9.50 No

    Search Criteria
    Item Pen
    Delivery Date <Today() Today = 03-Feb-2015

    Values to return (Horizontally)
    Pen <Today() $5.50 $4.30
    (15/01/2015) (1/02/2015)
    Functions Used:

    Formula: {=+IFERROR(INDEX($C$3:$C$12, SMALL(IF($A$3:$A$12="Pen",ROW($A$3:$A$12)-ROW($C$3)+1), COLUMN(A1))),"-")}
    Results 5.2 5.5 4.3 3.2
    Criteria Meet No Yes Yes No
    Main Issue: Retrieves values which do not meet the criteria


    Formula: {=+IFERROR(INDEX($A$3:$C$12,MATCH(1,($A$3:$A$12="Pen")*($B$3:$B$12<TODAY()),0),3),"-")}
    Results 5.5 5.5 5.5 5.5
    Criteria Meet Yes Yes Yes Yes
    Main Issue: Retrieves only one of the values which meet the criteria
    Last edited by josetmg; 02-03-2015 at 12:57 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 03-03-2014, 10:03 PM
  2. [SOLVED] Formula to lookup and return multiple results horizontally sheet 1 and 2
    By Chris1234567 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-04-2014, 11:17 AM
  3. Lookup to return multiple values horizontally
    By ROBMP in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-06-2014, 01:32 PM
  4. [SOLVED] Array Formula to Lookup and Return All Rows in Table that Meet Single Criteria
    By Torkel74 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2013, 10:41 PM
  5. Replies: 3
    Last Post: 11-03-2010, 04:05 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