M
mattiasw
There is an old loan mortgage calculator workbook from Microsoft that
has formulas like
=IF(AND(Pay_Num<>"",Sched_Pay+Extra_Pay<Beg_Bal),Beg_Bal-Princ,IF
(Pay_Num<>"",0,""))
where Pay_Num is a range. It is not an array formula, i.e. not { }
around
If you replace the names with ranges, you get
=IF(AND(A18:A377<>"",D18377+E18:E377<C18:C377),C18:C377-G18:G377,IF
(A18:A377<>"",0,""))
which still works. The formula on row 18 has the same meaning as
=IF(AND(A18<>"",D18+E18<C18),C18-G18,IF(A18<>"",0,""))
and the one or row 19 means
=IF(AND(A19<>"",D19+E19<C19),C19-G19,IF(A19<>"",0,""))
But actually, what is the general rule behind this? Having a rule
like
"If you want a single cell for your operation, but the formula
contains a range, take the value on your row".
How can this be generalized to handle horizontal ranges.
Do anyone have any good pointers on what the definition of "C18:C377-
G18:G377" is.
-- mattias
has formulas like
=IF(AND(Pay_Num<>"",Sched_Pay+Extra_Pay<Beg_Bal),Beg_Bal-Princ,IF
(Pay_Num<>"",0,""))
where Pay_Num is a range. It is not an array formula, i.e. not { }
around
If you replace the names with ranges, you get
=IF(AND(A18:A377<>"",D18377+E18:E377<C18:C377),C18:C377-G18:G377,IF
(A18:A377<>"",0,""))
which still works. The formula on row 18 has the same meaning as
=IF(AND(A18<>"",D18+E18<C18),C18-G18,IF(A18<>"",0,""))
and the one or row 19 means
=IF(AND(A19<>"",D19+E19<C19),C19-G19,IF(A19<>"",0,""))
But actually, what is the general rule behind this? Having a rule
like
"If you want a single cell for your operation, but the formula
contains a range, take the value on your row".
How can this be generalized to handle horizontal ranges.
Do anyone have any good pointers on what the definition of "C18:C377-
G18:G377" is.
-- mattias