Forum Discussion
Having an issue with HLOOKUP
- Jan 09, 2018
I have to assume that TABLE1 is a named range and not an Excel table (i.e. ListBox). Were it an Excel table the reference as shown in H4 would have to be Table1[#All].
The INDIRECT function returns a reference to a cell, named range or object based on a string or cell reference input. You were almost there with the formula shown in H5. You just need to wrap your reference in an INDIRECT function:
=HLOOKUP(G3,INDIRECT("TABLE"&G2),2,FALSE)
I have to assume that TABLE1 is a named range and not an Excel table (i.e. ListBox). Were it an Excel table the reference as shown in H4 would have to be Table1[#All].
The INDIRECT function returns a reference to a cell, named range or object based on a string or cell reference input. You were almost there with the formula shown in H5. You just need to wrap your reference in an INDIRECT function:
=HLOOKUP(G3,INDIRECT("TABLE"&G2),2,FALSE)- Venkatesh VundelaJan 09, 2018Copper Contributor
Thank You so much
That worked like a charm