+ Reply to Thread
Results 1 to 7 of 7

Adding minutes to existing time in a cell

  1. #1
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Adding minutes to existing time in a cell

    Dear Experts,
    Adding two times in a cell gives answer with date, how can I get rid of this date in the answer cell
    Cell A1 contains time 23:50
    Cell B1 contains Formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    When I copy and paste value of Cell B1 in cell C1 it shows 01/01/1900 00:49:00
    How can I get rid of this date 01/01/1900 in the formula cell i.e. B1 so that when I copy and paste it in C1 I get to see only 00:49
    Best Regards/VKS
    Last edited by VKS; 04-24-2013 at 02:25 AM.

  2. #2
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Adding minutes to existing time in a cell

    Hello,

    On C1, press Ctrl-1 (Formal Cell), choose "custom", choose or type in hh:mm, and it should show 00:49 only.
    (copy pasta from Ford)
    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

    Regards,
    Lem

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Adding minutes to existing time in a cell

    hi VKS, you can use:
    =MOD(A1+TIME(0,59,0),1)

    or just format cells as hh:mm? if format A1, it'll actually show you:
    00/01/1900 23:50:00
    what you did now is add 59 minutes to 0 Jan 1900. so it becomes 1 Jan 1900.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: Adding minutes to existing time in a cell

    Hello Lem, Thanks for your quick response.
    Display is showing time only (Custom Format) no date..... but date is showing up in the formula bar and when i use C1 in another formula it gives me error because of the date thats why i want to get rid of date in cell B1. P.S. B1 is also formatted as hh:mm.
    Best Regards/VKS

  5. #5
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: Adding minutes to existing time in a cell

    Thanks a lot Benishiryo. Mod formula worked very well.
    You already have my star for your help.
    Best Regards/VKS

  6. #6
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Adding minutes to existing time in a cell

    I think banishiryo is right. Time value is always < 1, if you make 23:50 plus an amount of TIME(0,49,0), it will be greater than 1 and be read as 0:39 of Jan 1, 1900. What you can do is subtract 1 from it, format it as hh:mm, and it should be fine.
    So what you can do is putting an IF in front of it, if it's > 1 (pass 24 hours / midnight, then subtract 1 from it I guess.

  7. #7
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: Adding minutes to existing time in a cell

    Thanks for your help Lemice. Benishiryo as always has been a great help. Marking this closed now.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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