+ Reply to Thread
Results 1 to 9 of 9

SUMIFS function returns 0 and totalling hours over 24 hours

  1. #1
    Registered User
    Join Date
    09-09-2019
    Location
    London, England
    MS-Off Ver
    365
    Posts
    33

    SUMIFS function returns 0 and totalling hours over 24 hours

    Hi All
    I run a recruitment agency and every month have to tot up hours at certain rates and based on whether they are an App booking or Non App booking.
    This month, my SUMIFS function is returning 0 and i cannot work out why (H68-H70). This function works for Non App (H74-H76) but not for App and I cannot for life of me work out the problem. It is driving me nuts!!

    Second query on same sheet. Ideally I would like to use line U (Hours worked) as this would be more accurate but this is formatted as time to tot up hours worked automatically. It does not seem to work at all. Is there any way I can format this line differently so it does tot up time automatically and can still be totted up according to SUMIFS rules.

    Thirdly, if any of you people much cleverer than me can advise an easier way to do this overall, then I would be forever truly forever grateful, there must be a better way.

    Many thanks for all your help!!

    Alex
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: SUMIFS function returns 0 and totalling hours over 24 hours

    Welcome to the forum.

    It is because there are trailing spaces after the word App in column C. Get rid of those or change the formula to this:

    =SUMIFS(G5:G57,C5:C57,"App*",E5:E57,10)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    07-16-2015
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: SUMIFS function returns 0 and totalling hours over 24 hours

    For column U use - Format Cell - Custom [h]:mm:ss

  4. #4
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: SUMIFS function returns 0 and totalling hours over 24 hours

    H68=SUMIFS($G$5:$G$100,$C$5:$C$100,$F$68,$E$5:$E$100,$G68) Copy down


    H74=SUMIFS($G$5:$G$100,$C$5:$C$100,"<>"&$F$68,$E$5:$E$100,$G74) copy down



    if F74=Non

    H74=SUMIFS($G$5:$G$100,$C$5:$C$100,$F$74,$E$5:$E$100,$G74)

  5. #5
    Registered User
    Join Date
    09-09-2019
    Location
    London, England
    MS-Off Ver
    365
    Posts
    33

    Re: SUMIFS function returns 0 and totalling hours over 24 hours

    Many thanks Ali, I have corrected now. What does the * do? I have corrected without using * but would be helpful to know its function.
    Thanks!

  6. #6
    Registered User
    Join Date
    09-09-2019
    Location
    London, England
    MS-Off Ver
    365
    Posts
    33

    Re: SUMIFS function returns 0 and totalling hours over 24 hours

    Thanks forestview so I need to type in a new format as follows : h:mm:ss does it matter that we do not use seconds? Will this allow hours to total over 24 hours?
    Many thanks for your help.

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: SUMIFS function returns 0 and totalling hours over 24 hours

    If you use the number format, pay careful attention to what forestview typed and what you typed.

    h:mm:ss or h:mm will give "time of day" where the display will be 0 to 24 hours depending on the time of day.
    [h]:mm:ss or [h]:mm will give "elapsed time" where the display will be from 0 to whatever Excel's maximum allowed elapsed hours is (over 10E6 hours, by my tests).

    guidelines for custom number formats (including time formats): https://support.office.com/en-us/art...7-9c9354dd99f5
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  8. #8
    Registered User
    Join Date
    09-09-2019
    Location
    London, England
    MS-Off Ver
    365
    Posts
    33

    Re: SUMIFS function returns 0 and totalling hours over 24 hours

    MrShorty and Forestview and everyone else, thank you so much, you guys are amazing!! It now works beautifully.

    No doubt I will be back for more of your very valuable help and apologies it has taken awhile for me to re look at this.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: SUMIFS function returns 0 and totalling hours over 24 hours

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Totalling hours and minutes
    By HacheLJ in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-07-2015, 09:18 AM
  2. Totalling up Booking calender hours.
    By Colin_K in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2014, 04:09 PM
  3. [SOLVED] Totalling hours in hh:mm format
    By lukela85 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-14-2013, 04:01 PM
  4. [SOLVED] Totalling Hours devided by breaks
    By ChefExcel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2012, 05:40 AM
  5. Adding, Subtracting & Totalling hours
    By Himynameisfin in forum Excel General
    Replies: 2
    Last Post: 02-07-2012, 03:12 AM
  6. Totalling hours from one day to the next
    By Ducatisto in forum Excel General
    Replies: 5
    Last Post: 10-16-2008, 05:22 AM
  7. [SOLVED] How do I sum hours and minutes totalling over 24 hours?
    By Henry in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-26-2006, 04:15 AM

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