+ Reply to Thread
Results 1 to 6 of 6

Time calculations

  1. #1
    Forum Contributor
    Join Date
    04-14-2009
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    129

    Time calculations

    Hi all, if you look at attachment, in Cell J2, if cell I2 is greater than 2 minutes but less than two minutes, the I need the value of I2 in Cell J2 otherwise 0:00:00 then K2 between 3 & 4 Mins and so on.

    Help is appreciated.

    Om
    Attached Files Attached Files
    Last edited by omletto; 02-09-2010 at 11:04 AM.

  2. #2
    Valued Forum Contributor khamilton's Avatar
    Join Date
    10-08-2009
    Location
    IL
    MS-Off Ver
    Excel 2007
    Posts
    345

    Re: Time calculations

    [QUOTE=omletto;2249931if cell I2 is greater than 2 minutes but less than two minutes
    Om[/QUOTE]

    is it possible to be greater than 2 but less than 2????
    Please acknowledge the response you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  3. #3
    Forum Contributor
    Join Date
    04-14-2009
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Time calculations

    Sorry, More than 2mins but less than 3 mins.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Time calculations

    Try this formula in J2, format as time and then copy across and down as required

    =($I2>=J$1)*($I2<J$1+"0:01")*$I2

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Time calculations

    Look here:

    (If you like empty cell rather than 0:00:00 then change

    =IF(AND($I2>=IF(ISTEXT(I$1);0;I$1);$I2<J$1);$I2;1*"0:00:00")

    into

    =IF(AND($I2>=IF(ISTEXT(I$1);0;I$1);$I2<J$1);$I2;"")

    Difference to daddylonglegs is that you can define different time in top of each header.
    If you have always same difference use solution as daddylonglegs showed.
    Attached Files Attached Files
    Last edited by zbor; 02-09-2010 at 11:03 AM.

  6. #6
    Forum Contributor
    Join Date
    04-14-2009
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Time calculations

    Thanks both, worked perfectly.

+ 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