FryGirl
Well-known Member
- Joined
- Nov 11, 2008
- Messages
- 1,368
- Office Version
- 365
- 2016
- Platform
- Windows
As you can see in column A, there is a level in this hierarchy structure. I would like to see a roll-up sum in columns H:K.
In columns D:G, I've already have the sum for the associated "Dept", but struggling with how to get the sums for any roll-ups past level 2.
For level 2 I used =IF(LEFT($B3,7)<>LEFT($B4,7),SUMPRODUCT(--(LEFT($B$4:$B$52,7)=LEFT($B4,7)),--(D$4:D$52)),"")
Struggling with row 6, 20, and 25. I've used Sumproduct because I'm putting this in VBA code and the workbook I'll be referencing is closed. This is to test the process/formula.
Unfourtunately because of work restrictions, I can only post the image.
In columns D:G, I've already have the sum for the associated "Dept", but struggling with how to get the sums for any roll-ups past level 2.
For level 2 I used =IF(LEFT($B3,7)<>LEFT($B4,7),SUMPRODUCT(--(LEFT($B$4:$B$52,7)=LEFT($B4,7)),--(D$4:D$52)),"")
Struggling with row 6, 20, and 25. I've used Sumproduct because I'm putting this in VBA code and the workbook I'll be referencing is closed. This is to test the process/formula.
Unfourtunately because of work restrictions, I can only post the image.