+ Reply to Thread
Results 1 to 10 of 10

Conditional formatting not working for next month (2016)

  1. #1
    Forum Contributor
    Join Date
    08-08-2008
    Location
    Belfast
    Posts
    112

    Conditional formatting not working for next month (2016)

    Hi

    I have conditional formatting set up for a column (see screenshot) everything was working fine until the date inserted for "next month" became say 2/1/2016 now the last format does not work. Am I missing something simple here as it did work up to any date in Dec 2015 ?

    Any help or pointers appreciated.

    Davy
    Attached Images Attached Images
    Last edited by Davycc; 12-16-2015 at 07:06 AM. Reason: Pic added

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional formatting not working for next month (2016)

    It should be more easier if you use formulas in the cf rules.

    In this case we need a small example sheet to work on it.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional formatting not working for next month (2016)

    I've just done something similar at work this morning.
    I want to highlight contracts that expire within the next 2 months.

    I used this formula

    =(AND($A4<>0,EDATE($A$1,2)>=$A4))

    where A1 is today's date and A4 is the date the contract expires.
    So the formula is effectively saying
    If the there is a date in A4 and today's date plus 2 months is greater than the contract date then the contract will expire in the next two months.
    Be aware the highlight will still show when the date has expired.

    Maybe you can base something on this?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Contributor
    Join Date
    08-08-2008
    Location
    Belfast
    Posts
    112

    Re: Conditional formatting not working for next month (2016)

    Hi Guys

    Thanks for the responses.

    I appreciate that the use of formulas may have been better but theres so much data etc already entered and I'm not sure how much work would be involved changing it all. Can anyone suggest why the rule for next month will not work for the change of year?

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Conditional formatting not working for next month (2016)

    Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff) - and, depending on what browser is being used, some pics dont even show up on the forum

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Contributor
    Join Date
    08-08-2008
    Location
    Belfast
    Posts
    112

    Re: Conditional formatting not working for next month (2016)

    Cheers

    I'll copy the sheet and delete all info then post it up.

  7. #7
    Forum Contributor
    Join Date
    08-08-2008
    Location
    Belfast
    Posts
    112

    Re: Conditional formatting not working for next month (2016)

    Here's an example
    Attached Files Attached Files

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional formatting not working for next month (2016)

    Probably i miss something but this looks that works ok.
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Conditional formatting not working for next month (2016)

    Really not sure why the 'Next Month' thing doesn't work, but if you change to rule to be formula based and use the following it should work:

    =AND(H8>EOMONTH(TODAY(),0),H8<=EOMONTH(TODAY(),1))

  10. #10
    Forum Contributor
    Join Date
    08-08-2008
    Location
    Belfast
    Posts
    112

    Re: Conditional formatting not working for next month (2016)

    Thanks bickie crumbs

    Heres the real problem though.....me. Do I select the column and insert the CF, will the one formula work for all 5 different date criteria and fill colours? Will changing it effect any macro etc?

    See it's easy for you guys lol

+ 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. Outlook 2016 calendar - modified month view
    By digitalcyclist in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 11-26-2015, 08:40 AM
  2. Replies: 3
    Last Post: 10-17-2014, 02:38 AM
  3. [SOLVED] Excel 2007 : Conditional formatting for particular month
    By jawalkar_renuka in forum Excel General
    Replies: 8
    Last Post: 04-19-2012, 03:11 AM
  4. using conditional formatting to match MONTH
    By greyscale in forum Excel General
    Replies: 5
    Last Post: 05-23-2011, 08:14 AM
  5. Conditional formatting based on day of month
    By SinGin in forum Excel General
    Replies: 4
    Last Post: 07-21-2010, 12:36 PM
  6. VBA for Conditional Formatting of cells with different Month values
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2009, 10:17 AM
  7. [SOLVED] Conditional Formatting based on month name
    By David in forum Excel General
    Replies: 4
    Last Post: 02-09-2005, 06: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