+ Reply to Thread
Results 1 to 4 of 4

SUMIF Mystery!

  1. #1
    Registered User
    Join Date
    04-02-2014
    Location
    Scugog, Missouri
    MS-Off Ver
    Office Professional Plus 2010
    Posts
    2

    SUMIF Mystery!

    Hello,

    I am using SUMIF to determine the total number of Models and Products in my spreadsheet. Column A identifies model or product with an "M" or "P". Column B contains the number of each for a particular day. I have used SUMIF to find the total of each category:
    Please Login or Register  to view this content.
    And
    Please Login or Register  to view this content.
    For some reason, the "M" value in A2 and the "9" value in B2 is not being included in the sum. Why is the SUMIF formula in B6 returning "5" instead of "14"?

    Mystery.jpg

    I can not see why this row is not being included. Download the attachment and see for yourself!

    I know this may appear arbitrary - the example here is extracted from a much larger document and it took me a while to figure out why my numbers are not adding up. I have posted the question so I can figure out what is going on to prevent future errors - if I had not caught this myself by using a check column, it could have made a major problem and I am concerned with the reliability of this formula.

    Thanks in advance for your help folks.
    - N2SO
    Attached Files Attached Files
    Last edited by note2selfown; 04-02-2014 at 11:47 AM. Reason: Added code tags according to Forum Rules

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: SUMIF Mystery!

    Hi, the value in A2 has a space after the M, either clean up the data or try something like:
    =SUM(SUMIF(A1:A5,{"M","M "},B1:B5))

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,021

    Re: SUMIF Mystery!

    Or if they should only be M or P, you could use a wildcard:

    =SUMIF(A1:A5,"M*", B1:B5)
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Registered User
    Join Date
    04-02-2014
    Location
    Scugog, Missouri
    MS-Off Ver
    Office Professional Plus 2010
    Posts
    2

    Re: SUMIF Mystery!

    Thank you - that was incredibly fast! I couldn't see any differences between that row and the others. This will prevent me from making the same (potentially disastrous) mistake again.

    EXCELFORUM RULES!

+ 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. Mystery Checkboxes?
    By ultimastryder in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-08-2010, 09:34 PM
  2. How to solve this mystery?
    By wazza129 in forum Excel General
    Replies: 1
    Last Post: 10-26-2009, 05:08 PM
  3. Drop Down mystery
    By escelinen in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-01-2007, 03:25 AM
  4. MYSTERY!!
    By WhytheQ in forum Excel General
    Replies: 2
    Last Post: 06-20-2006, 06:00 AM
  5. Mystery Links
    By D. Bruton in forum Excel General
    Replies: 1
    Last Post: 01-15-2005, 09:14 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