ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Keeping cells blank even though formula is input (https://www.excelbanter.com/excel-worksheet-functions/446657-keeping-cells-blank-even-though-formula-input.html)

Bootface

Keeping cells blank even though formula is input
 
I have the following formula in my work sheet in cell U1237
=IF(K1237=2,(U1236+1.3),IF(K1237<=1,U1236+1)) however when I drag this formula down it calculates blank cells as a 0 and returns a figure. How do I keep the below cells blank whilst keeping the formula. When I try the Isblank method I just get an error saying too many arguments. Thanks

Vacuum Sealed

Keeping cells blank even though formula is input
 
On 24/07/2012 6:54 PM, Bootface wrote:
I have the following formula in my work sheet in cell U1237
=IF(K1237=2,(U1236+1.3),IF(K1237<=1,U1236+1)) however when I drag this
formula down it calculates blank cells as a 0 and returns a figure. How
do I keep the below cells blank whilst keeping the formula. When I try
the Isblank method I just get an error saying too many arguments. Thanks




Hi

=IF(K1237="","",IF(K1237=2,(U1236+1.3),IF(K1237<= 1,U1236+1)))

HTH
Mick.

Spencer101

Quote:

Originally Posted by Bootface (Post 1603930)
I have the following formula in my work sheet in cell U1237
=IF(K1237=2,(U1236+1.3),IF(K1237<=1,U1236+1)) however when I drag this formula down it calculates blank cells as a 0 and returns a figure. How do I keep the below cells blank whilst keeping the formula. When I try the Isblank method I just get an error saying too many arguments. Thanks

How about:

=IF(K1237="","",IF(K1237=2,(U1236+1.3),IF(K1237<= 1,U1236+1)))


Does that do what you're after?

joeu2004[_2_]

Keeping cells blank even though formula is input
 
"Bootface" wrote:
I have the following formula in my work sheet in cell U1237
=IF(K1237=2,(U1236+1.3),IF(K1237<=1,U1236+1))
however when I drag this formula down it calculates blank
cells as a 0 and returns a figure. How do I keep the below
cells blank whilst keeping the formula.


I presume K1237 is never between 1 and 2, e.g. 1.5. Otherwise, your formula
would be flawed to start with. So you might write:

=IF(K1237="","",IF(K1237=2,U1236+1.3,U1236+1))

No need to test K1237<=1. That is implied when K1237=2 is false.


Bootface

Quote:

Originally Posted by Vacuum Sealed (Post 1603945)
On 24/07/2012 6:54 PM, Bootface wrote:
I have the following formula in my work sheet in cell U1237
=IF(K1237=2,(U1236+1.3),IF(K1237<=1,U1236+1)) however when I drag this
formula down it calculates blank cells as a 0 and returns a figure. How
do I keep the below cells blank whilst keeping the formula. When I try
the Isblank method I just get an error saying too many arguments. Thanks




Hi

=IF(K1237="","",IF(K1237=2,(U1236+1.3),IF(K1237<= 1,U1236+1)))

HTH
Mick.


Hi Mick
Thanks very much that has done the trick :-)

Bootface

Quote:

Originally Posted by Spencer101 (Post 1603942)
How about:

=IF(K1237="","",IF(K1237=2,(U1236+1.3),IF(K1237<= 1,U1236+1)))


Does that do what you're after?

Thanks Spencer yes it does :-)


All times are GMT +1. The time now is 10:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com