+ Reply to Thread
Results 1 to 10 of 10

IF date is greater than or equal to X but less than or equal to y

  1. #1
    Registered User
    Join Date
    07-01-2014
    Location
    Horsham, England
    MS-Off Ver
    2010
    Posts
    3

    IF date is greater than or equal to X but less than or equal to y

    I need a formula to do the following:

    If H89 is greater than or equal to R10, but H89 is less than or equal to R11 then the cell in question equals G89, else do nothing. Where R10, R11 and H89 are date cells.

    Can someone help?

    Many thanks in anticipation.
    Last edited by LloydGilmore; 07-01-2014 at 09:56 AM. Reason: SOLVED

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF date is greater than or equal to X but less than or equal to y

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IF date is greater than or equal to X but less than or equal to y

    Try

    =IF(AND(H89 > =R10,H89 < =R11),G89,"")

  4. #4
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: IF date is greater than or equal to X but less than or equal to y

    Hi there,
    maybe:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Hope it helps!
    Regards
    Miroslav R.

    (If You like my solutions, feel free to add reputation.)

  5. #5
    Registered User
    Join Date
    07-01-2014
    Location
    Horsham, England
    MS-Off Ver
    2010
    Posts
    3

    Re: IF date is greater than or equal to X but less than or equal to y

    Many thanks.

    I was nearly there, but had an = in front of G89

    Thanks for your help and speedy response.


  6. #6
    Registered User
    Join Date
    07-01-2014
    Location
    Horsham, England
    MS-Off Ver
    2010
    Posts
    3

    Re: IF date is greater than or equal to X but less than or equal to y

    Many thanks to you all.

    I was nearly there, but had an = in front of G89

    Thanks for your help and speedy response.


  7. #7
    Registered User
    Join Date
    07-01-2014
    Location
    Florida, US
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: IF date is greater than or equal to X but less than or equal to y

    Try: =IF(AND(H89>=R10,H89<=R11),G89,"")

    AND(...) will test for both conditions. If both are True, then IF = true and G89. Otherwise IF = False and returns "".

    You can add text inside the "" to use as error flag. If statement is False, it will return the text string to alert you H89 is out of range.
    Last edited by ratpackinc; 07-01-2014 at 09:56 AM. Reason: add more detail
    Silly questions are cheaper than mistakes

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IF date is greater than or equal to X but less than or equal to y

    Glad to help, thanks for the feedback.

  9. #9
    Registered User
    Join Date
    03-08-2019
    Location
    Indianapolis, Indiana
    MS-Off Ver
    Mac 16.16.7
    Posts
    5

    Re: IF date is greater than or equal to X but less than or equal to y

    Help!!! I need help with a conditional formatting formula that will:

    Column G is all dates

    For all of column G, if date is today plus no more than 7 days then, I choose a color:

    +

    For all of column G, if date is today and more than 8 days but no more than 14 days, then I choose another color:

    +

    For all of column G, if date is today and more than 15 days, then I choose a 3rd color

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: IF date is greater than or equal to X but less than or equal to y

    BlairBizz

    Administrative Note:
    Welcome to the forum.
    We are happy to help however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original. Please start a new thread - See Forum rule #4

    If you are not familiar with how to start a new thread see the FAQ:
    How to start a new thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. SumIfs containing a greater than or equal to And less than or equal to
    By teton88 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-15-2014, 07:47 PM
  2. [SOLVED] COUNTIFS function w/greater than or equal to, and less than or equal to time values
    By AliciaRenee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-27-2014, 03:57 PM
  3. Replies: 4
    Last Post: 09-01-2011, 03:25 PM
  4. Delete Row if date is greater than or equal to 6/6/2008
    By dcnorman07 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-19-2008, 11:09 AM
  5. criteria for a given date equal or -greater then-
    By J_J in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-22-2005, 05:06 AM

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