+ Reply to Thread
Results 1 to 10 of 10

Sumifs seems like overlook "0" and "." in front and behind a number

  1. #1
    Registered User
    Join Date
    02-19-2017
    Location
    malaysia
    MS-Off Ver
    2013
    Posts
    6

    Sumifs seems like overlook "0" and "." in front and behind a number

    hi all,
    I am unable to get the exact result for sumifs as the formula seems like overlook the "0" in front of the serial number or "." behind the serial number.



    Many thanks for your help.

    sumifs formula.PNG
    Attached Images Attached Images
    Attached Files Attached Files

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

    Re: Sumifs seems like overlook "0" and "." in front and behind a number

    Use SUMPRODUCT function:

    =SUMPRODUCT((Raw!$C$2:$C$7=$A2)*(Raw!$D$2:$D$7=$B2)*(Raw!$A$2:$A$7=C$1),Raw!$E$2:$E$7)

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Sumifs seems like overlook "0" and "." in front and behind a number

    look lkes SUMIF(S) treats 123. as 123.0 as 123; 0123 as 123

    use SUMPRODUCT instead of SUMIFS as Phuocam's solution.
    Quang PT

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Sumifs seems like overlook "0" and "." in front and behind a number

    The reason the SUMIFS is not working as expected, is because the numbers you are trying to add, are actually text that looks like a number.

    A quick look will show that the numbers are left-aligned, by default, real numbers are right-aligned and text is left aligned. Also, unless you use special formatting, no real number will display with a leading 0 (D7), nor with just showing a decimal point with nothing after it (D4)

    Finally, use this as a quick test...
    =ISNUMBER(D2)
    copied down.

    If it shows FALSE, that means the numbers are text and will need to be converted
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Sumifs seems like overlook "0" and "." in front and behind a number

    Yes go with Phuocam solution.
    But can you explain about "serial" column 854401.
    Any specific reason for dot after value. If not any reason then why not "A" or "B"


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Sumifs seems like overlook "0" and "." in front and behind a number

    avk, that is probably an import from another program/application

  7. #7
    Registered User
    Join Date
    02-19-2017
    Location
    malaysia
    MS-Off Ver
    2013
    Posts
    6

    Re: Sumifs seems like overlook "0" and "." in front and behind a number

    Dear all,

    I have solved the problem with Phuocam's method.
    thank you very much for all your help.

  8. #8
    Registered User
    Join Date
    02-19-2017
    Location
    malaysia
    MS-Off Ver
    2013
    Posts
    6

    Re: Sumifs seems like overlook "0" and "." in front and behind a number

    thanks Phuocam! it works

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Sumifs seems like overlook "0" and "." in front and behind a number

    It's good to know how to fix this, but, I think, it is also important to know what causes it

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Sumifs seems like overlook "0" and "." in front and behind a number

    Thanks for the feedback

+ 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: 5
    Last Post: 02-05-2019, 12:03 AM
  2. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  3. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  4. Replies: 2
    Last Post: 06-25-2013, 12:43 PM
  5. [SOLVED] How to Count number of "Error" and "OK" after the word "Instrument" found in table row
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 06:26 AM
  6. When I type "0" in front of a series of numbers the "0" disappears
    By aaponte in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 05-18-2007, 02:00 PM
  7. Replies: 2
    Last Post: 08-22-2006, 04:30 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