# Need 2 Formulas

#### Liverpool1959

##### New Member
I do a Financial Spreadsheet for my boss. Lets say A1 is our revenue. B1 is staff cost. C1 is a percentage of cost to revenue. D1 is the difference of C1 to our Goal of 22.5%

Is there a way C1 can turn Red if the Percentage exceeds our Goal of 22.5?
Is there a way D1 can be Red if the difference is over our goal

Example...C1 will be 22.00% (that stays black) D1 would be .5% (we are .5 ahead of target. It stays Black)
But if C1 is 23.00% (we exceeded our goal and I'd like this to be Red) and the D1 would be -.5% (and I want that Red)

#### Joe4

You can just use Conditional Formatting on cells C1 and D1:

Conditional Formatting formula on cell C1:
Code:
``=C1>22.5%``
Conditional Formatting formula on cell D1:
Code:
``=D1<0``
and choose your red formatting options.

1,081,574
Messages
5,359,704
Members
400,545
Latest member
Damntheman30

### This Week's Hot Topics

• VBA (Userform)
Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
• List box that changes fill color
Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
• Remove duplicates and retain one. Cross-linked cases
Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
• VBA Copy and Paste With Duplicates
Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
• Macro
is it possible for a macro to run if the active cell value is different to the value above it
• IF DATE and TIME
I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...