+ Reply to Thread
Results 1 to 4 of 4

If Condition with Dates

  1. #1
    Forum Contributor
    Join Date
    05-26-2016
    Location
    India
    MS-Off Ver
    Microsoft 2021
    Posts
    324

    Angry If Condition with Dates

    Hello
    I have a very simple question related to IF function
    I tried but failed in handling greaterthan equal to and less than equal to
    Anyone will help me in this. Pic and given below and sheet attach for reference.
    if anyone can help me to get result column with the help of if function

    Screenshot_1.png
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,824

    Re: If Condition with Dates

    You can use this formula in C2:

    =IF(A2="","",IF(AND(DAY(A2)>=6,DAY(A2)<=15),DATE(YEAR(A2),MONTH(A2),15),IF(AND(DAY(A2)>=16,DAY(A2)<=25),DATE(YEAR(A2),MONTH(A2),25),DATE(YEAR(A2),MONTH(A2)+1,5))))

    Format as a date in the style you prefer, then copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    05-26-2016
    Location
    India
    MS-Off Ver
    Microsoft 2021
    Posts
    324

    Re: If Condition with Dates

    Thank you working fine ...

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

    Re: If Condition with Dates

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


    As implemented in attached.
    Attached Files Attached Files
    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. [SOLVED] Condition Formula between dates then sum if meets between those dates
    By rhett7660 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-30-2017, 03:52 PM
  2. [SOLVED] Condition Formatting for Dates
    By passman86 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2016, 09:48 AM
  3. IF Condition using dates
    By bdav1216 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-26-2016, 06:45 PM
  4. Condition formating on due dates between a row of dates
    By irismarcial in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-11-2012, 04:18 PM
  5. Calculating dates with some condition
    By Priyaa in forum Excel General
    Replies: 2
    Last Post: 07-11-2011, 11:34 PM
  6. Counting dates on a condition
    By LoveCandle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-02-2009, 01:24 AM
  7. If condition whilst using dates
    By OnlyFun in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 11-12-2007, 03:09 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