I have a excel Where i Have 6 different names as variables . The varibles are dynamic . They end up in different rows everytime i do this function . Can someone please help me on how to go about Looping through these names . Finding out which name is which . then performing a different calculation depending on what the "name " is . The names always end up in Column A . They just end up in different rows . So i would like to know how to do a function /macro that looks like this ....... If name = Anna d1=b1*c1 . If name = Harry d1 = b1+c1 ....... Thank you guys . I am new to excel
Code:
[TABLE="width: 604"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Name
[/TD]
[TD]Number
[/TD]
[TD]Number
[/TD]
[TD="colspan: 2"]
[/TD]
[/TR]
[TR]
[TD]Anna
[/TD]
[TD]36.476833
[/TD]
[TD]7.96618557
[/TD]
[TD="colspan: 2"]if name = Anna Number "times Number"
[/TD]
[/TR]
[TR]
[TD]Eric
[/TD]
[TD]17.451147
[/TD]
[TD]5.80342102
[/TD]
[TD="colspan: 2"]if name = Eric Number = Number
[/TD]
[/TR]
[TR]
[TD]Ronald
[/TD]
[TD]21.125067
[/TD]
[TD]6.45224857
[/TD]
[TD]If name = Ronald Number "divided"By Number
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Roxanne
[/TD]
[TD]12.071469
[/TD]
[TD]2.55927372
[/TD]
[TD="colspan: 2"]
[/TD]
[/TR]
[TR]
[TD]Harry
[/TD]
[TD]0
[/TD]
[TD]30.1705704
[/TD]
[TD="colspan: 2"]
[/TD]
[/TR]
[TR]
[TD]Vallerie
[/TD]
[TD]11.67783
[/TD]
[TD]0
[/TD]
[TD="colspan: 2"]
[/TD]
[/TR]
[TR]
[TD]Wally
[/TD]
[TD]0
[/TD]
[TD]6.81271219
[/TD]
[TD="colspan: 2"]
[/TD]
[/TR]
</tbody>[/TABLE]