Excel – Find & Replace Odd Invisible White Space Characters

Have you faced the problem where you have cut/paste data from the web and get invisible whitespace character(s) that prevents you from using the value as a number in calculations such as the SUM function. You may find the TRIM and SUBSTITUTE functions will not locate it with the normal white space, blank, or space notations.  

The offending character is often the ASCII character 0160, which can be represented with the Char(160) function. This is a character you can not enter with the keyboard or an escape sequence.

Solution:
Find an empty cell, select it and look at the formula bar (it’s empty).

Next, type the following without hitting enter, =CHAR(160), STOP, don’t hit enter!

Glance at formula bar, hit F9 while the focus is on that cell your in, see the formula bar has changed to the special character. Select it, and use Ctrl-C to copy it into your memory cache. Now you have the character available to paste into other areas.

Select group of Excel cells you want to clean.

Use Ctrl-H to open the Find and Replace pop-up window, with Replace selected as default tab. With Ctrl-V place the unseen whitespace character in the “Find what” field and then ensure the “Replace with” is blank. With “Replace all” command button you will clean out all those characters.

Did that not work for you? What character is your mystery character? To the right of the cell, add the following and adjust the cell reference; =UNICODE(MID($J20,1, 1)). This will give you the code.

If you don’t want to replace the characters, you can use the MID command in another cell to remove the 1 character you don’t want. Try this command once you get the code; =SUBSTITUTE(A1, CHAR(160),””). Substitute 160 for the code you find.

Data Loader – Windows Shortcut

If you have installed the Zulu JDK 11 and the Salesforce Data Loader and want to create your own Windows shortcut, follow these instructions.

Install Zulu OpenSDK version 11

I used the zip file to setup Zulu 11 on my Windows 10 system. Note, by not using the MSI installer there were software keys that were not created that probably are used by the Data Loader program.

  • Zulu 11 folder: C:\java\zulu-jdk11
  • set %JAVA_HOME% to C:\java\zulu-jdk11
  • set %ZULU_JAVA_HOME% to C:\java\zulu-jdk11
    • This was created only because of DataLoader.bat using it

Install Salesforce Data Loader

Setup (Production) | Data Management | Data Loader

  • I installed Salesforce Data Loader under C:\dev\dataloader_win
  • I ran the install.bat file and it didn’t succeed at creating the desktop icon.
  • Looking at the dataloader.bat file I could see the command it uses to run the Data Loader.
"%ZULU_JAVA_HOME%\bin\java" -jar dataloader-49.0.0-uber.jar salesforce.config.dir=configs

Create Windows Shortcut Key

  • Select the jar file “dataloader-49.0.0-uber.jar” and right-click “Create Shortcut”
  • Right-click the new shortcut file
    • I set my “Start in” folder:
      • C:\dev\dataloader_win
    • I set the Target value change to:
      • java -jar dataloader-49.0.0-uber.jar salesforce.config.dir=configs
    • Set the icon file
      • C:\dev\dataloader_win\dataloader.ico
    • Apply and Okay
  • Double-click the new shortcut to test

The above can be a reference for any Java .jar file that you wish to setup a Windows Shortcut for and add parameters.