+ Reply to Thread
Results 1 to 4 of 4

sumifs with ranges and criterias depending on an if statement

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    36

    sumifs with ranges and criterias depending on an if statement

    Hello,
    I am working on an interactive table
    Depending on drop down menus, the values of a table are supposed to change and sum different rows of data.

    =SUMIFS('Sheet1'!$X:$X,'Sheet1'!$AR:$AR,report!$F$5,'Sheet1'!Q:Q,report!D33,'Sheet1'!$Q:$Q,Sheet1!B35,)

    want to add another criteria and range which depend on drop a down menu outcomes 1,2,3
    if 1 look for criteria in column $A
    if 2 look for criteria in column $B
    if 3 look for criteria in column $c
    (criteria stays the same)

    How could I integrate this into the sumifs formula?

    Thanks

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: sumifs with ranges and criterias depending on an if statement

    Can you clarify more specifically in reference to the sample SUMIFS() formula you've already provided:

    1) Where will this drop down be, exactly?
    2) Which of the elements of the existing SUMIFS() is supposed to change based on the drop down, exactly?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-23-2014
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: sumifs with ranges and criterias depending on an if statement

    hello,
    Sorry I realize I'm not very clear. Here is the full equation i'm using right now which works but (obviously due to its size) takes a lot of time to process.

    the drop down tables are in B9 and B5 (B5 gives you the option of looking at individual levels or ALL combined)

    Please Login or Register  to view this content.

    I'm really just trying to find a way to simplify it without inbedding a bunch of if statements

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: sumifs with ranges and criterias depending on an if statement

    As long as the formula actually fits, I have to say at least once that your formula at least has the benefit of people READABLE and very easily edited, once you add in the line feeds that might make it read easier. Try entering this same formula as shown here:

    Please Login or Register  to view this content.
    I'm not sure I would actually try to shorten this formula, the result would just a slow if not slower on a large dataset... SUMIFS() are doing a lot of work, line by line so it takes as long as it takes.

+ 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. SumIfs with criterias in a table
    By mithwan in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-04-2014, 08:16 PM
  2. SUMIFS vs SUMIF - 2 Criterias needed
    By jhsiao in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-18-2013, 01:47 AM
  3. [SOLVED] SUMIFS only returns the 1st matched value in my range of criterias
    By catzilla in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-30-2012, 11:55 AM
  4. Sumifs with multiple criterias
    By gnoke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2012, 05:51 AM
  5. SUMIFS with multiple criterias row/colums
    By btem in forum Excel General
    Replies: 8
    Last Post: 09-22-2011, 11:04 AM

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