A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi AAP01,
Thanks for visiting Microsoft Community.
I understand your requirements and have created a simple test dataset. I have hidden the columns that are not needed.
Your requirement can be summarized as setting conditional formatting in Excel based on the following rules:
For cells starting from column K, if column R equals 1, then if the value is less than the cell in column I, it should be filled with red; if column R does not equal 1, then if the value is not greater than the cell in column I, it should be filled with red.
The formula is as follows:
=OR(AND($R3=1, K3<$I3), AND($R3<>1, K3<=$I3))
Here are the test results:
I look forward to hearing your feedback. If you encounter any issues, please feel free to reply.
Best Regards,
Jonathan Z - MSFT | Microsoft Community Support Specialist