SPLIT TEXT TO ROWS IN EXCEL | 3 WAYS TO SPLIT TEXT TO ROWS IN EXCEL | EXCEL TUTORIAL

Published: 12 January 2024
on channel: Learnerz Academy
50
5

SPLIT TEXT TO ROWS IN EXCEL | 3 WAYS TO SPLIT TEXT TO ROWS IN EXCEL | EXCEL TUTORIAL
---------------------------------------------------------------------------------------------------------------------------------------------------
VBA CODE:

Function SplitCellToRows(CellValue As Range, Delimiter As String)
Dim SplitValues() As String
Dim i as Integer

'Split the value by the specified delimiter into an array
SplitValues = Split(CellValue.Value, Delimiter)

'Go through each element of the array and remove any leading or trailing spaces
For i = LBound(SplitValues) To UBound(SplitValues)
SplitValues(i) = Trim(SplitValues(i))
Next i

'Return the array
SplitCellToRows = WorksheetFunction.Transpose(SplitValues)

End Function
----------------------------------------------------------------------------------------------------------------------------------------------------
TextSplit function:    • TEXTSPLIT Function to Separate words ...  

Catch Us on
Facebook -   / learnerzacademy  
Instagram -   / learnerz.academy  
Twitter -   / learner_z  
#Excel #ExcelTips #ExcelTutorial #exceltricks #exceltipsandtricks #excel365 #textsplitfunctioninexcel #textsplit #vbaexcel #texttorow #texttocolumn #texttocolumns
#learnerz_academy
Queries:
SPLIT TEXT TO ROWS IN EXCEL
text to columns
text to rows
how to split text in excel


Watch video SPLIT TEXT TO ROWS IN EXCEL | 3 WAYS TO SPLIT TEXT TO ROWS IN EXCEL | EXCEL TUTORIAL online without registration, duration hours minute second in high quality. This video was added by user Learnerz Academy 12 January 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 50 once and liked it 5 people.