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.

If then, adding more choices

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sandygiz - 18 Sep 2007 17:34 GMT
I am using the following command to direct what happens in column of cells:
=IF(A6=1, E6*D3, IF(A6=2, E6*E3))

This works fine for 2 options, but when I try to add a 3rd & 4th, I get an
error.
=IF(A6=1, E6*D3, IF(A6=2, E6*E3), IF(A6=3, E6*F3), IF(A6=4, E6*G3))))
How do I add more options? I know my parenthesis and probably more are off.

Thanks!
JW - 18 Sep 2007 17:37 GMT
You have too many parenthesis.
=IF(A6=1, E6*D3, IF(A6=2, E6*E3, IF(A6=3, E6*F3, IF(A6=4, E6*G3))))
> I am using the following command to direct what happens in column of cells:
> =IF(A6=1, E6*D3, IF(A6=2, E6*E3))
[quoted text clipped - 5 lines]
>
> Thanks!
Philip Reece-Heal - 18 Sep 2007 17:39 GMT
This seems to work:
=IF(A6=1, E6*D3, IF(A6=2, E6*E3, IF(A6=3, E6*F3, IF(A6=4, E6*G3))))

Ie, you dont use a closing bracket after each if argument, you just put a
closing bracket for each if argument at the end of the formula

Philip

>I am using the following command to direct what happens in column of cells:
> =IF(A6=1, E6*D3, IF(A6=2, E6*E3))
[quoted text clipped - 6 lines]
>
> Thanks!
sandygiz - 18 Sep 2007 18:04 GMT
Thank you so much!!

> This seems to work:
> =IF(A6=1, E6*D3, IF(A6=2, E6*E3, IF(A6=3, E6*F3, IF(A6=4, E6*G3))))
[quoted text clipped - 14 lines]
> >
> > Thanks!
Vergel Adriano - 18 Sep 2007 17:40 GMT
maybe like this:

=IF(A6=1, E6*D3, IF(A6=2, E6*E3, IF(A6=3, E6*F3, IF(A6=4, E6*G3))))

Signature

Hope that helps.

Vergel Adriano

> I am using the following command to direct what happens in column of cells:
> =IF(A6=1, E6*D3, IF(A6=2, E6*E3))
[quoted text clipped - 5 lines]
>
> Thanks!
Tim Williams - 20 Sep 2007 06:44 GMT
=E6*CHOOSE(A6,D3,E3,F3,G3)

Tim

> maybe like this:
>
[quoted text clipped - 12 lines]
>>
>> Thanks!
 
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.