+ Reply to Thread
Results 1 to 8 of 8

Excel 2010 or Excel 2003 : Conditional format for consecutive cell criteria

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    Sarnia, Canada
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    4

    Excel 2010 or Excel 2003 : Conditional format for consecutive cell criteria

    Hello, brand new here. Hoping to get some advice on conditional formatting. I am an amateur with respect to Excel formulas.

    I need to create a highlighting mechanism which compares data (entered daily) to a fixed value. I only need the new data to become highlighted when it is greater then then the fixed value and then only when this has occurred on five consecutive dates. (4 in row or below, no highlighting required)

    I can create the highlighting effect on single entries but the "5 in a row" is causing me problems. BIG!

    any help or advice would be greatly appreciated.

    carol_sarah_759

  2. #2
    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
    53,048

    Re: Excel 2010 or Excel 2003 : Conditional format for consecutive cell criteria

    Hi and welcome to the forum

    maybe try this sample...
    =AND(A8>=5,COUNTIF(A4:A8,A8)>=5)
    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

  3. #3
    Registered User
    Join Date
    12-03-2013
    Location
    Sarnia, Canada
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    4

    Re: Excel 2010 or Excel 2003 : Conditional format for consecutive cell criteria

    nope, nothing happens

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Excel 2010 or Excel 2003 : Conditional format for consecutive cell criteria

    Hello
    If your range of values begins in say cell A1, from A5 down select the range and insert the CF formula:

    Please Login or Register  to view this content.
    'Target' is the cell with the fixed value you wish to use as criteria, or you could hard code it in to the formula.

    Does this help?
    DBY

  5. #5
    Registered User
    Join Date
    12-03-2013
    Location
    Sarnia, Canada
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    4

    Re: Excel 2010 or Excel 2003 : Conditional format for consecutive cell criteria

    The cell range is E4:E262. The reference cell value is 0.99. When I used the formula =COUNTIF(A1:A5,"<"&Target)>4 the first cell E4 (value 0.98) was highlighted. No other values in the set (which were below 0.99) were highlighted.

    I need values which are above or below the Target cell (0.99) to become highlighted only when they occur in 5 consecutive sets.

    Ex. 1.00
    1.00
    1.00
    1.00
    1.00
    Highlighted

    Ex. 1.00
    1.00
    1.00
    1.00
    0.98
    Set is not highlighted

  6. #6
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Excel 2010 or Excel 2003 : Conditional format for consecutive cell criteria

    Sorry at the moment I can't think of a solution for this. You can highlight sequences where they exceed 4 by adapting the formula I provided but not the whole sequence.

    DBY

  7. #7
    Registered User
    Join Date
    12-03-2013
    Location
    Sarnia, Canada
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    4

    Re: Excel 2010 or Excel 2003 : Conditional format for consecutive cell criteria

    no problem, thanks for looking at this for me.

  8. #8
    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
    53,048

    Re: Excel 2010 or Excel 2003 : Conditional format for consecutive cell criteria

    Hopefully you are still monitoring this?

    Try the attached., it uses this in the CF rule...
    =AND(A5<1,COUNTIF(A1:A5,"<1")>=5)
    BUT the range only starts inthe 5th row (the 1's above will vever qualify)
    Attached Files Attached Files

+ 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. Slow saving in Excel 2003 format from Excel 2010
    By simonc2 in forum Excel General
    Replies: 0
    Last Post: 10-18-2013, 08:40 AM
  2. [SOLVED] Excel 2003: How to conditional format if cell contains any of a list of keywords
    By doublefour in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-07-2012, 09:28 AM
  3. [SOLVED] Change conditional format (color) of a cell based on another celll (Excel 2010)
    By ffnptown in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-28-2012, 09:50 PM
  4. Replies: 2
    Last Post: 08-16-2012, 07:31 PM
  5. excel conditional formatting 2010 'freezing' format to use in 2003
    By lensteruk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2012, 10:23 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