Highlighting a range of cells in a row using a conditional format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to only highlight a range of cells in the row if a condition
exsists rather than the entire row? For instance row 1 contains data from
A1:J1. If a condition exsists in A1 only highlight A1:D1 and if the condition
exsists in G1 only highlight G1:J1
 
Hi
try the following:
- select A1:D1
- enter your condition. e.g. the formula
=$A1=1
- repeat for cells G1:J1
 
Thanks Frank, but I would like to highlight the range of cells with a color
(yellow) if the contants of lets say A1 contain any combination of (1) (2) or
both.
 
Hi
not really sure what you want to check. What do you mean with this
combination?
 
Hi
then just change the condition to:
=($A1=1)+($A1=2)

or if you have these values in brackets use.
=($A1="(1)")+($A1="(2)")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top