+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting Formula for zig zagging data

  1. #1
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Conditional Formatting Formula for zig zagging data

    Hi All,

    I"m looking to flag data if the last 14 data points in a row (column actually) have been following an up and down pattern. I only need the last cell in the series to be flagged. So if, A14>A13, A13<A12, A12>A11, A11<A10....A1, then A14 will turn red. Also would need to work for the inverse (A14<A13, A13> A12...). Any ideas on how to compress this in my conditional formatting? I was trying to work with COUNTIF's but couldn't get it to work.

    Thanks in advance

    ChemistB

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    You could use this formula in conditional formatting:

    Please Login or Register  to view this content.
    Condition = red

    HTH

    Jason

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Thanks Jason,

    Any way of compressing that? That would only be half the formula as I would need an OR(Condition1, Condition2) where condition1 is what you wrote out and Condition2 would be the AND statemen beginning with A14<A13. I have to do this on a lot of spreadsheets and want to make it compact if possible.

    Thanks again for the quick response.

    ChemistB

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Try this formula in conditional formatting:

    =ZIGZAG(A1:A14)=FALSE

    Just kidding. Sorry, I can't think of any way off the top of my head to compress that.

    Jason

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Hmmm, maybe I do need to create a user function or write a macro for it. Oh well, I will continue to ponder this one. Thanks for your help, Jason.

    ChemistB

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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