D
dude3236
Here's the situation:
I have about 1000 cells. The first cell starts at a postive number (i
5000). Each cell afterwards has a value smaller than the previous cel
(ie 5000, 4998, 4990, 4809....). Eventually the number will reach zer
or a negative number.
Once a cell reaches a zero or a negative number, I want all th
remaining cells after it to display nothing (or null or something lik
that).
Here is my formula to do that:
=IF(I23<=0," ",(I23+((I23*($H$14/12))-J23)))
The above is basically saying:
IF(previous cell<=0 THEN display " " ELSE make a calculation to displa
in the current cell)
This works for the first time, but anytime after that, it returns a
error (####).
So the excel sheet would look like this:
5000 4998 4990 4809 -23 #### ####
I know the problem lies in the fact that the IF statement says (I
previous cell <=0). It won't work because the previous cell is #### (a
error).
How can I make it so that the #### is not displayed.
Here are my solutions:
1. Individually conditional format EVERY SINGLE cell. (I prefer not t
since there are 1000+ cells)
2. In each formula, create nested functions to accomplish what I'
trying to do. (this is the ideal solution but I can't seem to figur
out the syntax. I've been trying OR functions with the IF but th
program doesnt seem to like it).
Maybe I could include another statement that says:
IF (previous cell <=0 OR isnull) THEN....
But how do I add the "OR isnull"? I don't know the correct syntax fo
that.
Any help or advice please??
I have about 1000 cells. The first cell starts at a postive number (i
5000). Each cell afterwards has a value smaller than the previous cel
(ie 5000, 4998, 4990, 4809....). Eventually the number will reach zer
or a negative number.
Once a cell reaches a zero or a negative number, I want all th
remaining cells after it to display nothing (or null or something lik
that).
Here is my formula to do that:
=IF(I23<=0," ",(I23+((I23*($H$14/12))-J23)))
The above is basically saying:
IF(previous cell<=0 THEN display " " ELSE make a calculation to displa
in the current cell)
This works for the first time, but anytime after that, it returns a
error (####).
So the excel sheet would look like this:
5000 4998 4990 4809 -23 #### ####
I know the problem lies in the fact that the IF statement says (I
previous cell <=0). It won't work because the previous cell is #### (a
error).
How can I make it so that the #### is not displayed.
Here are my solutions:
1. Individually conditional format EVERY SINGLE cell. (I prefer not t
since there are 1000+ cells)
2. In each formula, create nested functions to accomplish what I'
trying to do. (this is the ideal solution but I can't seem to figur
out the syntax. I've been trying OR functions with the IF but th
program doesnt seem to like it).
Maybe I could include another statement that says:
IF (previous cell <=0 OR isnull) THEN....
But how do I add the "OR isnull"? I don't know the correct syntax fo
that.
Any help or advice please??