I believe this is a formula issue and not a VBA issue.
On my XREF sheet there is a button to run a macro lookup. top box is input box.
Input number is any entry in Column A.
Results should be posted in the STX terminal Box.
so A75 should return C75.
It is working perfectly unless the Countif is 0.
Examples: Cell A75, Cell A442
Columns with formulas are columns B and G
Bookmarks