jhren has used a Named Range for the VLOOKUP.
In its simplest form, the formula in D3 would look like: =VLOOKUP(A3,SAPs!$A:$B,2,FALSE)
To take jhren's Named Ranges one stage further, you could have a Dynamic Named Range. Then you can add entries to the table and not need to change the range definition.
Define oil as:
Formula:
=SAPs!$A$1:INDEX(SAPs!$A:$A,COUNTA(SAPs!$A:$A))
and oil_n_SAP as:
Formula:
=SAPs!$A$1:INDEX(SAPs!$B:$B,COUNTA(SAPs!$A:$A))
Or, better, add headers and convert the list to a table. That gives you the capability to sort and filter the list.
If you add headers, the Dynamic Named Ranges would become:
oil:
Formula:
=SAPs!$A$1:INDEX(SAPs!$A:$A,COUNTA(SAPs!$A:$A))
oil_n_SAP:
Formula:
=SAPs!$A$1:INDEX(SAPs!$B:$B,COUNTA(SAPs!$A:$A))
See the updated workbook.
Regards, TMS
Bookmarks