Creating additional row in excel based on Cell Data

Freeman2022

New Member
Joined
Nov 3, 2021
Messages
44
Office Version
  1. 365
Platform
  1. Windows
Greetings,

Ok so I'm trying to go from A to B....Need to split the data in the email address column, THEN, create additional line item.. Not sure if a formula would work, might have to try VBA...Please Help

A

Profile IDRequest TypeChange TypeEmail Address
1NotificationYellowJane,Sue,Mike
2NotificationBuleDon,Jean,Sam,Joe

B
Profile IDRequest TypeChange TypeEmail Address
1NotificationYellowJane
1NotificationYellowSue
1NotificationYellowMike
2NotificationBuleDon
2NotificationBuleJean
2NotificationBuleSam
2NotificationBuleJoe
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Assuming your data is in columns A1:D3, you can use this Excel function.

1699046917178.png


Excel Formula:
=DROP(REDUCE(0,SEQUENCE(COUNTA(A:A)),LAMBDA(x,y,VSTACK(x,LET(z,TEXTSPLIT(INDEX(D:D,y),,",",1),q,CHOOSEROWS(A:C,y)&"",HSTACK(IFERROR(EXPAND(q,ROWS(z)),q),TAKE(z,,1)))))),1)


Shoutout to @JvdV in this post for the motivation: Split data in to rows, new line
 
Upvote 0
Solution

Forum statistics

Threads
1,223,630
Messages
6,173,454
Members
452,514
Latest member
cjkelly15

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