+ Reply to Thread
Results 1 to 3 of 3

3 Criteria of certain dates

  1. #1
    Registered User
    Join Date
    05-27-2010
    Location
    Jolie, MS
    MS-Off Ver
    Excel 2003
    Posts
    2

    3 Criteria of certain dates

    I have a date list in column A that is constantly updating with today's date via a macro.

    What I am trying to do is input a "simple" if formula in the B column by all the dates so that it places a "5" next to the specific date.

    Three criteria define the specific date :
    1. Only once a month a "5" need to be in column B next to the date.
    2. A "5" is placed when a day is 4th day of the month or if there is not a 4th day very the next day.
    3. If there is any repeat rows with the 4th day, only put a 5 next to the 1st occurrence.

    4/1/2012
    4/2/2012
    4/3/2012
    4/4/2012 5
    4/5/2012
    4/6/2012
    4/7/2012
    4/15/2012
    4/21/2012
    4/26/2012
    5/1/2012
    5/5/2012 5
    5/11/2012
    5/19/2012
    5/25/2012
    6/2/2012
    6/4/2012 5
    6/4/2012
    6/4/2012
    6/5/2012
    ...

    Can you help me out ?
    Thx, John

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: 3 Criteria of certain dates

    I did this without VBA and hence the use of 2 helper columns. Please refer attached.
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    05-27-2010
    Location
    Jolie, MS
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: 3 Criteria of certain dates

    Perfect. Thank you. I meant to input a formula and not by VBA anyway.

+ 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