+ Reply to Thread
Results 1 to 4 of 4

Todays date between, < or > than other dates = If / OR Function?

  1. #1
    Registered User
    Join Date
    12-20-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    14

    Todays date between, < or > than other dates = If / OR Function?

    Hi all,

    I'm having difficulty with a nested function..... in fact I'm stuck!

    I have created a booking form & I have two dates in the form:

    Booking From (cell J2)
    Booking To (K2).

    Now I have a column called Status (O2) & I want it to be able to show the following:

    If:

    Today > Booking To = "FREE"
    or
    Today < Booking From = 'FREE TODAY (Future Booking)
    or
    Today between Booking To and Booking From = "BOOKED"

    Can anyone help with the formula..... it's giving me a headache!

    Many thanks
    Last edited by jammy78; 01-11-2012 at 08:30 AM.

  2. #2
    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: Todays date between, < or > than other dates = If / OR Function?

    How about
    =IF(TODAY()>K2,"Free",IF(TODAY()<J2,"Free Today","Booked"))
    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.

  3. #3
    Registered User
    Join Date
    12-20-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Todays date between, < or > than other dates = If / OR Function?

    Quote Originally Posted by Richard Buttrey View Post
    How about
    =IF(TODAY()>K2,"Free",IF(TODAY()<J2,"Free Today","Booked"))
    Worked a treat!

    Thanks a lot for this... saved me a lot of time!

  4. #4
    Registered User
    Join Date
    12-20-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Todays date between, < or > than other dates = If / OR Function?

    Sorry, one more quick question.......

    If there's no date in the Booking From (J2) & Booking To (K2) - is there a way to hind the formula result?

    It'll be nice to have?

    Thanks

+ 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