How to stop counting blank cells

p86c

New Member
Joined
Jun 13, 2020
Messages
16
Office Version
  1. 2010
Platform
  1. Windows
So I have pasted data from generated from a piece of software into my excel sheet.

One of the formula returns a value for the number of cells in a column that has data in it.

Unfortunately it is counting all the cells in the column, including the blank ones - so I am guessing they have not transferred as blank.

I find that is I delete each blank cell manually then the count works again - but there are hundreds of these to do.

I think a find an dreplace might work - but what am I finding? and what am I replacing it with...just a blank?

And pointers?
p86c
 
You could also try
VBA Code:
Sub P86c()
   With ActiveSheet.UsedRange
      .Value = .Value
   End With
End Sub
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,214,648
Messages
6,120,726
Members
448,987
Latest member
marion_davis

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