New Contributor

# Formula HELP!

I have a "Total Hours" column (G) and a "Price" column (H). I want a column that takes the Price and divides it by the Hours to get an average of what we are billing per hour. I know that formula to be =sum(H/G). However, in addition to that, I want it to turn RED if it's below \$55 and GREEN if it's above \$55. Can anyone assist in this formula that LINKS with the sum formula already being used?

3 Replies

# Re: Formula HELP!

Set the fill color (or font color) of the cell with the formula to red. This will be the default.

With the cell selected, click Conditional Formatting > New Rule... on the Home tab of the ribbon.

Select 'Format only cells that contain'.

Leave the first dropdown set to 'Cell Value'.

Select 'greater than' from the second dropdown.

Enter 55 in the box next to it.

Click Format...

Activate the Fill tab (or the Font tab if you want to specify the font color).

Select green.

Click OK, then click OK again.

# Re: Formula HELP!

@Hans Vogelaar Worked perfect! You're the best, thanks so much!

# Re: Formula HELP!

You wrote: I have a "Total Hours" column (G) and a "Price" column (H). I want a column that takes the Price and divides it by the Hours to get an average of what we are billing per hour. I know that formula to be =sum(H/G)

And I just wanted to let you know that there is a more direct formula:

=Hx/Gx    (where x is the number designating the row involved)

Which is to say, you don't need the SUM function in there at all.