ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how do I skip blank cells when writing formulas (https://www.excelbanter.com/excel-worksheet-functions/98741-how-do-i-skip-blank-cells-when-writing-formulas.html)

KatB

how do I skip blank cells when writing formulas
 
I'm using Excel 2003. I need to add a value to a large range of cells. Most
cells contain numbers greater than zero, some contain "0", and others are
blank. When I write formulas, it seems like blank cells are assumed to
contain "0". I need to be able to add something to the cells with a "0",
while leaving the blank cells blank. Is there a way to do this?

David Biddulph

how do I skip blank cells when writing formulas
 
"KatB" wrote in message
...
I'm using Excel 2003. I need to add a value to a large range of cells.
Most
cells contain numbers greater than zero, some contain "0", and others are
blank. When I write formulas, it seems like blank cells are assumed to
contain "0". I need to be able to add something to the cells with a "0",
while leaving the blank cells blank. Is there a way to do this?


=IF(A1="","",A1+your value)
--
David Biddulph




All times are GMT +1. The time now is 11:45 PM.

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