Below are the conditions and the desired return value if conditions are met:
My table looks like
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Status[/TD]
[TD]Type[/TD]
[TD]GM$[/TD]
[TD]GM%[/TD]
[TD]Dues[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Here are the conditions. These conditions only apply if GM$ & GM% are above $25 or 25%. If GM% & GM$ aren't above = or more than 25 the cell should return $0 in dues.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Status[/TD]
[TD]Type[/TD]
[TD]Dues[/TD]
[/TR]
[TR]
[TD]Pending[/TD]
[TD]Emp[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]Term<30[/TD]
[TD]Emp[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Term<60[/TD]
[TD]Emp[/TD]
[TD]1333[/TD]
[/TR]
[TR]
[TD]Term<90[/TD]
[TD]Emp[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]Pending[/TD]
[TD]C2C[/TD]
[TD]1500[/TD]
[/TR]
[TR]
[TD]Term<30[/TD]
[TD]C2C[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Term<60[/TD]
[TD]C2C[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD]Term<90[/TD]
[TD]C2C[/TD]
[TD]1000[/TD]
[/TR]
</tbody>[/TABLE]
Can I use VBA to assess whether these conditions are met and return the desired value? Example: assuming GM$ & GM% are met at 25 then if status is = Term<60 and Type = Emp then I would like the cell to return $1,333 value. How can I make this possible?
Please help with formula. Thank you!
My table looks like
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Status[/TD]
[TD]Type[/TD]
[TD]GM$[/TD]
[TD]GM%[/TD]
[TD]Dues[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Here are the conditions. These conditions only apply if GM$ & GM% are above $25 or 25%. If GM% & GM$ aren't above = or more than 25 the cell should return $0 in dues.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Status[/TD]
[TD]Type[/TD]
[TD]Dues[/TD]
[/TR]
[TR]
[TD]Pending[/TD]
[TD]Emp[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]Term<30[/TD]
[TD]Emp[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Term<60[/TD]
[TD]Emp[/TD]
[TD]1333[/TD]
[/TR]
[TR]
[TD]Term<90[/TD]
[TD]Emp[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]Pending[/TD]
[TD]C2C[/TD]
[TD]1500[/TD]
[/TR]
[TR]
[TD]Term<30[/TD]
[TD]C2C[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Term<60[/TD]
[TD]C2C[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD]Term<90[/TD]
[TD]C2C[/TD]
[TD]1000[/TD]
[/TR]
</tbody>[/TABLE]
Can I use VBA to assess whether these conditions are met and return the desired value? Example: assuming GM$ & GM% are met at 25 then if status is = Term<60 and Type = Emp then I would like the cell to return $1,333 value. How can I make this possible?
Please help with formula. Thank you!