Parent/Child data organization

BJLMHV

New Member
Joined
Dec 16, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I am trying to organize data for an upload. The upload requires columns showing "Parent ID" , "Child ID" , "Quantity" , "Parent Rev" , "Child Rev". Currently when exporting the data to be uploaded the column structure is " Level" , "ID" , "Desc" , "Quantity" , ........ , "Rev". I need a way to reorganize the downloaded data into the format for upload. I will attach pictures of both Starting format and completed format for example.


This is what the initial data download looks like.
1734375048813.png



This is what i need the final upload to look like.
1734375096349.png



The levels I am seeing can go down to 15 meaning there can be up to 15 layers of parent/child ID's.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
So there are fewer fields (header name, or columns) in the file to upload than those in the file downloaded?
And from the two pictures shown, the values in "Quantity" field equals values in field "Qty Per", if the Unit of Measurement is "EA", correct? What if "U/M" is "IN"?
Are "Parent Rev" and "Child Rev" the same? Where is the "Parent Rev" coming form?

And most importantly, the parent/child relationship is based on "Level", correct? Level 0 is the parent of level 1, and level 3 is the child of level 2, correct?

This task is trivial to accomplish, but can not be done (correctly) without those details explicitly specified. It would be best if you've written some code already and post them here.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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