Forum Discussion
calijim123
May 23, 2019Copper Contributor
VLOOKUP when col_index_num is unknown, select col_index_num using a header string
I have very large source table_arrays and the cols are not always in the same position.
Can I select the "col_index_num" using a string instead of a col number?
Thanks.
=VLOOKUP(lookup_value,table_array,col_index_num,false)
=VLOOKUP(lookup value, range containing the lookup value, the column number in the range containing the return value, optionally specify TRUE for approximate match or FALSE for an exact match).
3 Replies
- TwifooSilver ContributorYou can use MATCH to return the col_index_num argument of VLOOKUP.
- calijim123Copper Contributor
- TwifooSilver ContributorI’m glad to know that worked.