+ Reply to Thread
Results 1 to 3 of 3

SUMIF double counting issue

  1. #1
    Registered User
    Join Date
    02-08-2018
    Location
    Amsterdam
    MS-Off Ver
    Most recent
    Posts
    1

    SUMIF double counting issue

    Hi all,

    I am having a problem with a double counting sumif, because of and array.*It has 3 columns, A: expertises. B: OB (not relevant for this issue) and C: the amount of events. I want to count the total amount of events for some expertises. A cell in column A might contain multiple expertises (for example: Banking / Finance, PR / Communicatie, HRM / Recruitment, IT / ICT, Management, Marketing / Product Management, Sales).

    I want to sum up all the events of the expertises Banking / Juridisch /Communicatie. I created the following formula:*

    =ArrayFormula(SUM(SUM.If(A2:A4;{"*Banking*";"*Communicatie*";"*Juridisch*"};C2:C4)))

    But it double counts some values. This is as a cell might contain two of the possibilities. Is it possible to only count a row once?

    Hope someone knows a way of doing this! Looking forward to hearing any solutions.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: SUMIF double counting issue

    You can use an array-function, entered with Ctrl-Shift-Enter. I use , instead of ; so if I messed up on the replacement I had no way of checking the result:

    =SUM(IF(ISNUMBER(SEARCH("Banking";A2:A4));1;IF(ISNUMBER(SEARCH("Juridisch";A2:A4));1;IF(ISNUMBER(SEARCH(Communicatie;A2:A4));1;0)))*C2:C4)
    Last edited by Bernie Deitrick; 02-08-2018 at 03:52 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,907

    Re: SUMIF double counting issue

    Or try:

    =SUMPRODUCT((COUNT(SEARCH({"Banking","Juridisch","Communicatie"},A2:A4))>0)*C2:C4)

+ 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. Replies: 4
    Last Post: 07-13-2017, 12:24 AM
  2. Double Quotation Issue
    By soltun699 in forum Excel General
    Replies: 16
    Last Post: 11-03-2012, 03:34 PM
  3. [SOLVED] Issue - double posts
    By royUK in forum Suggestions for Improvement
    Replies: 2
    Last Post: 02-17-2012, 09:50 AM
  4. Double Space Issue
    By darshan_parekh in forum Excel General
    Replies: 3
    Last Post: 11-26-2011, 12:45 PM
  5. Double Sumif
    By doowop5000 in forum Excel General
    Replies: 1
    Last Post: 07-17-2009, 07:10 AM
  6. Double SUMIF
    By J&SPriest in forum Excel General
    Replies: 4
    Last Post: 07-08-2009, 04:15 AM
  7. Double SUMIF
    By garethgtt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-25-2007, 12:00 PM

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