I can't see anything in your code snippet that reads A2 or does anything with the results. It's never going to work without you writing some code so show us the best of your "all types of combinations" and we can start from there. And a complete program please so we can see how the variables etc. are set up.
Steve