+ Reply to Thread
Results 1 to 5 of 5

How to use the IF & DATE functions together to flag a column???

  1. #1
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    How to use the IF & DATE functions together to flag a column???

    Hi there I’m not sure of how to go about this…

    I’d like to add a flag on column D that states Month End Hit if the date is before September on column C. If the date on column C is in September I’d like to no value returned…

    I think an IF function will do well but I’m not too familiar of using the date functions…
    Attached Files Attached Files
    Last edited by jgomez; 09-16-2011 at 12:32 PM.

  2. #2
    Forum Contributor
    Join Date
    12-03-2009
    Location
    Providence RI
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    260

    Re: How to use the IF & DATE functions together to flag a column???

    Copy this down starting at D3.

    =IF(MONTH($C3)=9,"",IF($C3<DATE(2011,9,1),"Month End Hit"))
    Last edited by Dulanic; 09-16-2011 at 11:29 AM.

  3. #3
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Re: How to use the IF & DATE functions together to flag a column???

    it works but why did you write =9? is it because of September??? Sam question for the date???

    this formula would have to be updated each month then???

  4. #4
    Forum Contributor
    Join Date
    12-03-2009
    Location
    Providence RI
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    260

    Re: How to use the IF & DATE functions together to flag a column???

    Quote Originally Posted by jgomez View Post
    it works but why did you write =9? is it because of September??? Sam question for the date???

    this formula would have to be updated each month then???
    Yes, I wrote the literal version from what you said. If you want the month to be the current month change the 9 to MONTH(TODAY()) which today will give you.. 9 for September The if was literaly saying if the month is equal to the 9th month of the year the cell value is "" also none as nothing.

  5. #5
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Re: How to use the IF & DATE functions together to flag a column???

    Thanks a lot.

+ 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