Need help with conditional formatting

D

Diane

Can someone please help with this formula?
=IF(AND(G6="XXX",AR6>1),(SUM(AR6)+60),SUM(AQ6)+60),

I am having problems to enter the last false condition in my formula.

Conditions to be met: G6=XXX, and AR6>1
if true AR6+60
if false go to AQ6>1
if true AQ6+60
if false "-"
 
V

Vijay

Diane,

You can using the formula below. This should work. If not, send me the XLS
and I can try and help.

=IF(AND(G6="XXX",AR6>1),(SUM(AR6)+60),IF(AQ6>1,SUM(AQ6)+60,"-"))

Tx,
Vijay
 
S

SteveG

Assuming you always want to test if G6 = "XXX".

=IF(AND(G6="XXX",AR6>1),SUM(AR6+60),IF(AND(G6="XXX",AQ6>1),SUM(AQ6+60),"-"))


Cheers,

Stev
 
P

pinmaster

Try this:

=IF(AND(G6="XXX",AR6>1),AR6+60,IF(AND(G6="XXX",AQ6>1),AQ6+60,"-"))

HTH
J
 
D

Diane

Thanks this worked out great!

Vijay said:
Diane,

You can using the formula below. This should work. If not, send me the XLS
and I can try and help.

=IF(AND(G6="XXX",AR6>1),(SUM(AR6)+60),IF(AQ6>1,SUM(AQ6)+60,"-"))

Tx,
Vijay
 

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