Conditional Formatting Based on If and Or

G

Guest

How can I set the conditional formatting of a A1 if B1 or C1 shows #n/a?

(B1 and C1 both contain formulae that will return #n/a until the required
information is inputted elsewhere in the spreadsheet. Hence I want
conditional formatting to highlight information that is missing)
 
G

Guest

Hi,

selecte A1

Format | Conditional format | change to "The formula is"

=and(iserror(b1),iserror(c1))

format as you need

hth
regards from Brazil
Marcelo

"luvthavodka" escreveu:
 
G

Guest

sorry I have been post and instead of OR as you ask so

=or(iserror(b1),iserror(c1))

regards
Marcelo

"luvthavodka" escreveu:
 
M

Mark

luvthavodka said:
How can I set the conditional formatting of a A1 if B1 or C1 shows #n/a?

(B1 and C1 both contain formulae that will return #n/a until the required
information is inputted elsewhere in the spreadsheet. Hence I want
conditional formatting to highlight information that is missing)

=IF(OR(ISNA(B1),ISNA(C1)),TRUE,FALSE) Will tell you what you want to
know.
 
G

Guest

This is a good start, however sorry I didn't clarify before that if b1 is
#n/a, c1 will be blank and if c1 is #n/a, b1 will be blank.

How could I adapt this formula so the condition is that b1 OR c1 = #n/a,
rather than AND?

Many thanks
 
M

Mark

luvthavodka said:
This is a good start, however sorry I didn't clarify before that if b1 is
#n/a, c1 will be blank and if c1 is #n/a, b1 will be blank.

How could I adapt this formula so the condition is that b1 OR c1 = #n/a,
rather than AND?

=OR(ISNA(B1),ISNA(C1))
 

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

Top