Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / September 2007

Tip: Looking for answers? Try searching our database.

complex IF statement

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cathy - 21 Sep 2007 17:02 GMT
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
Signature

Cathy

Alain Vaillancourt - 21 Sep 2007 18:05 GMT
You can use concatenation with only one IF like this:
="Product Subtotal"&IF($E$70>0," at "&$E$70*100&"% discount","")

> Hello.
>
[quoted text clipped - 11 lines]
>
> Thanks in advance
cathy - 21 Sep 2007 20:00 GMT
Both answers were VERY helpful!!!  I wound up using this one.  It worked
GREAT!!!  Thanks so much
Signature

Cathy

> You can use concatenation with only one IF like this:
> ="Product Subtotal"&IF($E$70>0," at "&$E$70*100&"% discount","")
[quoted text clipped - 14 lines]
> >
> > Thanks in advance
Alain Vaillancourt - 21 Sep 2007 20:34 GMT
Using the TEXT function would work great too using it that way:
="Product Subtotal"&IF($E$70>0," at "&TEXT($E$70,"0%")&" discount","")

> Both answers were VERY helpful!!!  I wound up using this one.  It worked
> GREAT!!!  Thanks so much
[quoted text clipped - 19 lines]
>> >
>> > Thanks in advance
JE McGimpsey - 21 Sep 2007 18:13 GMT
One way:

D70:        ="Product Subtotal at " & TEXT($E$70,"0%") & " discount"

> Hello.
>
[quoted text clipped - 8 lines]
>
> Thanks in advance
cathy - 21 Sep 2007 20:02 GMT
That's Great.  Thanks so much
Signature

Cathy

> One way:
>
[quoted text clipped - 12 lines]
> >
> > Thanks in advance
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.