• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Conditional Formatting

Anny

New Member
Hi,
I am newly join as member and please help me to create conditional formatting by use formula for monthly linearity %(eg. 33.3% per month in a Quarter). Please refer attach file

Thanks
 

Attachments

  • Conditional Formatting.xlsx
    9.6 KB · Views: 6
Is this an OR condition or an AND condition? Does the cell turn red if only two out of three meet the conditions?
 
I think should be And condition.
- When month 1 fill (month 2 & 3 are blank), cell turn red if <33.3%.
- When month 1 & 2 fill (month 3 is black), cell turn red if <66.6%
- When all 3 months fill, cell turn red if <99.9%

Thanks
 
Select cell F3.

Set a formula CF rule using this formula:

=OR(AND(C1="",D1="",B1/A1<0.333),AND(B1<>"",D1="",(B1+C1)/A1<0.666),AND(B1<>"",C1<>"",(B1+C1+D1)/A1<0.999))

Set the applies to range to =$F:$F
 
It's not turn to the result I want. When I only input month 1 at 3, result 45%, but it turn red. Even I input month 1 & 2 (total 90%), result turn red as well.
 

Attachments

  • Conditional Formatting.xlsx
    9.8 KB · Views: 4
Sorry! I missed a criterion. Try this instead:

=OR(AND(B3<>"",C3="",D3="",B3/A3<0.333),AND(B3<>"",C3<>"",D3="",(B3+C3)/A3<0.666),AND(B3<>"",C3<>"",D3<>"",(B3+C3+D3)/A3<0.999))
 
Sorry! I missed a criterion. Try this instead:

=OR(AND(B3<>"",C3="",D3="",B3/A3<0.333),AND(B3<>"",C3<>"",D3="",(B3+C3)/A3<0.666),AND(B3<>"",C3<>"",D3<>"",(B3+C3+D3)/A3<0.999))

Thanks Ali, this is working.
 
Back
Top