How to conditional format 1 cell based on another cell

Anonymous
2025-02-21T14:43:14+00:00

Hello All,

I know how to use conditional formatting but am stuck on this one - I was wondering if there was a way to conditional format the 'remaining' spend in D4 based on the 'budget' in B4, which is manually entered. I would like to make the text in D4 turn orange when it gets to around 30% of the amount in B4 and turn red when it gets to around 10%. I know I can do this manually but the amount in B4 could change and I would like the conditional format to still work no matter what figure is in B4

Many Thanks,

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
HansV 460.5K Reputation points MVP Volunteer Moderator
2025-02-21T15:12:07+00:00

Select D4:D11 (or further down as needed). D4 should be the active cell in the selection.

On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula

=AND($B4<>"", $D4<=30%*$B4)

Click Format...
Activate the Fill tab.
Select orange as fill color.
Click OK, then click OK again.

Repeat these steps, but with the formula

=AND($B4<>"", $D4<=10%*$B4)

and red as fill color.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2025-02-21T15:53:30+00:00

    That's worked great! Thanks again Hans, really appreciate your help :)

    Many Thanks,

    Was this answer helpful?

    0 comments No comments