+ Reply to Thread
Results 1 to 4 of 4

Adding amounts of time

  1. #1
    Registered User
    Join Date
    11-22-2013
    Location
    Hornchurch, Essex
    MS-Off Ver
    Excel 2007
    Posts
    5

    Adding amounts of time

    Hi,
    I have a spreadsheet that contains a list of alarms. Amongst the data in the spreadsheet is a list of duration of the alarm. This is listed as hours, minutes and seconds 00:00:00). I want add these together so I can see total alarm duration for a period of time. If I use the formula A1+A2+A3+A4.....etc it adds up correctly. Problem is if I have a lot of them to add it would take ages to add a formula in the format I've shown. If I use the sum function or the autosum function it returns a zero result. I know this is probably a pretty daft question but it's driving me nuts!

  2. #2
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: Adding amounts of time

    For a quicker and dispositive explanation, attach an example Excel file that demonstrates the problem(s), following the instructions in the bright yellow banner at the top the webpage.

    My guess: the data is text, despite appears and cell format. Use formulas of the form =ISTEXT(A1) to confirm. Looks can be deceiving. And the cell format does not matter.

    A1+A2+... might work because in that context, Excel converts text to numbers if Excel can interpret the text as such.

    But functions like SUM (and "autosum" is just a shortcut for SUM) purposely ignore text, even if Excel might be able to interpret such values as numbers.


    -----
    Aside.... When you finally solve the problem, be sure that the format of cells with time arithmetic is Custom [h]:mm:ss. The squared-bracketed "[h]" ensures that hours greater than 23 are displayed properly.
    Last edited by curiouscat408; 01-06-2022 at 10:10 PM.

  3. #3
    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: Adding amounts of time

    Try formatting the answer as time (play around with the time formats to show what you need.)
    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

  4. #4
    Registered User
    Join Date
    11-22-2013
    Location
    Hornchurch, Essex
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Adding amounts of time

    Thanks for the replies. It was the cells showing as text!! I used the is text function and it showed as true. It was how the data had been exported. So I had to convert using a =A1+0 in another column then the autosum worked and I got my totals.

    Thank you very much for the help.

+ 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] Adding amounts under certain critera
    By Marvo in forum Excel General
    Replies: 4
    Last Post: 05-28-2016, 07:41 AM
  2. Adding up amounts from different columns across tabs
    By QueenMab in forum Excel General
    Replies: 4
    Last Post: 06-18-2015, 03:04 AM
  3. Adding up specifc amounts
    By kjmosp in forum Excel General
    Replies: 2
    Last Post: 01-20-2015, 03:34 PM
  4. Adding Up Dollar Amounts?
    By NeighborMike in forum Excel General
    Replies: 1
    Last Post: 08-11-2009, 01:17 PM
  5. Adding just the negative amounts possible?
    By dm13m4 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-28-2007, 10:04 AM
  6. Adding Amounts
    By WmBrown in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-31-2005, 12:50 AM
  7. [SOLVED] adding amounts according to labels
    By Wayne Cameron in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-27-2005, 09:05 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