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
Declare variable in Microsoft SQL Server Management Studio
Why can I not find the InvokeRequired and SetTextCallback Options
Using alternative to LIMIT command and using INNER JOIN in MS SQL Query
How can I get an accurate age to display in an Access form?
Summarizing Data using Access 2007 and Excel 2007
Can't login into Windows XP
Microsoft Office Communicator 2007 R2 auto login enternally what not a member of Domain??
Windows Media player wont play Netflix online movies
ASP.NET Grid Number Formatting
How can I change the identity property of a column without setting the wrong seed?