Hoping there's a MrExceler out there who can help me. I am trying to figure out how to lookup information in a filtered table, returning only visible values.
For example, let's say that the data I want to use for the lookup is in cell A1, the lookup data is in cells A3:A10, and the data I want to return is in cells B3:B10. A normal lookup function would be Vlookup(A1,A3:B10,2,false). But if I then autofilter the data in A3:B10 such that some rows are hidden, I only want the vlookup function to return a value if the data from A1 is also in a VISIBLE cell in A3:A10, otherwise it should return an error.
I've done a bunch of searching, but can't find any solution. I would prefer to avoid custom functions or other use of VBA if possible. All help greatly appreciated. Thanks.
For example, let's say that the data I want to use for the lookup is in cell A1, the lookup data is in cells A3:A10, and the data I want to return is in cells B3:B10. A normal lookup function would be Vlookup(A1,A3:B10,2,false). But if I then autofilter the data in A3:B10 such that some rows are hidden, I only want the vlookup function to return a value if the data from A1 is also in a VISIBLE cell in A3:A10, otherwise it should return an error.
I've done a bunch of searching, but can't find any solution. I would prefer to avoid custom functions or other use of VBA if possible. All help greatly appreciated. Thanks.