Find max value (Leadtime) & Copy/Paste until next higher level in layered Bill Of Material

stemer2003

New Member
Joined
Sep 17, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi, sick of banging my head on this one. Hoping someone can help. I am okay with implementing VBA script, but not creating it, so I will take VBA or excel formula, whichever works best for you.

1) I need to find the maximum value for ? number of rows that is set by the structure level (Column A). In other words, if the value @ A4=2 then I need to know the maximum value in column C from A4 until the next 2 in column A but not including that row, so A8 in my example but don't include A9. A9 and the levels below it will roll up into A3 and A2.
2) Doubling up here, I also need to copy the data in a row (See E14 for example) to column (F) and copy it down until the next lower level level (F8 in my example).

begining.PNG



End.PNG


Any help would be greatly appreciated!!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Title is wrong. I am need to Copy/Paste until next lower level. See example above. Sorry....
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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