VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
자료를 맵핑할 때 특정한 key로 값을 찾을 때 사용되는 함수이다.
난 보통 일적으로 db쿼리를 사용해서 자료를 맞춘다.
Select a.key, a.data, b.data2 from
(Select 1 as key, ‘test1’ as data from dual
Union all
Select 2 as key, ‘test2’ as data from dual) a,
(Select 1 as key, ‘test1자료’ as data2 from dual
Union all
Select 2 as key, ‘test2자료’ as data2 from dual) b
Where a.key = b.key
위 쿼리의 모습과 같은 내용을 엑셀로도 할 수 있는데 그게 vlookup 이다
아래 url을 참고했고.
excel자체의 도움말에서 찾아도 된다.
==> table_array선택후 +F4로 데이터를 고정시켜야 함
reference url : https://support.office.com/en-us/article/vlookup-function-0bbc8083-26fe-4963-8ab8-93a18ad188a1