QUOTE(rudayo @ Mar 10 2006, 12:34 AM) [snapback]39966[/snapback]
I've never really seen one. I've always learned via help. Some books do go into better detail though.
I've always just thought of If statements as If the criteria is made, then give me this, otherwise give me that (instead of make something something else). Never ask Excel to change the target cell, or an external cell directly within the formula itself.
That's pretty much how I parse it too, hence my logical operator assumption. I just opened up Excel and, sure enough, like you said, if I put a self-referential formula such as (=A1=A2) into a cell A1, it generates an error. (If anyone reading is confused, =A1=A2 means 'assign to this cell the result of A1=A2' 'A1=A2' is a logical (Boolean) test on whether A1 is equal to A2. If A1 does equal A2, TRUE is returned. Otherwise, FALSE is returned. )
However, if I put the number 1 in B1 and 2 in B2 and put the forumula (=B1=B2) in cell A1, this generates a value of "TRUE," no matter how my cell formatting is set. So I guess Excel never returns 0 or 1, but always FALSE and TRUE for such operators.
But, as far as I know, you can't make assignments from within a cell formula.