N
N Hegler
I am trying to sum balances in Excel and make a formula
flag a cell with the word "delete" if the sum is zero.
The only problem is that Excel does not recognize the sum
of 0.00 or (0.00) as 0 in my formula. I have discovered
that if I resort the information so that the balances are
ascending (instead of by date, which is the preferred
order) my formula will work. Does any one know a way
around the sorting to get the formula to work properly?
Below is a sample of my formula to flag the cell
with "delete":
=IF(C143= "", "", IF(AND(C143=C147,SUM(H143:H147)
=0), "DELETE", IF(AND(C143=C146,SUM(H143:H146)
=0), "DELETE", IF(AND(C143=C145,SUM(H143:H145)
=0), "DELETE", IF(AND(C143=C144,SUM(H143:H144)
=0), "DELETE", "")))))
It is testing to see if, at the most, five consecutive
rows are the same and if their sum of the balances for
these rows are zero.
Any advice or assistance is appreciated!
Thanks!
flag a cell with the word "delete" if the sum is zero.
The only problem is that Excel does not recognize the sum
of 0.00 or (0.00) as 0 in my formula. I have discovered
that if I resort the information so that the balances are
ascending (instead of by date, which is the preferred
order) my formula will work. Does any one know a way
around the sorting to get the formula to work properly?
Below is a sample of my formula to flag the cell
with "delete":
=IF(C143= "", "", IF(AND(C143=C147,SUM(H143:H147)
=0), "DELETE", IF(AND(C143=C146,SUM(H143:H146)
=0), "DELETE", IF(AND(C143=C145,SUM(H143:H145)
=0), "DELETE", IF(AND(C143=C144,SUM(H143:H144)
=0), "DELETE", "")))))
It is testing to see if, at the most, five consecutive
rows are the same and if their sum of the balances for
these rows are zero.
Any advice or assistance is appreciated!
Thanks!