Preview Mode
large

Find and Replace Hack in Excel

Transcript

Hello, my pretty little petals. Today I have a super quick tip for you, but one that's useful nonetheless. And that is, how do we find and replace wildcard characters in our Excel spreadsheets? Now, if that sounds like something that you want to learn, then keep watching. Now, what exactly am I talking about?


Well, let's take a look at our data. You can see here, I have a list of different European cities, and I have the current temperature or the weather for those cities for today. And this is just data that I grabbed off of the web. Now, when I grabbed this data from the web, the data imported with an asterisk next to each of these cities.


Now, I don't want that asterisk there. I want to replace it. So I could use find and replace to do this, but we do have a small problem. Let me show you what the issue is first, and then I'll show you the simple way that you can fix it. So the first thing we're going to do is we're going to select all of the cities, Control, Shift, Down Arrow, my favourite shortcut.


And then to quickly jump into Find and Replace, we can press Control F or Control H. If we press Control H, it's going to jump you to the Replace tab. If you press Control F, it's going to jump you to the Find tab. That's the difference between the two. So I might think that in here, I can say, okay, I want to find the asterisk in this range, and I want to replace it with nothing.


I just want to delete it, basically. But check out what happens if I click on replace all. It removes everything from the cell. And that is because an asterisk is a wildcard character. So let's click on okay. I'm just going Undo to put all of those back because we need to go about this in a slightly different way.


Now, as I mentioned, the asterisk is a wildcard character when we're dealing with find and replace. And this wildcard character, the asterisk denotes all. So basically what it's saying here is find everything and replace it with nothing, which is why we're getting a blank cell. So, what do we do if we just want to replace the asterisk?

Well, it's a very simple case of before the asterisk, we want to add a tilde. That little wiggly dash. As soon as we do that, we can still say replace with nothing, that's fine. Click on Replace all. It just gets rid of the asterisk. And it leaves the city name there. So that little tilde trick applies whenever you want to find or replace a character that is a wildcard character in Excel.


Another example of that would be if you were trying to find and replace question marks in a range of cells, question mark is a wildcard character again, we would need to add the tilde in order to get it to work correctly.


Our aim is to ensure that everyone has an excellent learning experience. With this in mind, here are some tools which might help you to achieve this:


Using the NVDA or JAWS screen reader for learners with vision loss.


Using Texthelp Read & Write for learners with dyslexia or other reading difficulties.


Please note that all downloads and links in the module will open in a new tab.


Accessible alternatives

To ensure that everyone has a great learning experience, all the learning and activities are accessible or, where required, are supported by accessible alternatives.

Download the practice spreadsheet to follow along.

You can also download the completed exercise sheet to check your workings.

  • Ctrl + Shift + ↓ selects all cells from the current position to the end of the continuous data region in the column
  • Ctrl + F opens the Find tab of the Find and Replace dialogue
  • Ctrl + H opens the Replace tab of the Find and Replace dialogue

The tilde (~) trick selectively removes unwanted wildcard characters, like asterisks, in Find and Replace operations.

  1. Select the Data.
  2. Press Ctrl + F for Find or Ctrl + H for Replace.
  3. To only replace the wildcard characters (e.g. * and ?), prefix it with a tilde (~) in the "Find what" field.
  4. Leave the "Replace with" field empty or type the character you want to replace it with and click "Replace All."

download infographic

What is the keyboard shortcut to access the Replace tab in Excel's Find and Replace dialogue?


What character is placed before a wildcard character to turn it into a regular character?

Up next - 4 Excel Efficiency Tips