PC Review


Reply
Thread Tools Rate Thread

How to write this 4 condition nested formula?

 
 
bortz
Guest
Posts: n/a
 
      8th Dec 2005

I'm trying to figure out how to write a formula to satisfy the followin
multiple conditions:

If cell v4>1 and cell x4="FR",-1 and
If cell v4=1 and cell x4="FR",3 and
If cell v4>1 and cell x4="CL",2 and
If cell v4=1 and cell x4="CL",-3

So I have 2 cells I'm working with here and 4 conditions that I want t
assign: either a -1,3,2, or -3, depending on whether the user types th
text FR or CL into cell X4.

Thanks and happy holidays.
Fran

--
bort
-----------------------------------------------------------------------
bortz's Profile: http://www.excelforum.com/member.php...fo&userid=2943
View this thread: http://www.excelforum.com/showthread.php?threadid=49180

 
Reply With Quote
 
 
 
 
swatsp0p
Guest
Posts: n/a
 
      8th Dec 2005

This should work for you...

=IF(AND(V4>1,X4="FR"),-1,IF(AND(V4=1,X4="FR"),3,IF(AND(V4>1,X4="CL"),2,IF(AND(V4=1,X4="CL"),-3,"N/A"))))

Returns "N/A" if none of the conditions are met, change to "" if you d
not want this to happen.

Good Luck

Bruc

--
swatsp0

-----------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...fo&userid=1510
View this thread: http://www.excelforum.com/showthread.php?threadid=49180

 
Reply With Quote
 
bortz
Guest
Posts: n/a
 
      8th Dec 2005

Worked like a charm Bruce. A million thanks!
It's kind of frustrating when you know what to do but not how to g
about doing it.
It makes me appreciate what a programmer must go through sometimes.

Best regards,
Fran

--
bort
-----------------------------------------------------------------------
bortz's Profile: http://www.excelforum.com/member.php...fo&userid=2943
View this thread: http://www.excelforum.com/showthread.php?threadid=49180

 
Reply With Quote
 
swatsp0p
Guest
Posts: n/a
 
      9th Dec 2005

I'm glad it worked for you. Thanks for the feedback, it is alway
appreciated.

Cheers

--
swatsp0

-----------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...fo&userid=1510
View this thread: http://www.excelforum.com/showthread.php?threadid=49180

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested IIF expr not evaluating 2nd condition and beyond. Jim Dudley Microsoft Access Reports 2 5th Mar 2009 03:24 PM
If then nested condition a Microsoft Access Form Coding 6 7th Jan 2008 07:13 PM
Trouble with condition nested formula =?Utf-8?B?d2lseXdheW5l?= Microsoft Excel New Users 2 31st Aug 2006 06:26 PM
how do i write formula for if condition in excel? =?Utf-8?B?QW5qYWxp?= Microsoft Excel New Users 4 16th Aug 2006 02:13 PM
Nested IF condition Anthony Slater Microsoft Excel Misc 6 4th May 2004 05:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:49 PM.