+ Reply to Thread
Results 1 to 9 of 9

Malfunctioning =sumif() formula

  1. #1
    Registered User
    Join Date
    09-10-2015
    Location
    Caringbah, NSW, Australia
    MS-Off Ver
    Office 365
    Posts
    27

    Post Malfunctioning =sumif() formula

    I am really stumped at why a sumif formula ALWAYS returns zero.

    The basic formula is:

    =sumif($a$5:$a20,"<=$b$1",$b5:$b25)*$c$1

    Column A contains sequential dates
    Cell B1 has a terminating date
    Cells B5:B25 have values of mileage travelled on dates corresponding to column A
    Cell C1 has a value at which those mileages should be valued

    I have attached a sample Excel spreadsheet showing the layout.
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,198

    Re: Malfunctioning =sumif() formula

    Is it ok like these:

    Excel 2016 (Windows) 32 bit
    B
    C
    34
    Total Mileage Cost
    35
    20.00
    $ 10.40
    36
    20.00
    $ 19.71



    B
    C
    35
    =SUMIF($A$5:$A25,"<="&$B$1,$B$5:$B25)
    =SUMIF($A$5:$A25,"<="&$B$1,$B$5:$B25)*$C$1
    36
    =SUMIF($A$5:$A26,"<="&$B$1,$B$5:$B26)
    =SUMIF($A$5:$A26,">="&$B$2,$B$5:$B26)*$C$2
    Sheet: sumif

    Check quotes in your formula:

    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    6,082

    Re: Malfunctioning =sumif() formula

    Please try
    =SUMIF($A$5:$A25,"<="&$B$1,$B5:$B25)*$C$1

  4. #4
    Registered User
    Join Date
    09-10-2015
    Location
    Caringbah, NSW, Australia
    MS-Off Ver
    Office 365
    Posts
    27

    Re: Malfunctioning =sumif() formula

    Nope! Now, it just flags an error in the formula!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    51,297

    Re: Malfunctioning =sumif() formula

    I used this....
    =SUMIF($A$5:$A25,"<="&$B$1,$B$5:$B25)
    and it returned 20
    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

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    51,297

    Re: Malfunctioning =sumif() formula

    Note that your 2nd formula needs to be...
    =SUMIF($A$5:$A25,">="&$B$1,$B$5:$B25)
    Ans = 39.40

  7. #7
    Registered User
    Join Date
    09-10-2015
    Location
    Caringbah, NSW, Australia
    MS-Off Ver
    Office 365
    Posts
    27

    Re: Malfunctioning =sumif() formula

    Thanks for the help. It worked! Sorry about the delay is responding to thank you.

  8. #8
    Registered User
    Join Date
    09-10-2015
    Location
    Caringbah, NSW, Australia
    MS-Off Ver
    Office 365
    Posts
    27

    Re: Malfunctioning =sumif() formula

    It worked. Thanks for the help. Sorry for the delay in replying to give you feedback and toi thank you.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    51,297

    Re: Malfunctioning =sumif() formula

    Happy to help and 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. [SOLVED] Malfunctioning unformatted text matching
    By anthony19 in forum Excel General
    Replies: 9
    Last Post: 12-18-2012, 02:05 PM
  2. [SOLVED] On click malfunctioning (Excel 2007)
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-22-2012, 10:41 AM
  3. Malfunctioning Cut/Paste Macro with Formula in criteria column
    By dlab85 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-13-2012, 05:53 PM
  4. removing duplicates feature is malfunctioning
    By ilundy77 in forum Excel General
    Replies: 3
    Last Post: 03-16-2009, 11:50 AM
  5. Malfunctioning SUMIF function???
    By RodBrush in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-13-2008, 06:49 PM
  6. Excel Help Malfunctioning?
    By wisgro in forum Excel General
    Replies: 18
    Last Post: 07-03-2007, 02:33 PM
  7. Sorting malfunctioning
    By aposatsk in forum Excel - New Users/Basics
    Replies: 11
    Last Post: 07-25-2006, 05:00 PM
  8. Fitter malfunctioning?
    By itgoeson in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-03-2005, 05:13 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