Recursive data extraction

feaugcruz

New Member
Joined
May 27, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello guys.
I'm analyzing some unit price compositions and I need to extract labor hours, equipment hours, and materials.
Some compositions have only these 3 items, but most of them have auxiliary compositions, that sometimes have other auxiliary compositions and the process becomes recursive.
For example:
_ In 'column B' I have the code of the main composition;
_ In 'column C', I have a code for a labor, material, equipment, or other composition;
_ In 'column D', the quantity;
_ 'Column F", the types (A - equipment, B - labor; C - material, D or E - auxiliary composition).

My objective is to create a list where I have only the "main" code and the items A, B, and C. For this, the items D and E must be multiplied by the quantity from the main composition.
I thought of using 'lambda, filter, map, and others' because I know they support recursivity, but I'm not entirely familiar with them yet.
Can somebody help me?

Sorry for my English, it's not my main language.
 

Attachments

  • Extraction.png
    Extraction.png
    72.9 KB · Views: 18

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi there,
welcome to the forum. I have a hard time trying to understand what you're trying to achieve, but my first idea to put your data into a pivot table. Is that something you've tried? Next, if you look for example at line 10376: it shows column B/MAIN:0903845 , column C/AUX: E9524, column D: 1,0000 and column E: h (probably hours). What is your ideal outcome? The total of hours for E9524? Or is there another table to multiply with ("the quantity of the main composition")?
Cheers,
Koen
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,139
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