MrExcel's Learn Excel #792 - Substitute Total

If you like this content, please consider visiting the video on YouTube and subscribe to the MrExcel Channel to show your support!
This video has been published on Jan 15, 2009.
Another way to solve yesterday's problem is to use the =SUBSTITUTE function instead of LEFT and LEN. Episode 792 will show you how.

This blog is the video podcast companion to the book, Learn Excel 97-2007 from MrExcel. Download a new two minute video every workday to learn one of the 377 tips from the book!
maxresdefault.jpg


Transcript of the video:
Hey. Welcome back to the MrExcel netcast. I’m Bill Jelen. Well, it’s the 1st of July.
We’re up to episode number 792.
In the last episode, I talked about how to get rid of the word TOTAL over here in column D, and I use this formula using LEFT and LEN, and there's actually a much better way to do this.
You know, there's 3 or 4 of 5 ways to do everything in Excel, and there's a function that I rarely use called SUBSTITUTE, the SUBSTITUTE function.
It says, hey, look over there in D6, and we want to take this old text.
So, in “, I'm going to put a space in the word TOTAL, and then the new text is just going to be “”. I don't want anything there at all, and if I wanted to get rid of the second or third occurrence of the word TOTAL, I could use the INSTANCE NUM, but I don't have to do that.
It will take the word TOTAL out.
[ =SUBSTITUTE(D6,“ TOTAL”,“”) ] So, again, just like yesterday, in order to enter this function everywhere, we're going to select all of the cells next to the totals, use ALT+; to select the visible cells only, type that formula, and then press CONTROL+ENTER to enter that similar formula the whole way down, and then, of course, you know, really, the fastest way of all is just to select all this data and use EDIT, REPLACE, and change every occurence of just space TOTAL to nothing, use REPLACE ALL, and you achieve the same effect.
So, several different ways to solve that problem.
Now, of course, we can do VLOOKUPs into this data in order to get the totals for another worksheet.
Well, there you have it.
Thanks for stopping by.
We'll see you next time for another netcast from MrExcel.
 

Forum statistics

Threads
1,223,639
Messages
6,173,496
Members
452,516
Latest member
druck21

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