filmov
tv
4 Easy Ways to Remove Parentheses in Excel
Показать описание
In this video, I will show you four simple methods you can use to quickly remove parentheses in Excel.
The following methods are covered in this video:
- Using Flash Fill
- Using Find and Replace
- Using the SUBSTITUTE Function
- Using VBA Macro
00:00 Intro
00:18 Remove Parentheses Using Flash Fill
02:12 Remove Parentheses Using Find and Replace
03:28 Remove Parentheses Using the SUBSTITUTE Function
05:34 Remove Parentheses Using VBA Macro
------------------------------------------------------------------------------------------------
Sub RemoveParentheses()
Dim rng As Range
Dim cell As Range
' Set the current selection as the range to be used
Set rng = Selection
' Loop through each cell in the selection
For Each cell In rng
' Remove parentheses
cell.Value = Replace(cell.Value, "(", "")
cell.Value = Replace(cell.Value, ")", "")
Next cell
End Sub
----------------------------------------------------------------------------------------------------------
#Excel #ExcelTips #ExcelTutorial
Комментарии