Closed Thread
Results 1 to 8 of 8

Finding the corresponding cell of the first value meeting multiple criteria

  1. #1
    DCPHOLD
    Guest

    Not me.

    I followed same method as tmarsh and although it returns shoes, it only ever returns shoes! Even with no criteria the formula results in shoes. What have I missed?

  2. #2
    Chris Barlow
    Guest

    Mistake in formula

    The last part is missing an = sign because it should be less than or equal to i.e., (C2:C7 <= D3)))}

    If you change the criteria it should now work

  3. #3
    M.Hussain
    Guest

    Retrieving an Item from a List that Meets Multiple Criteria

    I tried this formula {=INDEX(A2:A7,MATCH(1,(B2:B7=D2)*(C2:C7<D3)))}
    but its not working may be I am missing some things please reply me regarding this error at my following. Thanks
    [email protected]

  4. #4
    Graham
    Guest
    For this to work properly, the Match_type of the MATCH function must be specified as "0". If omitted, it is assumed as "1" - finds the largest value less than or equal to the lookup value, and requires that the array values be in ascending order. The formula should be:
    {=INDEX(A2:A7,MATCH(1,(B2:B7=D2)*(C2:C7<D3),0))}

  5. #5
    Kannan
    Guest

    Doubt

    {=INDEX(A2:A7,MATCH(1,(B2:B7=D2)*(C2:C7<D3),0))}

    In the above formula u r using multiplication (*) symbol. When u use division (/) symbol also it returns u the same value. What is the difference?

  6. #6
    Forum Contributor
    Join Date
    12-07-2004
    Posts
    596

    Finding the corresponding cell of the first value meeting multiple criteria

    Problem:

    Range A2:C7 contains a list of items and their corresponding colors and prices.
    How could we find the name of the first Blue item which costs less than $200?

    Solution:

    Enter the following array formula, using the INDEX and MATCH functions:
    {=INDEX(A2:A7,MATCH(1,(B2:B7=D2)*(C2:C7

    Example:

    Item______Color____Price___Criteria
    Shoes_____Red______$140____Blue
    Jacket____Brown____$300____$200
    Shoes_____Blue_____$199
    T-Shirt___Green____$10
    Jeans_____Blue_____$150
    Shoes_____Black____$99

    Result_____Shoes

  7. #7
    Registered User
    Join Date
    06-30-2005
    Posts
    2

    Issues with example

    I tried setting up the example in a blank worksheet and it was not able to come back with "Shoes". Is there some formatting issues here, or is there a version problem, something missing from the formula?

  8. #8
    Registered User
    Join Date
    08-26-2004
    Posts
    1

    Talking

    it worked for me!

    i copied the table from the web page table, pasted into A1, converted all "_" to spaces, deleted all excess spaces (using ASAP utilities), then used 'text to columns...' to convert the text to multiple columns (using the space character as the delimiter).

    the forumla as shown does not work; you have to remove the curly brackets at either end, then press <CTRL>+<SHIFT>+<ENTER> together (which makes it an array formula and puts the curly brackets back in)

Closed Thread

Thread Information

Users Browsing this Thread

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

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