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
Blocking Skype on ISA 2004
How to provide a link in e-mail to open a specific record in Access 2007 ?
How I restrict query results to fields of a certain length?
Access Runtime Edition - Opens db's in exclusive mode
How can I return an error message when a field or control is Blank
After update subform, then update the main form field
Using a geometry type check constrint in sql sever 2008
extraction of objects from a sharepoint content database
Pushing down local group policy changes with scripts
Receiving multiple EVENT ID: 1053 on Windows 2003 Server, why?