Results 1 to 10 of 10

SUMIFS - double counting?

Threaded View

Geoff. SUMIFS - double counting? 05-01-2014, 01:07 PM
oeldere Re: SUMIFS - double counting? 05-01-2014, 01:09 PM
Geoff. Re: SUMIFS - double counting? 05-01-2014, 01:14 PM
Mazzaropi Re: SUMIFS - double counting? 05-01-2014, 02:45 PM
oeldere Re: SUMIFS - double counting? 05-01-2014, 03:21 PM
Geoff. Re: SUMIFS - double counting? 05-01-2014, 04:19 PM
oeldere Re: SUMIFS - double counting? 05-02-2014, 02:05 PM
Geoff. Re: SUMIFS - double counting? 05-07-2014, 02:40 PM
oeldere Re: SUMIFS - double counting? 05-07-2014, 03:07 PM
Geoff. Re: SUMIFS - double counting? 05-07-2014, 04:10 PM
  1. #1
    Forum Contributor
    Join Date
    04-30-2014
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    113

    SUMIFS - double counting?

    Hello everyone,

    I'm new to USING formulas in excel to shortcut some of the more tedious workbook calculations. I've been getting on relatively well since I've began but I've come across a problem I can't seem to solve and would appreciate any help you can offer. I am using Excel 2010.


    The goal:
    I am trying so sum up all the values in column "J" that match multiple criteria’s in column "B", and only one criteria in columns "E" and "K."
    As you will see in the formula below, I would like to include values in column "B" that include a certain strings of text (e.g. "*SAO A*", "*PCP F*", etc.), while excluding other similar strings of text (only differentiated by a "+ " which proceeds the string; e.g. "*+ SAO A*", etc.).
    - I am looking for text strings in column "B", "E" and "K" (for column "K", I am only looking for " " e.i. a blank cell which only has a "space" in it, as in space bar on the keyboard). Column "J" contains numbers.
    - The "*" are there because the string I am looking for will often be found among a longer strings.
    - The amounts of rows in the worksheet can vary (they are not fixed).


    The problem:
    The formula I used (below) works but the resulting sum is higher than it should be and I suspect it is because there is double counting going on. I think there is double counting because it is often the case that "SAO A", "SAO F", "PCP A", and "PCP F" often find themselves in the same cell (usually SAO A and PCP A but it can also be another combination of these 4 strings, including those with "+ ").
    Does this double counting make sense? Could it explain the inflated sums I find?

    If so, can you please help me figure out how could I get around this problem?


    The formula I'm using:

    =SUM(SUMIFS(J:J,B:B,{"*SAO A*","*SAO F*","*PCP A*","*PCP F*"},E:E, M2,K:K, " ")) - SUM(SUMIFS(J:J,B:B,{"*+ SAO A*","*+ SAO F*","*+ PCP A*","*+ PCP F*"},E:E, M2,K:K, " "))

    From what I've read online, it seems like SUMPRODUCT would be better for this task but I can't get it to work at all (either sums to "0" or error). Furthermore, because the row amount in my worksheet is variable, I have read that it might be too resource intensive to use SUMPRODUCT for entire columns.


    Thank you for your help!
    Attached Files Attached Files
    Last edited by Geoff.; 05-01-2014 at 01:34 PM. Reason: Attached sample excel worksheet

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Avoiding Double Counting
    By sh55174 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-07-2014, 09:40 PM
  2. Countifs and Double Counting
    By jlacsina in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-18-2013, 09:55 PM
  3. Sumifs double nested condictional
    By JayReina in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-16-2013, 03:32 PM
  4. Difficulties with counting overtime, double IF's
    By mako in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-23-2007, 09:19 AM
  5. Double Counting in Pivot Tables
    By CYB in forum Excel General
    Replies: 0
    Last Post: 08-10-2005, 07:18 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