How to split a cells data into multiple rows?

RahulNa

Board Regular
Joined
Jul 12, 2012
Messages
127
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have an excel data where in one column the information is coming like below

Cell F2- AWS; Nvidia; Atos; Azure

There are few cells like that. Is it possible to split them in one below all like on the above F2 be AWS, F3 Nvidia, F4 Atos likewise while retaining the rest of information in another columns as it is.

NameRegionAmountRevenueLevelPartner
AlphaAPAC100,000100,0001AWS
GammaEMEA250,000100,0002Nvidia; Atos
BetaAPAC350,000100,0003AWS; Nvidia; Atos


So IF the Partner cell is split

Then I would like the all information spilled like below

NameRegionAmountRevenueLevelPartner
BetaAPAC350,000100,0003AWS
BetaAPAC350,000100,0003Nvidia
BetaAPAC350,000100,0003Atos
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Here's one option but it has a character limit. If your dataset is large, might want to consider VBA.
Book1
ABCDEF
1NameRegionAmountRevenueLevelPartner
2AlphaAPAC100,000100,0001AWS
3GammaEMEA250,000100,0002Nvidia; Atos
4BetaAPAC350,000100,0003AWS; Nvidia; Atos
5
6
7
8AlphaAPAC1000001000001AWS
9GammaEMEA2500001000002Nvidia
10GammaEMEA2500001000002Atos
11BetaAPAC3500001000003AWS
12BetaAPAC3500001000003Nvidia
13BetaAPAC3500001000003Atos
Sheet9
Cell Formulas
RangeFormula
A8:F13A8=TEXTSPLIT(TEXTJOIN(",",,TEXTJOIN(",",,BYROW(A2:F4,LAMBDA(br,TEXTJOIN(",",,TEXTJOIN("|",,DROP(br,0,-1))&"|"&TEXTSPLIT(TAKE(br,1,-1),,"; ")))))),"|",",")
Dynamic array formulas.
 
Upvote 0
Here is an alternative solution with Power Query aka Get and Transform and found on the data tab.

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(Source, {{"Partner", Splitter.SplitTextByDelimiter(";", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Partner")
in
    #"Split Column by Delimiter"
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,190
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top