+ Reply to Thread
Results 1 to 6 of 6

Match multiple criteria in rows and columns

  1. #1
    Registered User
    Join Date
    03-05-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    75

    Match multiple criteria in rows and columns

    I have a spreadsheet, (see attached), where I need to match multiple criteria in rows and columns to find a best possible solution.

    I need a formula in D2 that says: if C2 = "yes", look for a matching item number in column A with a lower cost in column B. True ="yes", false="no"

    Thanks in Advance!
    Attached Files Attached Files

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Match multiple criteria in rows and columns

    Hi JuJuBe,

    Perhaps the following array formula will work (confirmed with CTRL+SHIFT+ENTER):

    =IF(AND(C2="yes",MIN(IF($A$2:$A$39=A2,$B$2:$B$39))<B2),"Yes","No")

  3. #3
    Registered User
    Join Date
    03-05-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: Match multiple criteria in rows and columns

    Thanks a million Paul!

  4. #4
    Registered User
    Join Date
    03-05-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: Match multiple criteria in rows and columns

    You guys are a huge help, I am learning so much.

    Can we take this a bit further? See the updated example.

    I'd like to write a formula in column H that says; If F="yes", find the matching item # with a lower unit cost, convert the May Purchase Qty (G), to the number of items to be purchased using the new item's unit size.

    Make any sense? Sorry, I'm confused too.

    JuJuBe
    Attached Files Attached Files

  5. #5
    Forum Contributor day92's Avatar
    Join Date
    04-20-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 360
    Posts
    600

    Re: Match multiple criteria in rows and columns

    This should work in column H.

    =MIN(IF($F$2:$F$39="YES",$B$2:$B$39,0))

    Im not sure what you need in column G.

  6. #6
    Registered User
    Join Date
    03-05-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: Match multiple criteria in rows and columns

    I'm not explaining what I'm looking for very well. See the updated example spreadsheet attached.

    Let's say I am buying bolts. The different bolts come in cases of different qty's. Some items have a better per bolt price when purchased in different case sizes than I am buying now, others don't. We already found the items that have a better price, this is in column F. Now I want to find how many cases I have to purchase of the new, better priced item # to maintain the total qty of bolts purchased per item # during May.

    Thank you
    Attached Files Attached Files

+ Reply to 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