+ Reply to Thread
Results 1 to 12 of 12

formatting seconds to include commas

  1. #1
    Registered User
    Join Date
    09-22-2010
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    46

    formatting seconds to include commas

    I'm using the following formula:

    =NOW()-B4

    "B4" is a date. Right now it formats just a row of numbers like "1234567890". I would like it to insert commas like "1,234,567,890"

    Thanks

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: formatting seconds to include commas

    Format cell: Custom, #,##0
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    09-22-2010
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    46

    Re: formatting seconds to include commas

    When I format it like that the number doesn't come out right (as far as the qty. of seconds or minutes). I'm not sure if I need to include any other info from my spreadsheet or not. For instance if I use January 1, 2014 as an example there are 144,704 minutes and 8,682,273 second that has passed till today. The format of the cell is like [mm] for minutes and [ss] for seconds.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: formatting seconds to include commas

    A sample spreadsheet would help.

    To upload a file click on Go Advanced on the bottom of your screen, then click on paperclip icon and Add Files.

  5. #5
    Registered User
    Join Date
    09-22-2010
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    46

    Re: formatting seconds to include commas

    Here is a sample. Hopefully it uploaded ok. Thanks
    Attached Files Attached Files

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: formatting seconds to include commas

    So, per your example what your result will look like?

  7. #7
    Registered User
    Join Date
    09-22-2010
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    46

    Re: formatting seconds to include commas

    Instead of 144743 and 8684610 I would like commas in there like 144,743 and 8,684,610.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: formatting seconds to include commas

    A
    B
    C
    D
    2
    Date
    01/01/2014
    3
    Minutes
    144,732
    B3: =(NOW()-B2)*1440 Format of B3: #,##0
    4
    Seconds
    8,683,931
    B4: =(NOW()-B2)*86400
    Entia non sunt multiplicanda sine necessitate

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: formatting seconds to include commas

    or you can do it in one formula

    =TEXT((NOW()-A3)*1440,"#,##0")

    =TEXT((NOW()-A3)*86400,"#,##0")

  10. #10
    Registered User
    Join Date
    09-22-2010
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    46

    Re: formatting seconds to include commas

    I'm trying to understand the formula. Why is it multiplied by 1440 and 86400?
    Thanks

  11. #11
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: formatting seconds to include commas


  12. #12
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: formatting seconds to include commas

    Thank you for the feedback!

    Please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

+ 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] Editing a Macro to include multiple rows and include text formatting for leading zeros
    By missmea2005 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-04-2014, 09:50 AM
  2. [SOLVED] Concatenate keeping formatting with commas using VBA
    By chidmas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-31-2013, 08:10 AM
  3. Replies: 5
    Last Post: 11-22-2012, 09:43 AM
  4. Replies: 10
    Last Post: 03-28-2012, 11:06 PM
  5. Replies: 4
    Last Post: 01-18-2010, 04:29 AM

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