+ Reply to Thread
Results 1 to 4 of 4

Is there a VLOOKUP equivalent of SUMIFS

  1. #1
    Registered User
    Join Date
    03-06-2012
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    48

    Is there a VLOOKUP equivalent of SUMIFS

    So I've come across tables before where I went to set up a look up that refers to more than one indicator and returns a result.

    The table contains multiple areas, each containing districts all named 1-X. Is it possible to have a look up that will pull a result based on what is in two cells, the cells will be drop down lists, so the person can drop down, Area:WEST and District: D2 than the formula fills the result of B.

    Area District Result
    West D1 A
    West D2 B
    West D3 C
    West D4 D
    West D5 E
    East D1 F
    East D2 G
    East D3 H
    East D4 I
    East D5 J

    In the past I made seperate tables for each area, and used a VLOOKUP in combination with IF, so it would look in the WEST table IF the first one was WEST and so on.

    Thoughts on how I could produce this with having the formula only refer to one table and not a mess of IFs (would be about 20or so otherwise)?

    Thanks in advance
    Attached Images Attached Images
    Last edited by CDNcameron; 11-26-2014 at 02:42 PM. Reason: Solved

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Is there a VLOOKUP equivalent of SUMIFS

    When you say more than one table, do you mean more than one column?

    There are a couple options when performing multi-criteria string returns.

    I prefer =LOOKUP(2,1/((criteria_range1=criteria1)*(criteria_range2=criteria2)),output_range)

    So for example, you've got some colors in sheet2a1:A50, some numbers sheet2b1:b50, and some names in sheet2c1:c50.

    =LOOKUP(2,1/((Sheet2!A1:A50="red")*(Sheet2!B1:B50=2)),Sheet2!C1:C50)

    This returns the cell in C where A was red and B was 2.


    You can freely nest in more criteria as needed for even bigger datasets:

    =LOOKUP(2,1/((criteria_range1=criteria1)*(criteria_range2=criteria2)*(criteria_range3=criteria3)*(criteria_range4=criteria4)),output_range) etc
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    03-06-2012
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Is there a VLOOKUP equivalent of SUMIFS

    I'll have to give it a try, what is the purpose of the 1/ and the * linking each criteria?


    Tried it/Got it!

    So the formula ended up being =LOOKUP(2,2/((E12:E27=E9)*(F12:F27=F9)),G12:G27)

    For anyone else reading the 2/ is number of criteria and the * seperates each criteria.

    Thanks Daff! Mama should be proud
    Last edited by CDNcameron; 11-26-2014 at 02:41 PM.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Is there a VLOOKUP equivalent of SUMIFS

    Here's a good explanation of multiplying range/criteria against one another I put together for some of my colleagues.

    I'd read them in order, to get a solid understanding.

    1 Introduction to Arrays and True&False.xlsx

    2 Introduction to Expert Lookup.xlsx

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] SUMIFS Equivalent for Excel 2003 with multiple criteria and range arguments
    By DEER30 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-27-2014, 01:19 AM
  2. [SOLVED] VLOOKUP (equivalent) with combination input
    By rwqiii in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2012, 09:17 PM
  3. Equivalent of a multiple VLookup?
    By WasWodge in forum Excel General
    Replies: 5
    Last Post: 03-24-2011, 04:27 PM
  4. How do I create an equivalent VLOOKUP function using FIND?
    By dan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. VBA equivalent of VLookup on an array
    By KR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2005, 05:06 PM

Tags for this Thread

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