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
How Can I Detect, Delete, and Add A Printer In Windows XP using Visual Basic, C#, or C++
Access2003: working with mouse wheel
VFP9R.DLL file is invalid or damaged
Where does XPS driver print or save the file to and what extention
How do I check if my Video Card driver is up to date in Gateway 6800-01e
Why does Excel 2003 crash intermittently when this line is run?
dblclick event in a textbox -- seltext not available
DOS script to compare date and send notification
Single-user 404 on <a rel="nofollow" href="https://[server]/exchange/[username]" target="_blank">https://[server]/exchange/<wbr />[username]<wbr /></a> OWA access
WCF Transport Level