+ Reply to Thread
Results 1 to 3 of 3

If formula for Time

  1. #1
    Ad
    Guest

    If formula for Time

    Hi,

    Anyone know how to use if formula to to set Time criterial? What I'm trying
    to do is to set a formula to convert the time back to the time limit set.
    For example, if my trash hold for time is from 9am-6pm, any time clock
    outside 6pm (eg 8pm) should be converted back to 6pm.

    Is there way to get this done?

    Cheers,
    Ad

  2. #2
    Forum Contributor
    Join Date
    08-07-2004
    Location
    Ohio, USA
    Posts
    114
    If I understand you correctly, you would use

    =if("A1" > 1800,1800,"A1")

    this will look at the cell, determine its value, compare it to the trash time, and reset it to 1800 if it is larger than 1800, otherwise it will keep the cell as it appears.

  3. #3
    Bob Phillips
    Guest

    Re: If formula for Time

    =MAX(MIN(A1,TIME(18,0,0)),TIME(9,0,0))

    --
    HTH

    Bob Phillips

    (remove xxx from email address if mailing direct)

    "bgeier" <[email protected]> wrote in
    message news:[email protected]...
    >
    > If I understand you correctly, you would use
    >
    > =if("A1" > 1800,1800,"A1")
    >
    > this will look at the cell, determine its value, compare it to the
    > trash time, and reset it to 1800 if it is larger than 1800, otherwise
    > it will keep the cell as it appears.
    >
    >
    > --
    > bgeier
    > ------------------------------------------------------------------------
    > bgeier's Profile:

    http://www.excelforum.com/member.php...o&userid=12822
    > View this thread: http://www.excelforum.com/showthread...hreadid=544191
    >




+ 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