+ Reply to Thread
Results 1 to 15 of 15

Applying Conditional Formatting according to date

  1. #1
    Registered User
    Join Date
    04-08-2014
    Location
    Oz
    MS-Off Ver
    Excel 2013
    Posts
    63

    Applying Conditional Formatting according to date

    Hi,

    I have CF applied to the column for the date 5-5-2016 and it colors the cell RED according to the formula.I am going to use the Format Painter and copy the CF across the sheet to column V.As i have no values for the dates 12-5-2016 onwards it colors the cells RED. Is it possible to apply the CF across the sheet to column V but only activate CF if there are values in the cells?

    Thanks

    Andy
    Attached Files Attached Files

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Applying Conditional Formatting according to date

    With E3 selected go to CF (deleate ALL the rules you've got and create this one rule)

    =AND(E3<$A3,E3<>"")

    Then use painter to copy to other cells
    Happy with my advice? Click on the * reputation button below

  3. #3
    Registered User
    Join Date
    04-08-2014
    Location
    Oz
    MS-Off Ver
    Excel 2013
    Posts
    63

    Re: Applying Conditional Formatting according to date

    Hi Crooza

    Thank you and works fine. Does this part of formula work by seeing the cell empty (E3<>"")

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Applying Conditional Formatting according to date

    Yep. In mathematics you'd write not equal to or an equal sign with a slash through it. There is no equivalent sign in coding so computer programers have used less than or greater than"<>" for many years to show if something is not equal to something.

    So if E3 is not equal to "" then it is saying it is not blank. 'Not blank' is a double negative so it really means that there is actually something in that cell.

  5. #5
    Registered User
    Join Date
    04-08-2014
    Location
    Oz
    MS-Off Ver
    Excel 2013
    Posts
    63

    Re: Applying Conditional Formatting according to date

    Is it possible that when values are entered for the week 12-5-2016 that the CF then is removed from any column before that date. other then removing the values would this require VBA?

    Thanks

  6. #6
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Applying Conditional Formatting according to date

    If you change the rule to this

    =AND(LOOKUP(25^25,$E3:$V3)<$A3,LOOKUP(25^25,$E3:$V3)=E3,E3<>"")

    You should get the outcome you want. ie it only highlights the last cell entered if the last cell is less than the limit required

  7. #7
    Registered User
    Join Date
    04-08-2014
    Location
    Oz
    MS-Off Ver
    Excel 2013
    Posts
    63

    Re: Applying Conditional Formatting according to date

    Hi Crooza

    If possible could you post an example in the workbook from post#1...

    Also how does the formula work please?

    Thanks

  8. #8
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Applying Conditional Formatting according to date

    The formula looks at the last entry in the column. lookup(25^25,range) looks up the last number (25^25 is just a big number) and it returns the last entry in the row. The formula checks that this last number is lower than the limit in column A, isn't blank and also checks that it is the last number in the row that is being tested.

    Does that make sense?

    Now attachments haven't been working well for me for a while. I'll give it a go but it's hit and miss with this site and my computer at present.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-08-2014
    Location
    Oz
    MS-Off Ver
    Excel 2013
    Posts
    63

    Re: Applying Conditional Formatting according to date

    Thanks Crooza

  10. #10
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Applying Conditional Formatting according to date

    Great. Glad it worked. You should mark as solved if that addresses your issues

  11. #11
    Registered User
    Join Date
    04-08-2014
    Location
    Oz
    MS-Off Ver
    Excel 2013
    Posts
    63

    Re: Applying Conditional Formatting according to date

    Hi Crooza

    I created a test sheet but I could not get it to work like your example...have I made an error somewhere?

    How would you CF U58:U63<E58 (these 6 cells relate to E58....is this possible with current formula?

    Thanks
    Attached Files Attached Files

  12. #12
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Applying Conditional Formatting according to date

    I'll try to look at this tomorrow

  13. #13
    Registered User
    Join Date
    04-08-2014
    Location
    Oz
    MS-Off Ver
    Excel 2013
    Posts
    63

    Re: Applying Conditional Formatting according to date

    Ok....thank you

  14. #14
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Applying Conditional Formatting according to date

    Sorry for delay.
    Finally got a chance to look at this for you. The attached will only conditionally format the last cell in a row of cells that meets the criteria.

    To address your question of the cells in rows 58 to 63, the easiest way was to simply populate those cells with the 65,000 figure in column E. If you want the CF to only reference one cell that can be done by locking the cell using the '$' symbol but it will mean that the CF applied to those cells is different from the rest of the spreadsheet so will result in inconsistencies. I can do this if you want but I wouldn't recommend it.

  15. #15
    Registered User
    Join Date
    04-08-2014
    Location
    Oz
    MS-Off Ver
    Excel 2013
    Posts
    63

    Re: Applying Conditional Formatting according to date

    Thanks crooza....appreciate the help

+ 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. [SOLVED] Applying Conditional Formatting
    By James__S in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-27-2015, 07:55 PM
  2. [SOLVED] Conditional Formatting not applying
    By Lovelylou79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2013, 11:01 PM
  3. Conditional formatting on non-empty cells - VBA
    By kotonikak in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-18-2013, 02:57 PM
  4. Applying Conditional Formatting to an Entire Row
    By ltmaiyk in forum Excel General
    Replies: 4
    Last Post: 02-19-2010, 01:46 PM
  5. Applying Conditional formatting for entire Row based on date
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2009, 04:07 PM
  6. Applying Conditional Formatting to Multiple Rows
    By dcaldwell86 in forum Excel General
    Replies: 1
    Last Post: 10-02-2009, 09:32 AM
  7. Applying conditional formatting to ODD rows
    By SirSFZ in forum Excel General
    Replies: 0
    Last Post: 03-31-2005, 10:46 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