Replace invisible characters from a range of cells

Zaigham

Board Regular
Joined
Dec 22, 2010
Messages
159
Office Version
  1. 2021
Platform
  1. Windows
  2. Mobile
Hi,
I've a table and used this type of commands e.g. "=IF(B13="","",$F$44)" in most of the cells. Resultantly there are many rows which appears blank. But when I copied the table and pasted it as value on other sheet and from the upper left corner say from cell A1 I pressed the Ctrl+ Down Arrow, the cursor went down to the vary last cell of the table, even though the last few rows were blank. I have not find any character in these visibly blank cells in edit mode by pressing F2 too.
Is there any way to replace all these invisible characters by using "Find and Replace" command?

Regards
Zaigham
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
On the basis that you have pasted values to another location and want to actually empty the cells with "".
Option 1) Manual method
If it is just a single column. You can use Text to Columns. Select delimited, turn off all the delimiters and then Finish and it should change those cells to empty.

Option 2) Vba
If you have a lot of columns impacted, select any cell in the data area and run this code.
(you could also put the line in the immediate window and hit enter)
VBA Code:
Sub ClearEmptyTextStrings()
    ActiveCell.CurrentRegion.Value = ActiveCell.CurrentRegion.Value
End Sub
 
Upvote 0
Solution
Hi Alex
VBA code work fine. Thank you very much for your kind help.
Regards
 
Upvote 0

Forum statistics

Threads
1,223,718
Messages
6,174,082
Members
452,542
Latest member
Bricklin

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