Why does this formula return #REF ! when entered into a table where the formula is referencing cells outside of the table and inside of the table?
=IF(H75="A",
IF(Z75<S6,K75*Z75,
IF(AND(Z75>(S6-1),Z75<(T6-1)),S75*Z75,
IF(AND(Z75>(T6-1),Z75<(U6-1)),T75*Z75,
IF(AND(Z75>(U6-1),Z75<(V6-1)),U75*Z75,
IF(AND(Z75>(V6-1),Z75<(W6-1)),V75*Z75,
IF(AND(Z75>(W6-1),Z75<(X6-1)),W75*Z75,
IF(AND(Z75>(X6-1),Z75<(Y6-1)),X75*Z75,
IF(Z75>=(Y6),W75*Z75,
0)))))))),0)
=IF(H75="A",
IF(Z75<S6,K75*Z75,
IF(AND(Z75>(S6-1),Z75<(T6-1)),S75*Z75,
IF(AND(Z75>(T6-1),Z75<(U6-1)),T75*Z75,
IF(AND(Z75>(U6-1),Z75<(V6-1)),U75*Z75,
IF(AND(Z75>(V6-1),Z75<(W6-1)),V75*Z75,
IF(AND(Z75>(W6-1),Z75<(X6-1)),W75*Z75,
IF(AND(Z75>(X6-1),Z75<(Y6-1)),X75*Z75,
IF(Z75>=(Y6),W75*Z75,
0)))))))),0)