+ Reply to Thread
Results 1 to 24 of 24

Sum of hours needed

  1. #1
    Forum Contributor
    Join Date
    11-10-2012
    Location
    India
    MS-Off Ver
    Excel 2003 to Excel 2010
    Posts
    235

    Post Sum of hours needed

    Hi All,

    In attached file I need help while doing sum where total working hours are not showing correct.
    So could you please check.
    Attached Files Attached Files
    Click on (*), if you agree.

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

    Re: Sum of hours needed

    Can you tell us what results you expect? What is the purpose of your + sign?

    =+SUM(C2:X2)
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,994

    Re: Sum of hours needed

    Some of your times in the dated columns have a date in front of them (11/01/1900 ) - if you remove this, does it work as expected?

  4. #4
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: Sum of hours needed

    =+ is used to Lotus 123
    Please make the Post as solved, when you get your answer & Click * if you like my suggestion

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Sum of hours needed

    As AliGW suggests, it's the dates, remove the dates and the figures drop drastically.
    Keep your data consistent.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,994

    Re: Sum of hours needed

    I used find and replace to remove the dates. Now B4 is 220:13:00 and B14 is 202:22:00.

  7. #7
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Sum of hours needed

    Quote Originally Posted by vjharry View Post
    In attached file I need help while doing sum where total working hours are not showing correct.
    C4:X4 and C14:X14 contains the "date" 1/11/1900 (probably 11 days) in addition to times. Similarly for C8:X8 and C13:X13, which you did not comment.

    So the SUMs are correct.

    But C:X are formatted as only h:mm:ss, so you cannot see that time is more than 24 hours.

    Format C:X as Custom [h]:mm:ss to see the correct number of hours.

    PS: It might be tempting to use the Custom format d:hh:mm:ss. And that will seem to work. However, it will display only up to 31 days as intended. That is because "d" is really day of the month, not number of days. The integer values 0 through 31 are interpreted as days of Jan 1900.

  8. #8
    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
    53,048

    Re: Sum of hours needed

    Ali, the + is probably a hang-over from Lotus or something, and has no effect on the calc.

    @ vjharry, try this, copied down...
    =SUMPRODUCT(MOD(C2:X2,1))

    Some of your rows (as pointed out above) have years in them, this should take care of that
    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

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

    Re: Sum of hours needed

    I don't think the dates are intended at all: each column represents one day in October, so you would not expect more than one day in any one cell, would you?

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,994

    Re: Sum of hours needed

    Quote Originally Posted by FDibbins View Post
    Ali, the + is probably a hang-over from Lotus or something, and has no effect on the calc.
    Thanks for that, I realised it didn't affect the calculation.

  11. #11
    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
    53,048

    Re: Sum of hours needed

    I used to use Lotus 123, and thats how you started a formula - took me ages to get out of the habit lol, they all came out =+

    The methods suggested for removing the year will all work well, but if that is how the data comes in (maybe from another program?) then removing that each time could become onerous and perhaps might get forgotten - hence my SUMPRODUCT().

    If it is a once-off, then by all means use the suggestions to remove the year
    Last edited by FDibbins; 05-29-2014 at 12:56 PM.

  12. #12
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Sum of hours needed

    Quote Originally Posted by AliGW View Post
    I don't think the dates are intended at all: each column represents one day in October, so you would not expect more than one day in any one cell, would you?
    You might very well be correct. But I do not presume to know what the values represent. For example, they might be the elapsed time of work that end on those dates. That might include days before the end-date.

    In any case, you and others explained how to remove the integer component (date or number of days), if that is the correct solution.

    I explained how to see the "problem" (source of the disparity) in the first place, namely formatting C:X as [h]:mm:ss instead of h:mm:ss.

    vjharry, and only vjharray, can decide which responses are useful.

  13. #13
    Forum Contributor
    Join Date
    11-10-2012
    Location
    India
    MS-Off Ver
    Excel 2003 to Excel 2010
    Posts
    235

    Re: Sum of hours needed

    Hi, We can remove "+" from =+SUM(C2:X2)....
    Actual formula is =SUM(C2:X2)..... But still answer isnot coming

  14. #14
    Forum Contributor
    Join Date
    11-10-2012
    Location
    India
    MS-Off Ver
    Excel 2003 to Excel 2010
    Posts
    235

    Re: Sum of hours needed

    i tried that also but still not coming...
    Actually its exported from an application in which i have sum of all hours ... (there are some days where formatting is not correct)

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,994

    Re: Sum of hours needed

    Quote Originally Posted by vjharry View Post
    i tried that also but still not coming...
    Actually its exported from an application in which i have sum of all hours ... (there are some days where formatting is not correct)
    What have you tried?

  16. #16
    Forum Contributor
    Join Date
    11-10-2012
    Location
    India
    MS-Off Ver
    Excel 2003 to Excel 2010
    Posts
    235

    Re: Sum of hours needed

    tried formula..

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,994

    Re: Sum of hours needed

    Quote Originally Posted by vjharry View Post
    tried formula..
    Can you confirm whether or not the dates in those cells should be there? If not, have you used Find and Replace to remove them?

  18. #18
    Forum Contributor
    Join Date
    11-10-2012
    Location
    India
    MS-Off Ver
    Excel 2003 to Excel 2010
    Posts
    235

    Re: Sum of hours needed

    Quote Originally Posted by FDibbins View Post
    Ali, the + is probably a hang-over from Lotus or something, and has no effect on the calc.

    @ vjharry, try this, copied down...
    =SUMPRODUCT(MOD(C2:X2,1))

    Some of your rows (as pointed out above) have years in them, this should take care of that
    I use that formula but in 6th row its not working
    268 #VALUE! 10:24:00 10:04:00 8:56:00

  19. #19
    Forum Contributor
    Join Date
    11-10-2012
    Location
    India
    MS-Off Ver
    Excel 2003 to Excel 2010
    Posts
    235

    Re: Sum of hours needed

    yes i confirming that ...
    I dont need dates . I just want to see my sum in total hours

    Thanks in Advance

  20. #20
    Forum Contributor
    Join Date
    11-10-2012
    Location
    India
    MS-Off Ver
    Excel 2003 to Excel 2010
    Posts
    235

    Re: Sum of hours needed

    Quote Originally Posted by AliGW View Post
    Can you tell us what results you expect? What is the purpose of your + sign?

    =+SUM(C2:X2)
    You can remove that +
    there will not effect there by putting that in formula

  21. #21
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,994

    Re: Sum of hours needed

    Yes, we understand about the +. Have you read ALL of the responses in this thread?

  22. #22
    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
    53,048

    Re: Sum of hours needed

    Quote Originally Posted by vjharry View Post
    I use that formula but in 6th row its not working
    268 #VALUE! 10:24:00 10:04:00 8:56:00
    For that row, I get 29:24:00...what were you expecting?

    Take a look at the attached - I put the totals on the right so you still have your values. You can move it to B
    Attached Files Attached Files

  23. #23
    Forum Contributor
    Join Date
    11-10-2012
    Location
    India
    MS-Off Ver
    Excel 2003 to Excel 2010
    Posts
    235

    Re: Sum of hours needed

    Quote Originally Posted by FDibbins View Post
    Take a look at the attached - I put the totals on the right so you still have your values. You can move it to B
    Thanks a LOT now i am having answer

  24. #24
    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
    53,048

    Re: Sum of hours needed

    Glad you got what you needed 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. Scheduling Data Needed and Bid Hours Calculated for a certain date
    By smirk100 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-17-2013, 06:52 PM
  2. Business Hours if statement help needed!
    By soulshined in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-05-2013, 08:04 PM
  3. Time Format with hours and minutes only if needed
    By Andy099 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-21-2012, 07:12 PM
  4. Budget Question-Find hours needed per week
    By zedii in forum Excel General
    Replies: 3
    Last Post: 04-01-2012, 03:23 PM
  5. Replies: 2
    Last Post: 03-29-2012, 02:09 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