I enter:
=IF(D4=”4x4”, _4x4PT∗4, IF(D4=”4x6”,_4x6PT∗e4, 0))
when I press I get:
Err:501
When I click on the cell I see:
=IF(D4=4x4”, _4x4PT∗e4, IF(D4=”4x6”,_4x6PT∗e4, 0)))
Libreoffice has “corrected” it by unbalancing the parens??
If I replace the named cell references with constants:
=IF(D4=”4x4”, 7, IF(D4=”4x6”,11, 0))
when I press I get:
Err:501
When I click on the cell I see:
=IF(D4=”4x4”, 7, IF(D4=”4x6”,11, 0)))
which eliminates the named cell references as a cause
If I eliminate the logical statements:
IF(0, 7, IF(1, 11, 0))
when I press I get:
11
which is the expected result
If I go back to the original form and add () around the comparison statements:
=IF((D4=”4x4"), _4x4PT∗e4, IF((D4=”4x6”),_4x6PT∗e4, 0))
when I press I get:
Err:501
When I click on the cell I see:
=IF((D4=”4x4"), _4x4PT∗e4, IF((D4=”4x6”),_4x6PT∗e4, 0))))
once again with too many end parens?
What is the "correct way to write this nested IF?
Thanks