Conditional formatting with colour and values

  • Hi Please help,


    I have a row of values which updates daily, I then also have a upper limit say of 10 and a button limit of say 5.


    As soon as a number in the row of values go beneath the bottom limit then the conditioning formatting must activate.


    I need the conditional formatting to check the daily value when it is below the bottom limit, it must check the previous days value and if it is more than the previous day it need the cell fill color changed (say red). The number must stay red until it is over the upper limit and more then the previous day.


    Hope this make sense.

  • Re: Conditional formatting with colour and values


    depends upon data congifuration. no data is given
    following sample trivial data from A1 to B9.


    date price
    1-Apr 3
    2-Apr 5
    3-Apr 2
    4-Apr 5
    5-Apr 8
    6-Apr 2
    7-Apr 6
    8-Apr 2



    try this macro on THIS SAMPLE DATA
    If you get what you want modify macro to lsuit you.


    Sub test()
    Dim r As Range, c As Range


  • Re: Conditional formatting with colour and values


    Hi please see the attached an example maybe it will explain it a bit better. I am not very good with macros sorry.







Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!