Original Text | Old Text
To Remove | New Text
To Insert | Updated Text | |
ABCDEF | CD | hello | ABhelloEF | =SUBSTITUTE(B4,C4,D4) |
ABCDABCD | CD | hello | ABhelloABhello | =SUBSTITUTE(B5,C5,D5) |
Northern Region | Region | Area | Northern Area | =SUBSTITUTE(B6,C6,D6) |
Sand and Cement | and | & | S& & Cement | =SUBSTITUTE(B7,C7,D7) |
Original Text | Old Text
To Remove | New Text
To Insert | Instance To
Be Replaced | Updated Text |
ABCABCABC | ABC | hello | 3 | ABCABChello |
Sand and Cement | and | & | 2 | Sand & Cement |
| | | | =SUBSTITUTE(B10,C10,D10,E10) |
| | | | =SUBSTITUTE(B11,C11,D11,E11) |
What Does It Do ? |
This function replaces a specified piece of text with a different piece of text. |
It can either replace all occurrences of the text, or a specific instance. |
The function is case sensitive. |
|
Syntax |
=SUBSTITUTE(OriginalText,TextToRemove,TextToInsert,InstanceToUse) |
The InstanceToUse is optional, if it is omitted all instances will be substituted. |
|
Formatting |
No special formatting is needed. |
|
Note |
To cope with upper or lower case in the substitution you can use other text functions |
such as =UPPER(), =LOWER() or =PROPER() to ensure that the substitution will take place. |
|
Table 1 shows how differing text cases alter the result of the substitution. |
Table 1 | | | |
Original Text | Old Text
To Remove | New Text
To Insert | Updated Text |
Northern Region | Region | Area | Northern Area |
Northern region | Region | Area | Northern region |
Northern Region | region | Area | Northern Region |
Northern Region | Region | area | Northern area |
Northern Region | region | area | Northern Region |
| | | =SUBSTITUTE(B39,C39,D39) |
Table 2 shows how the =PROPER() function has been used to take account of the mixed cases.
Table 2 | | | |
Original Text | Old Text
To Remove | New Text
To Insert | Updated Text |
Northern Region | Region | Area | Northern Area |
Northern region | Region | Area | Northern Area |
Northern Region | region | Area | Northern Area |
Northern Region | Region | area | Northern Area |
Northern Region | region | area | Northern Area |
| | | =SUBSTITUTE(PROPER(B50),PROPER(C50),PROPER(D50)) |
Related Posts by Categories
Excel Notes- How to create a template in excel 2007?
- Tips for Setting Up a Table in Excel
- Table Terms in Excel
- Sorting Data in Excel (Sort Button and Sort Dialog Box)
- Separating Text in Excel (Separating the Data)
- Separating Text in Excel (Considerations)
- Hiding Columns, Rows, and Cells in Excel (Hiding Cell Contents)
- Hiding Columns, Rows, and Cells in Excel (Redisplaying Rows)
- Hiding Columns, Rows, and Cells in Excel (Hiding Rows)
- Hiding Columns, Rows, and Cells in Excel (Redisplaying Columns)
- Hiding Columns, Rows, and Cells in Excel (Hiding Columns)
- Find and Replace Features in Excel (Using the Replace Feature)
- Find and Replace Features in Excel (Using the Find Feature)
- Paste Special Feature in Excel (Paste Special Options)
- Paste Special Feature in Excel (Using the Paste Special Dialog Box)
- Using the Fill Command in Excel (Filling Cells, Filling Cells: Ribbon Option, Filling Cells: Mouse Option, Working with Custom Fills, Creating a Custom Fill, Importing Custom Fills, Using a Custom Fill)
- Working with Comments in Excel (Adding Comments, Adding Comments: Ribbon Option, Adding Comments: Mouse Option , Editing Comments, Editing Comments: Ribbon Option, Editing Comments: Mouse Option, Displaying/Hiding Comments, Displaying/Hiding Comments: Single Cell , Displaying/Hiding Comments: Ribbon Option, Displaying/Hiding Comments: All Cells , Moving Comments , Deleting Comments, Removing Comments from a Single Cell: Mouse Option, Removing Comments from a Single Cell: Ribbon Option, Removing Comments from All Cells, Printing Comments)
- Importing an External Data File in Excel
- Working with Rows and Columns in Excel (Adjusting Row Height and Column Width, Adjusting Row Height: Ribbon Option, Adjusting Row Height: Mouse Option, Adjusting Column Width: Ribbon Option, Adjusting Column Width: Mouse Option, Using AutoFit to Adjust Rows and Columns, Using AutoFit to Adjust Row Height: Ribbon Option, Using AutoFit to Adjust Column Width: Mouse Option, Using AutoFit to Adjust Column Width: Ribbon Option, Adding and Removing Rows and Columns, Adding Rows, Adding Columns, Deleting Rows, Deleting Columns)
- Calculating Subtotals in Excel (Adding Subtotals , Adjusting Views with Subtotals , To expand the view one level:, To collapse the view one level: , Removing Subtotals , Re-sorting the Data )
- Calculating with Functions in Excel (Parts of a Function , Inserting Functions, Inserting Functions: Dialog Box Option, Inserting Functions: Ribbon Option, About the Function Arguments Dialog Box, To access the Function Arguments dialog box:, Inserting Functions with the Point and Click Method, Adding Cells Together, Adding a Range of Cells with the SUM Function)
- Editing Cell Contents in Excel (Moving Information, Drag and Drop vs. Cut and Paste, Moving Information: Drag and Drop , To Undo Drag and Drop:, Moving Information: Cut and Paste , Copying Formulas, Copy and Paste )
- Working with Conditional Formatting in Excel (Applying Preformatted Rules , Applying Cell Highlighting , Applying Top, Bottom, and Average Rules , Applying Data Bars, Color Scales, and Icon Sets , Creating a Customized Rule , Editing Rules , Prioritizing Rules , Deleting Rules )
- Formatting Numbers in Excel (Formatting Numbers: Toolbar Option , Formatting Numbers: Ribbon Option , Formatting Numbers: Dialog Box Option , Clearing Number Formatting )
- Formatting Cells in Excel (Applying Cell Styles , Formatting Borders , Changing Borders, Changing Border Color , Changing Border Style , Deleting Borders , Using Conditional Formatting , Merging Cells , Creating a Cell Merge , Customizing a Cell Merge , Removing a Cell Merge , Wrapping Text, Copying Cell Formatting, Clearing Cell Formatting )
0 comments:
Post a Comment