+ Reply to Thread
Results 1 to 4 of 4

Look up that fits 2 criteria

  1. #1
    Registered User
    Join Date
    02-09-2009
    Location
    Upstate New York
    MS-Off Ver
    Excel 2003
    Posts
    18

    Look up that fits 2 criteria

    attempting (with zero luck) to populate a cell that has 2 criteria... not sure if I should use VLOOKUP or IF(SUM) or ?

    I need a formula that look through a huge data set and give me a number when this AND that are equal...

    Attached is a file... apologies for the confusing request.

    Basically I want to populate B3 with the data that equal Type 1 and Category AA...

    Thanks in advance... NJEXPRESS9
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Look up that fits 2 criteria

    Try

    =SUMPRODUCT((B2=$B$13:$B$28)*(A3=$A$13:$A$28),($C$13:$C$28))

    and copy across and down the entire Category matrix, ie (B3:E10)


    IGNORE THE ABOVE: It doesnt work! :-)
    Last edited by Special-K; 08-25-2009 at 03:53 PM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Look up that fits 2 criteria

    tRY, In B3,

    =SUMPRODUCT(--($A$13:$A$28=$A3),--($B$13:$B$28=B$2),$C$13:$C$28)

    copied down and across the table
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Look up that fits 2 criteria

    If your dataset is small as per your attachment then SUMPRODUCT as already outlined is definitely an excellent way to go - if on the off chance you have masses of data in reality then I would use a helper and then SUMIF as it will be a little quicker, eg using your sample file:

    Please Login or Register  to view this content.
    Then

    Please Login or Register  to view this content.
    Again, to reiterate the above is only really worthwhile if you have mass data and mass amounts of calcs to perform.

    You might also want to consider using a Pivot Table though it may not give you the exact layout you desire.

+ 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