+ Reply to Thread
Results 1 to 4 of 4

Replace a Time with same time + 1 min

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    155

    Replace a Time with same time + 1 min

    Hi all

    As always this is fairly time critical (no pun intended!)

    I have a huge monthly export of data that is manipulated in many different ways, but one column returns two times which are both critical in different ways and often end up being the same....no problem with that, but when I sort the data based upon time I can't guarantee they'll sort in the correct order and when they don't I end up with a pile of errors because of the time sequences used on other calculations.

    My solution needs to be implemented at the sort stage which is not a problem and using something similar to the following formula I simply want to add a single minute if the criteria is met;

    =IF($AU6867="Update",$BK6867+1min,$BK6867)
    So, the above incorrect code will hopefully give the jist of it, if the referenced cell spells out Update then give me the value which is custom formatted as;

    dd/mm/yyyy hh:mm
    plus one minute

    if not simply give me the original value......any ideas?
    Last edited by opsman; 12-07-2010 at 06:36 PM.

  2. #2
    Forum Contributor
    Join Date
    07-05-2006
    Location
    Canada
    MS-Off Ver
    2003, 2007
    Posts
    581

    Re: Replace a Time with same time + 1 min

    Try:

    =IF($AU6867="Update",$BK6867+"0:01",$BK6867)
    S
    ------------------------------------------------------------------------------------------
    If you need no more help on the current problem, please mark it as "Solved". It saves time
    as many of us will look at threads if they are not marked as "Solved".

    The instructions on how to do this are found in the Forum Rules thread that is at top of every forum.
    (Currently you'll have to look at point #9.)
    ------------------------------------------------------------------------------------------

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Replace a Time with same time + 1 min

    Hi,

    Presumably

    =IF($AU6867="Update",$BK6867+Time(0,1,0),$BK6867)
    or if you prefer
    
    =IF($AU6867="Update",$BK6867+1/1440,$BK6867)
    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    155

    Re: Replace a Time with same time + 1 min

    Maistrye

    Cheers, that works and will save a few blushes, although the simplicity has caused a few!

    Richard

    Thanks as well, the first works and whilst I understand the logic of the second in this case it adds 30 mins which in this scenario is far too much and would upset other formulas.

    Thanks to you both for you help. Much appreciated as always and I have left pos feedback for both of you.

    S.
    Last edited by opsman; 12-07-2010 at 06:41 PM.

+ 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