Hello All,
I have currently have trouble developing a VBA/macro that would do a search in a data range within a table and once search it will populate another range with the information I need.
Below I have an example of what I am trying to do but can't seem to wrap my head around
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]Status[/TD]
[TD]Results[/TD]
[/TR]
[TR]
[TD]Sold[/TD]
[TD]Profit[/TD]
[/TR]
[TR]
[TD]On Sale[/TD]
[TD]Loss[/TD]
[/TR]
[TR]
[TD]Sold Today[/TD]
[TD]Profit[/TD]
[/TR]
[TR]
[TD]Sold Yesterday[/TD]
[TD]Profit[/TD]
[/TR]
[TR]
[TD]Inventory[/TD]
[TD]Stable[/TD]
[/TR]
</tbody>[/TABLE]
The if statement would be for if the range in Status had the word "Sold" it will output "Profit" in the Result range, else it would look for "On Sale" which would output "Loss". So on and so on until the if statement were to end.
Thank you so much in advance for the help and assistance. Feel free to post if I am coming across as unclear.
I have currently have trouble developing a VBA/macro that would do a search in a data range within a table and once search it will populate another range with the information I need.
Below I have an example of what I am trying to do but can't seem to wrap my head around
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]Status[/TD]
[TD]Results[/TD]
[/TR]
[TR]
[TD]Sold[/TD]
[TD]Profit[/TD]
[/TR]
[TR]
[TD]On Sale[/TD]
[TD]Loss[/TD]
[/TR]
[TR]
[TD]Sold Today[/TD]
[TD]Profit[/TD]
[/TR]
[TR]
[TD]Sold Yesterday[/TD]
[TD]Profit[/TD]
[/TR]
[TR]
[TD]Inventory[/TD]
[TD]Stable[/TD]
[/TR]
</tbody>[/TABLE]
The if statement would be for if the range in Status had the word "Sold" it will output "Profit" in the Result range, else it would look for "On Sale" which would output "Loss". So on and so on until the if statement were to end.
Thank you so much in advance for the help and assistance. Feel free to post if I am coming across as unclear.