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
Local hotels details & prices Access Database
Multiple Monitors
Loop through the cells of a datagrid without knowing the datasource
Cross appdomain communication winthin single process on single machine in c#
find out an (x,y) location of a point on a circle's edge C#
How to copy rows from a table and put them in same table and joined to two other tables ?
SQL Insert INTO script syntax error
Retrieve list of all files in folder & subfolders with DateCreate property equal to today
Code Pause - sometimes
Upgrading Windows Business Vista to Windows 7 on a Sony Vaio UX series micro computer due to low HDD space