COUNTIF & Blank Cells

L

laurie g

Using =COUNTIF(Sheet1!$E$6:$E$119,A25) in B25 on sheet2 When I copy down
to B35 and if any cells in A25 to A35 is blank it gives a result of 98, When
it should be blank.Sheet1 E6:E119 is text and A25:A35 on Sheet2 is also text.
Please correct my formula for me.

Many thanks,
laurie g
 
F

Franz Verga

laurie said:
Using =COUNTIF(Sheet1!$E$6:$E$119,A25) in B25 on sheet2 When I
copy down to B35 and if any cells in A25 to A35 is blank it gives a
result of 98, When it should be blank.Sheet1 E6:E119 is text and
A25:A35 on Sheet2 is also text. Please correct my formula for me.

Many thanks,
laurie g


Hi Laurie,

try this:

=IF(A25<>"",COUNTIF(Sheet1!$E$6:$E$119,A25),"")


--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy
 
L

laurie g

Thanks Franz much appreciated

Franz Verga said:
Hi Laurie,

try this:

=IF(A25<>"",COUNTIF(Sheet1!$E$6:$E$119,A25),"")


--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy
 
Top