complex IF statement

G

Guest

Hello.

In cell $E$70 I have a data validation drop down list which allows the user
to select a percentage between 0% and 10%. I am trying to get cell $D$70 to
read "Product Subtotal at 1% discount" when cell $E$70 is 1%, "Product
Subtotal at 2% discount" when cell $E$70 is 2%" etc.

I tried using an IF statement, however as you know, it caps out at 7 IF
arguments. I need 10 arguments and then just "Product Subtotal" when 0% is
selected. Does anyone know how to get around the 7 argument problem?

Thanks in advance
 
A

Alain Vaillancourt

You can use concatenation with only one IF like this:
="Product Subtotal"&IF($E$70>0," at "&$E$70*100&"% discount","")
 
G

Guest

Both answers were VERY helpful!!! I wound up using this one. It worked
GREAT!!! Thanks so much
--
Cathy


Alain Vaillancourt said:
You can use concatenation with only one IF like this:
="Product Subtotal"&IF($E$70>0," at "&$E$70*100&"% discount","")
 
A

Alain Vaillancourt

Using the TEXT function would work great too using it that way:
="Product Subtotal"&IF($E$70>0," at "&TEXT($E$70,"0%")&" discount","")


cathy said:
Both answers were VERY helpful!!! I wound up using this one. It worked
GREAT!!! Thanks so much
 

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