+ Reply to Thread
Results 1 to 13 of 13

Can't SUM cells

  1. #1
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    343

    Can't SUM cells

    I am trying to add times H1:H21 in H23. Any ideas?
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Can't SUM cells

    they are not time values - they are text
    you need to change to time values to get a number or at least a decimal part of a number - which is the way time is worked out
    then you can sum
    also format the sum cell to [H]:MM which will display more than 24

    see attached i have added some columns to show
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    343

    Re: Can't SUM cells

    Can you concert the actual H column? I can't.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Can't SUM cells

    you maybe able to using VBA , I had to create the new column using =timevalue(H1)
    i dont know VBA well enough

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Can't SUM cells

    OR
    create a column with timevalue(H1) and copy down
    now copy that range
    Paste Special - text only into H to get valid time values

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Can't SUM cells

    Select the cells H1:H21 then click on Data | Text-to-columns, then click Finish on the firs panel.

    Hope this helps.

    Pete

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Can't SUM cells

    Quote Originally Posted by gz3s36 View Post
    Can you concert the actual H column? I can't.
    Select the range H1:H21
    Goto the Data tab>Text to Columns
    Click Finish
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    343

    Re: Can't SUM cells

    So far so good. I wrote the macro to do the conversion and it worked. My next question is that I use this =SUMPRODUCT((((ISNUMBER(SEARCH("40",T2:T5000))+ISNUMBER(SEARCH("41",T2:T5000))+ISNUMBER(SEARCH("43",T2:T5000))+ISNUMBER(SEARCH("47",T2:T5000))+ISNUMBER(SEARCH("81",T2:T5000))+ISNUMBER(SEARCH("83",T2:T5000)))*(G2:G5000={"PM","PDM"})))*(P2:P5000="CLOSE")) for finding the number of workorders that are closed. How do I sum up the hours of closed workorders in column AG2:AG5000 that fit this formula?
    Attached Files Attached Files

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Can't SUM cells

    Where does your existing formula appear? (which cell, which sheet?)

    Where do you want the new formula to go?

    If the existing formula counts the number of orders, then this:

    =SUMPRODUCT((((ISNUMBER(SEARCH("40",T2:T5000))+ISNUMBER(SEARCH("41",T2:T5000))+ISNUMBER(SEARCH("43",T2:T5000))+ISNUMBER(SEARCH("47",T2:T5000))+ISNUMBER(SEARCH("81",T2:T5000))+ISNUMBER(SEARCH("83",T2:T5000)))*(G2:G5000={"PM","PDM"})))*(P2:P5000="CLOSE"),AG2:AG5000)

    (changes in red) should add up the times from column AG where those records occur. You might need to apply a custom format of [h]:mm:ss so that the sum does not wrap at 24 hours.

    Hope this helps.

    Pete

  10. #10
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    343

    Re: Can't SUM cells

    The formula was in AX6 (List of Workorders) sheet. I want to new one to go in AZ6 (same sheet). I would expect a result of approx. 1917 hrs.

  11. #11
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    343

    Re: Can't SUM cells

    I was wrong on my result set. Still trying to get the correct number.

  12. #12
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    343

    Re: Can't SUM cells

    The correct result set should be about 864 hrs.

  13. #13
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    343

    Re: Can't SUM cells

    Got it. Thank you everyone.

+ 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: 4
    Last Post: 02-11-2015, 09:02 AM
  2. Replies: 0
    Last Post: 01-21-2015, 12:05 PM
  3. [SOLVED] Linking cells globally to allow users the ability to change cells on separate sheet/cells.
    By V1gilante in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2014, 10:47 PM
  4. combining many cells in one cells keeping character font and hyperlinks of all cells
    By mankind00 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2012, 09:41 AM
  5. Replies: 4
    Last Post: 06-17-2011, 08:53 AM
  6. Formula: Drop Down List -> Choose Option Finds Cells & Replace Cells with Cells
    By g00glethis1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2010, 01:10 PM
  7. Replies: 2
    Last Post: 06-24-2010, 04:53 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