Microsoft
Software
Hardware
Network
Question : write a IF_And_Then, OR statement correctly
Hi everyone,
I have a pesky little conditional statement that is supposed to check for two possibilities and perform a calculation based of its findings, or if it did not find either possibility then return a "", null value.
Here is the line: =IF(AND(O7<>"",I7="sell"),
K7-O7),IF(
I7="buy",O
7-K7,"")
The statement is supposed to check "O7" and if it is <>"" then check to see if iit is "Buy" (if tthe calculation is positive it colors the row green, if negative it is colored red) or "Sell" and perform the proper calculation, if neither is true the cell should remain blank and the row uncolored.
Thank you for your consideration.
Answer : write a IF_And_Then, OR statement correctly
You might consider testing O7 by itself:
=IF(O7="","",IF(I7="sell",
O7-K7,IF(I
7="buy",K7
-O7,"")))
Random Solutions
Programatically create multiple paragraph to a Excel Cell
SQL SERVER 2005 - SELECT top 4 query
Keep computer from going to sleep
IE7 : 403 error
Connect to a Crosstab query in Access from Excel
SharePoint 2007 alerts, permissions?
Deny Ability to open additional mailboxes in Outlook
Crystal reports report based on dataSet in VS 2005. How to.
Is it possible to create a "Quick Find" button in Excel? (I need to make searching idiot proof.)
Dynamic and Static Resources in Silverlight