+ Reply to Thread
Results 1 to 4 of 4

IF formula to check value between two dates, add another condition

  1. #1
    Registered User
    Join Date
    01-23-2020
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    37

    IF formula to check value between two dates, add another condition

    Hello,

    I was hoping somebody could please help. I have an If formula which has a look at a date (Cell G8) and assigns a simple yes or no depending on whether its higher than a date in CellO1 but also lower than a date in O2. See below:


    =IF(AND(G8>=$O$1,G8<=$O$2),"Yes","No")

    I would like to be able to include a step that says if the date in Cell G8 is 31/12/2099 then "Yes" regardless of the other conditions.

    Any help would be much appreciated
    Last edited by 6StringJazzer; 04-26-2021 at 10:59 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: IF formula help!

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-23-2020
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    37

    Re: IF formula help!

    @ChemistB

    Many thanks - worked a treat.

    Brendan

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: IF formula to check value between two dates, add another condition

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #1 requires good titles. "IF formula help" is too generic. I have updated it for you this time because you are a new member. --6StringJazzer
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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: 3
    Last Post: 03-24-2020, 07:27 AM
  2. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  3. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  4. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  5. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  6. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  7. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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