+ Reply to Thread
Results 1 to 11 of 11

Formulae for month and year

  1. #1
    Registered User
    Join Date
    04-17-2012
    Location
    mauritius
    MS-Off Ver
    Excel 2007
    Posts
    37

    Formulae for month and year

    Hi there,
    I need to help a friend and give her a report which will help her not forget when to contact customers to renew their maintenance contracts.
    I am attaching a self explanatory excel file, can you please help us?
    Thank you,
    Sophie
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formulae for month and year

    The rows you highlighted yellow to indicate the ones you wanted marked, conflicts with your description.
    We are currently in JUNE.
    So if you want to mark the ones where the CURRENT month matches the month in B (minus 1 month)
    Then the Month of JULY would be the ones highlighted.

    Anyway, try this

    =IF(MONTH(TODAY())=MONTH((B3&" "&C3)-1),"To Review","")

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formulae for month and year

    Maybe this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    04-17-2012
    Location
    mauritius
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Formulae for month and year

    Hi thanks for your help but it does not work.
    For the month it is ok to add the minus 1 but not for the year.
    The idea is to have the TO RENEW message if the formulae detects that we are one month before the expiry month of the same year. Can you please check that? it would be great

  5. #5
    Registered User
    Join Date
    04-17-2012
    Location
    mauritius
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Formulae for month and year

    thanks Alkey but this does not work either. Sorry

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formulae for month and year

    Did you try the formula I posted ?

  7. #7
    Registered User
    Join Date
    04-17-2012
    Location
    mauritius
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Formulae for month and year

    PS no need to take into consideration the colors - that was for another personal use. Thanks ! sophie

  8. #8
    Registered User
    Join Date
    04-17-2012
    Location
    mauritius
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Formulae for month and year

    Yes Jonmo1, it does not work. Here is my answer I sent to you:
    Hi thanks for your help but it does not work.
    For the month it is ok to add the minus 1 but not for the year.
    The idea is to have the TO RENEW message if the formulae detects that we are one month before the expiry month of the same year. Can you please check that? it would be great

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formulae for month and year

    I read your answer.

    If you want to flag the row, where the Month in column B is the NEXT month compared to the current month.
    Then it's the rows where column B = JULY that you want to highlight, because we are currently in JUNE.

    But your sample data doesn't have any JULY in column B, so none of the rows were marked by the formula I posted.
    If you change say B13 and B14 to July, then those rows are marked by my formula.

  10. #10
    Registered User
    Join Date
    04-17-2012
    Location
    mauritius
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Formulae for month and year

    oops I think I made a mistake since there was no july in my table I couldn't see it worked so I changed it! and it works! many thanks it's great ! thank you!!!

  11. #11
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formulae for month and year

    You're welcome.

    However, after consideration, the year really should be taken into considertation.
    If you had July 2015 (or any year other than current year), then it would falsely show "To Review"

    Try this instead

    =IF(TEXT(TODAY(),"mmmyyyy")=TEXT((B3&" "&C3)-1,"mmmyyyy"),"To Review","")

+ 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. Display Year, month and day from formulae
    By meus in forum Excel General
    Replies: 1
    Last Post: 02-08-2016, 02:36 AM
  2. Running Totals from 24 hours to month, month to year without year decreasing
    By Safetyintern in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2015, 01:13 PM
  3. Graphing dates by month/year with 2 bars per month/year
    By Ellpoyohlokoh in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-22-2014, 05:25 AM
  4. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  5. How to add Month-on-Month and Year-on-Year %Variance into a pivot table
    By emeritus1812 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-09-2013, 02:37 AM
  6. If Column A Month and Year = ColumnB Todays Month and Year then send email
    By HACCStaff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2013, 12:47 AM
  7. Help with Formulae to return a Month and Year only from a column of dates
    By rick.parry in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2012, 08:52 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