次のような Excel シートがあります。
|A B C D
-----------------------------------------------------------------------------------
1 |ID PARENTID VALUE RESOLVED VALUE (how to generate this?)
===================================================================================
2 |0 0 /root /root
3 |1 0 /one /root/one
4 |2 0 /two /root/two
5 |3 0 /three /root/three
6 |4 3 /child-one-of-three /root/three/child-one-of-three
7 |5 3 /child-two-of-three /root/three/child-two-of-three
各行にはID
と がありPARENTID
ます。RESOLVED VALUE
各行の を再帰的に追加して、最後の列のコンテンツを生成したいと考えていますVALUE
。
Excelでこれを行うにはどうすればよいですか?