+ Reply to Thread
Results 1 to 4 of 4

Month and Day Formula

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    28

    Month and Day Formula

    I am trying to create a formula that says if today's month and day are the same as the date in C12 to update the cell with the number in AD12. If not, keep the number that is there.

    The formula does not have an error, however it is giving me the (ad12-Ae12) answer even if the month and day are the same.

    What is wrong?

    IF(AND(MONTH(C12),DAY(C12)=(AND(MONTH(TODAY()),DAY(TODAY())))),AD12,(AD12-AE12))

    Thanks,

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Month and Day Formula

    Try it like this...

    =IF(AND(MONTH(C12)=MONTH(NOW()),DAY(C12)=DAY(NOW())),...
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    03-05-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Month and Day Formula

    Thanks, That solved the issue.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Month and Day Formula

    You're welcome. Thanks for the feedback!

+ 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. Need Formula to Calculate Sale Month Back to Production Month
    By Newbie403 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-13-2015, 05:28 PM
  2. Replies: 4
    Last Post: 10-10-2014, 01:28 AM
  3. [SOLVED] Counting & summing formula (until last month,this month,until this month..
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-12-2014, 01:14 PM
  4. [SOLVED] Formula for amount on previous month based on current month
    By Yu Marquez in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-21-2014, 12:42 AM
  5. Month over Month formula to show increase or decrease in rankings for SEO
    By lindsbay in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2014, 03:03 AM
  6. Date Formula for days of the month, new dates starting on the 2nd of the month.
    By Kenn Jerger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-04-2013, 01:31 AM
  7. Replies: 5
    Last Post: 10-04-2012, 07: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