+ Reply to Thread
Results 1 to 2 of 2

If it is after 12:00 PM Then timestamp = "12:30 PM" Else "4:30 PM"

  1. #1
    Registered User
    Join Date
    06-12-2013
    Location
    Rochester, Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    80

    If it is after 12:00 PM Then timestamp = "12:30 PM" Else "4:30 PM"

    Hello,

    I am looking for a really simple If Then statement but can't remember how to incorporate the greater/less than time aspect. What I need is if it is after 12:00 PM then timestamp (string) = "12:30 PM" Else "4:30 PM"

    THANKS!

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: If it is after 12:00 PM Then timestamp = "12:30 PM" Else "4:30 PM"

    Is this going to reference a cell that already has the time in it? If it is, say your time is in cell A1 and you want to have your formula show in A2, try this...
    Please Login or Register  to view this content.
    In A2
    Last edited by gmr4evr1; 03-30-2015 at 07:27 PM.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

+ 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. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  2. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  3. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  4. Replies: 5
    Last Post: 06-26-2006, 09:23 PM
  5. Replies: 7
    Last Post: 05-13-2006, 05:02 PM

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