귀하의 요청은 간단한 VLOOKUP
함수로 처리 할 수 있습니다 :
1 단계 : Sheet2에서 copy 워크 시트 시작 부분에 C 열 (일명 "Chan"열)을 배치하십시오. 이제 시트 2 데이터
Chan ttc event
30 XYZ L
40 XYZ L
6 XYZ L
2 단계처럼 보일 것입니다 : Sheet1에있는 시트 1의 끝 (열 F이어야 함)에 열을 추가하고 ("TTC"로 이름이 당신이에서 조회 할 무엇 때문에 . Sheet1의
의 F 열에서 다음 함수를 입력
=VLOOKUP(E2,Sheet2!$A$2:$C$4,2,)
Afte : 시트 2 " 는 이제 Sheet1의 데이터는
Date ID Other Sub Chan ttc
10000 100 Repeat X 30
10000 101 Repeat X 40
3 단계처럼 보일 것입니다 R은 결과가 즉시 온다 것이 수식을 입력
Explanation: the Excel Vlookup function takes the following four arguments, which are
separated with a comma:
1st argument is the cell (E2) containing the value in Sheet 1 to look for
2nd argument contains the range of data to look into (which resides in Sheet2 and the
cell range A2 through C4 is where the data resides.
NOTE1: the VLOOKUP function requires the 1st column of Sheet2 to be the column
to look into
NOTE2: we don't need to include the 1st row containing the header
NOTE3: the dollar signs represent absolute cell range so that when you copy it
down to other rows below them, they don't change (i.e., your data range
in Sheet2 is always the same
3rd argument represents the column # in Sheet2 to return if there's a match.
NOTE: column 1 starts with column A of Sheet2
4th argument is left blank
4 단계 : 열 F 참고 아래 다른 모든 행이 공식을 복사 이후의 행이 공식
=VLOOKUP(F2,Sheet2!$A$2:$C$4,2,)
=VLOOKUP(G2,Sheet2!$A$2:$C$4,2,) if you have 3 rows in Sheet1
=VLOOKUP(H2,Sheet2!$A$2:$C$4,2,) if you have 4 rows in Sheet1
등을해야한다 ..
그래서이 질문과 거의 동일한 질문이 많이 있습니다. 아마도 검색 필드를 사용하여 둘러 볼 것을 권합니다. –
vlookup에 대한 유용한 사용 예 –