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 / Worksheet Functions / June 2006

Tip: Looking for answers? Try searching our database.

If more than condition forumula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Corey - 20 Jun 2006 03:27 GMT
I am trying to set up an IF calculation as below:
=IF(L6="ABC",100,IF(L6="DEF",200,IF(L6="GHI",50)))
The baove is fine but i now need a 2nd condition as below.

I want to add a second condition to it say like:
=IF(P6="" and L6="ABC",100,IF(P6="" and L6="DEF",200,IF(P6="" and
L6="GHI",50, IF(P6="Yes" and L6="ABC",150, IF(P6="Yes" and L6=DEF",250,
IF(P6="Yes" and L6="GHI",75))))))

I try this but get an error.

What syntax do i use other than (and) to include a 2nd condition ??

Corey....
Biff - 20 Jun 2006 04:01 GMT
Hi!

Here's one way:

=IF(AND(P6="",L6<>""),VLOOKUP(L6,{"ABC",100;"DEF",200;"GHI",50},2,0),IF(AND(P6="Yes",L6<>""),VLOOKUP(L6,{"ABC",150;"DEF",250;"GHI",75},2,0),""))

Biff

>I am trying to set up an IF calculation as below:
> =IF(L6="ABC",100,IF(L6="DEF",200,IF(L6="GHI",50)))
[quoted text clipped - 10 lines]
>
> Corey....
Corey - 20 Jun 2006 04:45 GMT
You are a champ.
Perfect.

Thnx
Corey....

> Hi!
>
[quoted text clipped - 18 lines]
>>
>> Corey....
Biff - 20 Jun 2006 06:58 GMT
You're welcome!

Biff

> You are a champ.
> Perfect.
[quoted text clipped - 24 lines]
>>>
>>> Corey....
 
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



©2009 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.