Possible hidden non-printable character removal

xdriver

Board Regular
Joined
Mar 21, 2014
Messages
73
Office Version
  1. 365
Platform
  1. MacOS
Here is a snippit of one of my sheets. If I select a column it counts every single column, not just the ones with data in them. If I select a bunch of "empty" cells, and click delete, then the count will be reduced by the number of cells I selected. I tried copying "empty" cells, and pasting it into View non-printable unicode characters but receive nothing because there is nothing in the cells to select. How can I clean up my sheet of non printable characters?

natickmlspublicrecords.xlsx
XYZAAABACAD
1Creation DateExteriorFireplacesFirst Floor SqftFirst NameFoundationFuel Type
2
3
4CHRISTOPHER
5ALVNL11336MICHAELOIL
6
7
8ELLEN G
9
10
11
12ALVNL1768JOHN WELEC
Sheet1
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Is there a way to post an actual excel file?
Not here, but you can uplaod to a site such as OneDrive, DropBox, GoogleDrive, then mark for sharing & post the link you are given to the thread.
 
Upvote 0
I believe there is something wrong with the sheet. Even trying to do a sum of cells is not working and yields "0." Also, selecting multiple cells does not show the Average and Sum at the bottom where it shows count even though sum and average are checked "on" in the settings. Creating a new sheet seems to work.
 
Upvote 0
are you certain the cell you were pointing to was truly not blank?

Have you done select all blank cells ( Highlight a range. Press F5, Click Special, Click Blanks, Click OK)?
 
Upvote 0
are you certain the cell you were pointing to was truly not blank?

Have you done select all blank cells ( Highlight a range. Press F5, Click Special, Click Blanks, Click OK)?
"No cells were found."
 
Upvote 0
Thanks for that, how about
VBA Code:
Sub xdriver()
   With ActiveSheet.UsedRange
      .NumberFormat = "General"
      .Value = .Value
   End With
End Sub
 
Upvote 1
Solution
Thanks for that, how about
VBA Code:
Sub xdriver()
   With ActiveSheet.UsedRange
      .NumberFormat = "General"
      .Value = .Value
   End With
End Sub
That DID work. However, when I tried doing select all on the sheet and formatting to general, it did not work. I also tried creating a new sheet and doing a copy paste of values only and that did not work either. What is the difference between the code you sent and when I manually tried it? Thank you very much for helping sort this out for me.
 
Upvote 0
When you copy/ paste as values you can get nullstrings in blank cells which is what you had. But when using .Value=.Value you get rid of the nullstrings.
 
Upvote 0
So it would almost be wise to run that VBA whenever you import a lot of data?
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,239
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