how to make a cell empety?

wigarth

Board Regular
Joined
Apr 16, 2016
Messages
51
Office Version
  1. 365
Platform
  1. Windows
Hi!

I have a sheet that uses data from many other sheets. I.E. IF(A1="";"";A1)

Later on i get in trouble when i use the COUNTA formula... because Excel somehow thinks that "" is a blank space and counts that as a letter. This makes my "COUNTA" go nuts... (me as well)
Any other expressions than "" I can use? (0 and autoformat is a no-go!)

Vast amount of data and cells in original file, so changing the original sheets are... let's call it impossible :-)

Appreciate any help on this.
Best Reggards
Wig!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
COUNTA counts non-empty cells. A cell with a formula will never be empty.
You will need to look at COUNTIFS or perhaps a SUMPRODUCT function instead.
 
Last edited:
Upvote 0
use countif then...

=COUNTIF(...,"<>""""")

a " inside a string needs to be escaped so "" = "... the criteria will resolve to <>""
 
Upvote 0
Hi,

You didn't specify what's in the cells that you DO want counted, is it:
All cells that have any Text and/or Numbers? Only Numbers? Only Text?
This will give you a count of All cells that have any valid data, ignores "" from result of formulas:


Book1
ABC
118
2 
3a1
42
5
6b
73a
84
90
10d
Sheet23
Cell Formulas
RangeFormula
C1=SUMPRODUCT(--(LEN(A1:A10)>0))
A2=""
 
Upvote 0
Thank you! this worked right away. You are a real life saver!!
 
Upvote 0
You're welcome, glad it worked for you.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top