Hi all;
I was hoping someone could help me out on this. I was trying to come up with a macro that would do the following:
Imagine I have a column with "b" or "s" and a column with prices. I want for excel to search for the first letter it can, then match it with the FIRST opposite letter, and to take the difference between the two respective prices. Then continue to do this until all the rows are cleared.
Ie. 1 row is a "b" at 107 2nd row is "b" at 108, 3rd row "s" at 108, 4th row is "s" at 107.
Ideally the macro would match the "b" in row 1 with "s" at row 3 and return 1. Then match "b" in row 2 with row 4 and return -1.
Thanks for any help,
regards
I was hoping someone could help me out on this. I was trying to come up with a macro that would do the following:
Imagine I have a column with "b" or "s" and a column with prices. I want for excel to search for the first letter it can, then match it with the FIRST opposite letter, and to take the difference between the two respective prices. Then continue to do this until all the rows are cleared.
Ie. 1 row is a "b" at 107 2nd row is "b" at 108, 3rd row "s" at 108, 4th row is "s" at 107.
Ideally the macro would match the "b" in row 1 with "s" at row 3 and return 1. Then match "b" in row 2 with row 4 and return -1.
Thanks for any help,
regards

