Hi GJ!
You still have problems with your formula:
You wrote:
=IF(AND(G11=-1,G10^=-1,"Sell",IF(AND(G11=1,G10^=1,"Buy",""))
Let's correct the syntax first!
=IF(AND(G11=-1,G10^=-1),"Sell",IF(AND(G11=1,G10^=1),"Buy",""))
Now let's try to understand the first AND(G11=-1,G10^=-1)
What is this supposed to mean as far as G10 is concerned?
Same with AND(G11=1,G10^=1)
What is this supposed to mean as far as G10 is concerned?
If (from later post) you're looking for G10 to be blank, then:
=IF(AND(G11=-1,G10=""),"Sell",IF(AND(G11=1,G10=""),"Buy",""))
This will only return "Sell" if G11=-1 and G10 is empty or contains a
formula returning ""
Similarly, it will only return "Buy" if G11=1 and G10 is empty or
contains a formula returning ""
In all other cases it will return "".
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.