Closed Thread
Results 1 to 8 of 8

Finding the corresponding cell of the first value meeting multiple criteria

Hybrid View

  1. #1
    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

  2. #2
    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?

  3. #3
    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