+ Reply to Thread
Results 1 to 9 of 9

Check date status in list

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Check date status in list

    Hello everyone

    I have dates in range and I would like to check two conditions and if the both conditions are True then the date is True
    First condition is to be the last day of the month
    Second condition the day not to be equal to Friday or Saturday or Sunday

    ** if the last day was Friday or Saturday or Sunday then to get the next date as True.

    I have tried to adjust that but with no success

    I am trying UDF like that
    Please Login or Register  to view this content.
    This is OK for getting the last day as True but what if the last day was Friday or Satruday or Sunday. In this case I need to get the next date as True
    Last edited by YasserKhalil; 04-15-2020 at 05:55 AM.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Check date status in list

    I could figure it out in that way .. and I welcome more solutions
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Check date status in list

    And this is the UDF
    Please Login or Register  to view this content.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Check date status in list

    so if date is last day of month and date is not Fri or Sat or Sun then true else false?

    Please Login or Register  to view this content.
    Last edited by sintek; 04-15-2020 at 06:36 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Check date status in list

    Thanks a lot Sintek for solution
    Have a look at the sample to see the issue from my side
    Attached Files Attached Files

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Check date status in list

    Shouldn't A21 be false...Is not end of month

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Check date status in list

    No it should be True as the last day in the month was Friday so I looped till the date is not equal for the Friday or Saturday or Sunday
    So here the date 30/01/2020 as it is Thursday ..

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Check date status in list

    Sorry guess I misunderstood the criteria...
    If the date falls on a Thursday and it is close to month end then that day must be month end???
    Last edited by sintek; 04-15-2020 at 06:54 AM.

  9. #9
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Check date status in list

    I have taken the previous working day and if I want to change to the next working date, I would change - to + in the x=x-1 line

+ 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. Check expiration status
    By Gsingleton in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-22-2016, 08:25 AM
  2. Macro to Track Prospect Status and Date of Status Change
    By zainfidel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2016, 02:16 PM
  3. [SOLVED] Populate Name and Date for one status only from a list of different status
    By suchetherrah in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-30-2015, 07:31 AM
  4. [SOLVED] check group status
    By loade in forum Excel General
    Replies: 10
    Last Post: 05-02-2012, 07:23 AM
  5. Replies: 4
    Last Post: 04-08-2012, 09:43 PM
  6. Check Value Status of 5 OptionButton
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2012, 02:02 AM
  7. Check Box Status
    By Tom in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2005, 10: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