Splitting IDs using one reference column

KarthickDijo

New Member
Joined
Sep 14, 2022
Messages
28
Office Version
  1. 2019
Platform
  1. Windows
Hi All,

I need to create two separate columns (Parent & Child) from a Single column. Can anyone help me on this attached the sample input and output format.

Thanks in advance !!
 

Attachments

  • Combining IDs.jpg
    Combining IDs.jpg
    35.7 KB · Views: 41

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I couldn't use the XL2BB tool. The Mini Sheet option is disabled. Could you please help me by viewing the image attached ?
 
Upvote 0
@Fluff .. Just review the other query as well both are different actually. Here I requested for all possible combinations. Whereas the locked topic wasn't related to this one.
 
Upvote 0
Check this - You can skip the part or rearrange as per your need

All Records.xlsb
ABCDEFGHIJ
1NameIDHelpNameParentChild1Child2Child3Child4
2ABC4031ABC403445317443 
3ABC4452XYZ371352   
4ABC3173RST322366329  
5ABC4434
6XYZ3711
7XYZ3522
8RST3221
9RST3662
10RST3293
Sheet1
Cell Formulas
RangeFormula
E2:E4E2=UNIQUE(A2:A10)
F2:F4F2=XLOOKUP(1,($A$2:$A$10=$E2)*($C$2:$C$10=1),$B$2:$B$10,"")
G2:G4G2=XLOOKUP(1,($A$2:$A$10=$E2)*($C$2:$C$10=2),$B$2:$B$10,"")
H2:H4H2=XLOOKUP(1,($A$2:$A$10=$E2)*($C$2:$C$10=3),$B$2:$B$10,"")
I2:I4I2=XLOOKUP(1,($A$2:$A$10=$E2)*($C$2:$C$10=4),$B$2:$B$10,"")
J2:J4J2=XLOOKUP(1,($A$2:$A$10=$E2)*($C$2:$C$10=5),$B$2:$B$10,"")
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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