ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   User defined function (https://www.excelbanter.com/excel-programming/302326-user-defined-function.html)

Carlos Paez

User defined function
 
I am searching for a User defined function that works in Hierarquical
structures.

Hierarquical structures contents elements at a level (father) that are
divided in different elements at the next level (sons). The Work Break
Down Structure used in Project management is one of them, usually each
element has a identifying code like this:



CODE MH

1

1.1

1.1.1 30

1.1.1.1 10

1.1.1.2 20

1.1.2

1.1.3

1.2

1.3

1.4





If an element has an assigned value (for example man hours MH), the "father"
has value of the summation of its "sons" (30=10+20). Calculation is made
this way up to the top of the structure.



Is it possible to develop a function to calculate the sum of the variable
(MH) at any level? (provided that values at the lowest level are known)



Earl Kiosterud[_3_]

User defined function
 
Carlos,

The Pivot Table will give you group totals. It won't put them into your
existing structure.

--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"Carlos Paez" wrote in message
...
I am searching for a User defined function that works in Hierarquical
structures.

Hierarquical structures contents elements at a level (father) that are
divided in different elements at the next level (sons). The Work Break
Down Structure used in Project management is one of them, usually each
element has a identifying code like this:



CODE MH

1

1.1

1.1.1 30

1.1.1.1 10

1.1.1.2 20

1.1.2

1.1.3

1.2

1.3

1.4





If an element has an assigned value (for example man hours MH), the

"father"
has value of the summation of its "sons" (30=10+20). Calculation is made
this way up to the top of the structure.



Is it possible to develop a function to calculate the sum of the variable
(MH) at any level? (provided that values at the lowest level are known)






All times are GMT +1. The time now is 01:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com