Help Populating a Table

TripletDad

Board Regular
Joined
Oct 19, 2010
Messages
121
OK - I need help creating / populating a table. I can talk it through, but can't figure out how to work the formula...

In the table below, the left half is the data I currently have. I need to wiggle it around to look like J10.

Basically, I need a formula that I can plug into every cell in Column J that says at the value to the immediate left in Column I. Take this value and look at Column E... then every time there is match, take the value in Column D, and find the next match. Put pipes between each value.

Basically, I am trying to get a row for each parent ID that has all the children in one cell delineated by pipes.
I am trying to get a row for each parent ID that has all the children in one cell delineated by pipes.

Any thoughts?


*DEFGHIJ
7Spreadsheet I have now****Spreadsheet I need to help to complete *(J10 is a sample)*
8*******
9SKU NumberParent ID***Parent ID*
108888110***1088881|88882|88883|88884|88885
118888210***20*
128888310***30*
138888410***40*
148888510***60*
158888620*****
168888720*****
178888820*****
188888920*****
198889020*****
208889130*****
218889230*****
228889330*****
238889430*****
248889530*****
258889640*****
268889740*****
278889860*****
288889960*****
298890060*****

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Assuming SKU in Column D, Parent ID in Column E, Parent ID recap in I10 going down.
In J10 type:
=IF(COLUMNS($J10:J10)>COUNTIF($E:$E,$I10),"",INDEX($D:$D,SMALL(IF($E$10:$E$29=$I10,ROW(E$10:E$29)),COLUMNS($J10:J10))))
Ctrl + Shift + Enter, not just enter.
Copy Down till needed and copy right till needed.
This would give:

HTML:
    Parent ID              
10  88881  88882  88883  88884  88885    
20  88886  88887  88888  88889  88890    
30  88891  88892  88893  88894  88895    
40  88896  88897          
60  88898  88899  88900

Would that work for you?
 
Upvote 0
You are welcome. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,002
Messages
6,122,652
Members
449,092
Latest member
peppernaut

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