I have excel pulling information from an ODBC database in one worksheet "Data" and am attempting to pull data from it using INDEX MATCH on another worksheet "Price Book Data". The INDEX MATCH formula I made is not working when I type the numbers into the non-data-connection worksheet, however if I cut and paste the exact cell I am attempting to Match from the data-connection worksheet the formula works correctly.
I tried re-formatting the cell in the non-data-connection worksheet to both text and number and neither worked for a successful match. I tested for the vartype with vba and the non-data-connection vartype is returning "5" ("Double-precision floating-point number") and the data-connection worksheet is returning "8" ("String" - both cells are UPCs). My guess is that INDEX MATCH is not working because of that discrepancy, but I changed the non-data-connection cell to both number AND text and neither worked and don't know how to proceed.
I also got the non-vba cell formatting and made sure both cells matched "G" ("General" formatting), even so it still doesn't work.
The question is, how do I reformat the non-data-connection cell appropriately so that the INDEX MATCH works?
