i'm very new to vba and i was wondering if someone can help out!
i'm trying to have if statement go through each row if condition meets, store the other column value in array so i can retrieve the values later on.
[TABLE="width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]red[/TD]
[TD]yellow[/TD]
[TD]blue[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]red[/TD]
[TD]orange[/TD]
[TD]purple[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]yellow[/TD]
[TD]blue[/TD]
[TD]orange[/TD]
[/TR]
</tbody>[/TABLE]
so for example, i want the if statement to go through the first row and if it doesn't contain 'purple' then store the value '1' in array and do the same thing for row 2, 3, and so on. in the end the i want to list out the values that were stored in the array...
is there any way to do this simply on excel? or on vba possible?
thank you for your help!
i'm trying to have if statement go through each row if condition meets, store the other column value in array so i can retrieve the values later on.
[TABLE="width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]red[/TD]
[TD]yellow[/TD]
[TD]blue[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]red[/TD]
[TD]orange[/TD]
[TD]purple[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]yellow[/TD]
[TD]blue[/TD]
[TD]orange[/TD]
[/TR]
</tbody>[/TABLE]
so for example, i want the if statement to go through the first row and if it doesn't contain 'purple' then store the value '1' in array and do the same thing for row 2, 3, and so on. in the end the i want to list out the values that were stored in the array...
is there any way to do this simply on excel? or on vba possible?
thank you for your help!