In this video, I will show you four easy ways to separate text and numbers in Excel.
The following four methods are covered in the video:
1. Using Flash Fill
2. Using a Formula
3. Using VBA
4, Using Power Query
✅ Download File:
———————————————————————————–
Below are the two VBA codes I have shown in this video:
‘Code created by Sumit Bansal from
Function GetNumber(CellRef As String)
Dim StringLength As Integer
StringLength = Len(CellRef)
For i = 1 To StringLength
If IsNumeric(Mid(CellRef, i, 1)) Then Result = Result & Mid(CellRef, i, 1)
Next i
GetNumber = Result
End Function
‘Code created by Sumit Bansal from
Function GetText(CellRef As String)
Dim StringLength As Integer
StringLength = Len(CellRef)
For i = 1 To StringLength
If Not (IsNumeric(Mid(CellRef, i, 1))) Then Result = Result & Mid(CellRef, i, 1)
Next i
GetText = Result
End Function
———————————————————————————–
00:00 Intro
00:26 Separate Text and Numbers using Flash Fill
03:36 Separate Text and Numbers using Formula
08:03 Separate Text and Numbers using VBA
11:37 Separate Text and Numbers using Power Query
☕ If you find my Excel videos useful and would like to support me, you can buy me a coffee –
✅ Free Excel Course (Basic to Advanced) –
✅ Free Dashboard Course –
✅ Free VBA course –
✅ Free Power Query Course –
✅ Best Excel Books:
Subscribe to get awesome Excel Tips every week:
#Excel #ExcelTips #ExcelTutorial
Watch more new videos about Excel Office | Synthesized by Mindovermetal English
If you found this video useful, please give it a thumbs up 👍 and subscribe to the channel. Also, let me know what Excel topics you want me to cover in future videos.
Also, I have made all of my Excel courses available for free. You can check these out using the below links:
✅ Free Excel Course (Basic to Advanced) – https://trumpexcel.com/learn-excel/
✅ Free Dashboard Course – https://bit.ly/free-excel-dashboard-course
✅ Free VBA course – https://bit.ly/excel-vba-course
✅ Free Power Query Course – https://bit.ly/power-query-course
Quite good. Really enjoyed the lesson.
Hi, I've been trying to use =MIN(IFERROR(FIND({0,1,2,3,4,5,6,7,8,9},…….function but it brings me to #VALUE! And it says A value used in the formula is of the wrong data type. Can you help me, please?
you are always glamorous
All excel vedios are available this channel
https://youtu.be/FdvxcDBStqg
https://youtube.com/c/PavanLalwani
By Pawan lalwani
Lovely, as usual. But I can't get it to work when I put the code in my "personal.xlsb" and try to call the function from an Excel workbook (.xlsx). Work nice if the code is in a module of the same workbook.
This is a a great demonstration of alternative techniques, thanks.
Very useful… Thnx for your effortful video👍👍
Thanks for the info.
I'm wondering what happens when the ID is a mix of numbers and texts, i.e. T754GE9754L00381, a serial or registration number?
You are genius brother, I love your videos. Very informative, simple and to the point.👍
Flash fill is easy way…