Separate Text and Numbers in Excel (4 Easy Ways)



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

5/5 - (1 bình chọn)

Bài viết liên quan

Theo dõi
Thông báo của
guest
11 Comments
Cũ nhất
Mới nhất Được bỏ phiếu nhiều nhất
Phản hồi nội tuyến
Xem tất cả bình luận
TrumpExcel

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

John Fiott

Quite good. Really enjoyed the lesson.

query hsje

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

MR RAMJAN ALAM

All excel vedios are available this channel
https://youtu.be/FdvxcDBStqg
https://youtube.com/c/PavanLalwani
By Pawan lalwani

Leddb1951

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.

dgitson

This is a a great demonstration of alternative techniques, thanks.

Sukhwinder Pal

Very useful… Thnx for your effortful video👍👍

Geoffrey Jones

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?

Firasath Hussain

You are genius brother, I love your videos. Very informative, simple and to the point.👍

Baskar Chandran

Flash fill is easy way…