W
Wayne
I don't know why, but this formula will not stop giving me an error in
Excel 2003.
=IF( $A8 <> "",
B8 * E8,
IF( ROW(H7) <> 1,
IF( G8 = "Subtotal",
SUM( H$2:H7 ),
IF( LEFT(G8, 3) = "Tax",
ROUND( $J$1 * H7, 2),
IF( G8 = "Total",
INDIRECT( ADDRESS( ROW(H8)-2, COLUMN(H8) ) ) + H7,
IF( G8 = "Depr",
SUM( INDIRECT( "G2:"&ADDRESS( ROW(H8) - 4,
COLUMN(G7),4) ,TRUE) ),
""
)
)
)
),
""
)
)
The error is being targeted at the second ADDRESS function, but that
works in a separate cell and in the formula debugger is outputting the
correct reference. Indirect is receiving the right string, in this
case: "G2:G4" It just will not let me past this error.
Is this a limitation in Excel? Can anyone see a problem with my
function?
Thanks,
-Wayne
Excel 2003.
=IF( $A8 <> "",
B8 * E8,
IF( ROW(H7) <> 1,
IF( G8 = "Subtotal",
SUM( H$2:H7 ),
IF( LEFT(G8, 3) = "Tax",
ROUND( $J$1 * H7, 2),
IF( G8 = "Total",
INDIRECT( ADDRESS( ROW(H8)-2, COLUMN(H8) ) ) + H7,
IF( G8 = "Depr",
SUM( INDIRECT( "G2:"&ADDRESS( ROW(H8) - 4,
COLUMN(G7),4) ,TRUE) ),
""
)
)
)
),
""
)
)
The error is being targeted at the second ADDRESS function, but that
works in a separate cell and in the formula debugger is outputting the
correct reference. Indirect is receiving the right string, in this
case: "G2:G4" It just will not let me past this error.
Is this a limitation in Excel? Can anyone see a problem with my
function?
Thanks,
-Wayne