How to split a cells data into multiple rows?

RahulNa

Board Regular
Joined
Jul 12, 2012
Messages
125
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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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,216,153
Messages
6,129,176
Members
449,491
Latest member
maxim_sivakon

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