ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Returning nothing if formula is false (https://www.excelbanter.com/excel-discussion-misc-queries/123770-returning-nothing-if-formula-false.html)

SallyGirl

Returning nothing if formula is false
 
I am using COUNTA(a1:a20) formula. The colum that it is counting also
contains formulas. Some of the cell formulas are returning 0. Can I change
the cell formulas to return a blank cell or nothing so that my COUNTA formula
does not include that cell in its count?
COUNTA(a1:a20)

a2=a1, a3=a2

Dave O

Returning nothing if formula is false
 
One way to do this is to change the formulas to include IF formulas,
like this:
IF(your original formula=0,"",your original formula)
This will return an empty cell if the original formula yields a zero.


Teethless mama

Returning nothing if formula is false
 
Try this:
=SUMPRODUCT(--ISNUMBER(A1:A20))


"SallyGirl" wrote:

I am using COUNTA(a1:a20) formula. The colum that it is counting also
contains formulas. Some of the cell formulas are returning 0. Can I change
the cell formulas to return a blank cell or nothing so that my COUNTA formula
does not include that cell in its count?
COUNTA(a1:a20)

a2=a1, a3=a2


SallyGirl

Returning nothing if formula is false
 
Thank you this was helpful!!

"SallyGirl" wrote:

I am using COUNTA(a1:a20) formula. The colum that it is counting also
contains formulas. Some of the cell formulas are returning 0. Can I change
the cell formulas to return a blank cell or nothing so that my COUNTA formula
does not include that cell in its count?
COUNTA(a1:a20)

a2=a1, a3=a2



All times are GMT +1. The time now is 03:16 AM.

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