I have an Excel file with formulas in this manner:
=IF(OR(ISERROR(G16),ISERROR(G17)),X16,IF(OR(G16=\"xxx\",G16=\"yyy\",G16=\"zzz\"),Y16,IF(G16=\"333\",\"N\\A\",IF(
A combination of helper columns and named ranges would make that formula quite simple.
In the following image you can see how named ranges can unclutter a formula:
Notice that "prices" is name for range A2:A7 and "inflated_prices" is name for B2:B7.
Notice also that names are intelligent: sum(prices)
will sum the whole range, whereas =+prices*2
in B2 resolves to =+A2*2
, =+prices*2
in B3 resolves to =+A3*2
and so on.