LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Multiple Condition syntax needed

Ok, I'm making a spreadsheet which does simple stuff.

One of the boxes displays a word based on other conditions.
Here is the formula so far:

=IF(AND(D5=\"B\",F5E5),\"PROFIT\",\"LOSS\")

Which says If Cell D5 has the letter "B" in it AND the number in cell
F5 is greater than E5, then print "Profit", otherwise print Loss.

In the same box, I'd like to make another statement which says

If cell D5 = the letter "S" and F5 is less than E5, then Print
"Profit", otherwise print "Loss".

So the 1st statement will be connected to the 2nd statement with an OR
operator or something like that.
Therefore only one of these conditions is true.

Any idea how I can code it?


---
Message posted from http://www.ExcelForum.com/

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Condition Help needed.... Curtis Excel Worksheet Functions 1 March 15th 06 09:09 PM
Multiple condition help needed Curtis Excel Worksheet Functions 6 January 16th 06 01:41 AM
VBA code to sum a row: syntax needed [email protected] Excel Discussion (Misc queries) 1 July 11th 05 06:41 PM
xlend syntax in VBA-guru help needed Stuart Farr[_5_] Excel Programming 3 May 3rd 04 03:47 PM
Syntax needed for With count Excel Programming 4 April 6th 04 02:33 PM


All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"