Hi all,
I need help to calculate commission based on 3 levels. I have a list of database with the date they join, their identification No. (ID), name, amount, the ID and person who introduce them.
Example;
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Date Join[/TD]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Amount $[/TD]
[TD]Introducer ID[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]01-10-12[/TD]
[TD]A0001[/TD]
[TD]Jack[/TD]
[TD]1,000[/TD]
[TD]-[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]03-10-12[/TD]
[TD]A0002[/TD]
[TD]John[/TD]
[TD]1,000[/TD]
[TD]A0001[/TD]
[TD]Jack[/TD]
[/TR]
[TR]
[TD]03-10-12[/TD]
[TD]A0003[/TD]
[TD]Alex[/TD]
[TD]1,000[/TD]
[TD]A0001[/TD]
[TD]Jack[/TD]
[/TR]
[TR]
[TD]04-10-12[/TD]
[TD]A0004[/TD]
[TD]Murphy[/TD]
[TD]1,000[/TD]
[TD]A0002[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]04-10-12[/TD]
[TD]A0005[/TD]
[TD]Douglas[/TD]
[TD]1,000[/TD]
[TD]A0002[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]05-10-12[/TD]
[TD]A0006[/TD]
[TD]Vincent[/TD]
[TD]1,000[/TD]
[TD]A0004[/TD]
[TD]Murphy[/TD]
[/TR]
[TR]
[TD]05-10-12[/TD]
[TD]A0007[/TD]
[TD]Raphael[/TD]
[TD]1,000[/TD]
[TD]A0004[/TD]
[TD]Murphy[/TD]
[/TR]
[TR]
[TD]06-10-12[/TD]
[TD]A0008[/TD]
[TD]Kate[/TD]
[TD]1,000[/TD]
[TD]A0006[/TD]
[TD]Vincent[/TD]
[/TR]
[TR]
[TD]07-10-12[/TD]
[TD]A0009[/TD]
[TD]Cindy[/TD]
[TD]1,000[/TD]
[TD]A0008[/TD]
[TD]Kate[/TD]
[/TR]
</tbody>[/TABLE]
Based on the above data, Jack (A0001) recruit John (A0002) and Alex (A0003). Jack suppose to receive a commission of $ 100 for each person he recruited (2 x $ 100 = $ 200). This is level 1.
John (A0002) then recruit Murphy (A0004) and Douglas (A0005). Jack (A0001) will receive $ 50 for each person John (A0002) recruited. (2 x $ 50 = $ 100). This is level 2 (aka overriding).
Murphy (A0004) then recruit Vincent (A0006) and Raphael (A0007). Jack (A0001) will receive $ 20 for each person Murphy (A0004) recruited. (2 x $ 20 = $ 40). This is level 3 (aka overriding).
How do I calculate the above by using VBA or excel formulae? Any help would be highly appreciated.
Thank you in advance.
I need help to calculate commission based on 3 levels. I have a list of database with the date they join, their identification No. (ID), name, amount, the ID and person who introduce them.
Example;
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Date Join[/TD]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Amount $[/TD]
[TD]Introducer ID[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]01-10-12[/TD]
[TD]A0001[/TD]
[TD]Jack[/TD]
[TD]1,000[/TD]
[TD]-[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]03-10-12[/TD]
[TD]A0002[/TD]
[TD]John[/TD]
[TD]1,000[/TD]
[TD]A0001[/TD]
[TD]Jack[/TD]
[/TR]
[TR]
[TD]03-10-12[/TD]
[TD]A0003[/TD]
[TD]Alex[/TD]
[TD]1,000[/TD]
[TD]A0001[/TD]
[TD]Jack[/TD]
[/TR]
[TR]
[TD]04-10-12[/TD]
[TD]A0004[/TD]
[TD]Murphy[/TD]
[TD]1,000[/TD]
[TD]A0002[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]04-10-12[/TD]
[TD]A0005[/TD]
[TD]Douglas[/TD]
[TD]1,000[/TD]
[TD]A0002[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]05-10-12[/TD]
[TD]A0006[/TD]
[TD]Vincent[/TD]
[TD]1,000[/TD]
[TD]A0004[/TD]
[TD]Murphy[/TD]
[/TR]
[TR]
[TD]05-10-12[/TD]
[TD]A0007[/TD]
[TD]Raphael[/TD]
[TD]1,000[/TD]
[TD]A0004[/TD]
[TD]Murphy[/TD]
[/TR]
[TR]
[TD]06-10-12[/TD]
[TD]A0008[/TD]
[TD]Kate[/TD]
[TD]1,000[/TD]
[TD]A0006[/TD]
[TD]Vincent[/TD]
[/TR]
[TR]
[TD]07-10-12[/TD]
[TD]A0009[/TD]
[TD]Cindy[/TD]
[TD]1,000[/TD]
[TD]A0008[/TD]
[TD]Kate[/TD]
[/TR]
</tbody>[/TABLE]
Based on the above data, Jack (A0001) recruit John (A0002) and Alex (A0003). Jack suppose to receive a commission of $ 100 for each person he recruited (2 x $ 100 = $ 200). This is level 1.
John (A0002) then recruit Murphy (A0004) and Douglas (A0005). Jack (A0001) will receive $ 50 for each person John (A0002) recruited. (2 x $ 50 = $ 100). This is level 2 (aka overriding).
Murphy (A0004) then recruit Vincent (A0006) and Raphael (A0007). Jack (A0001) will receive $ 20 for each person Murphy (A0004) recruited. (2 x $ 20 = $ 40). This is level 3 (aka overriding).
How do I calculate the above by using VBA or excel formulae? Any help would be highly appreciated.
Thank you in advance.