1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

現場でよく使うVLOOKUP

Last updated at Posted at 2021-11-11

シート1:検索ワードが入ったセル
シート2:検索対象の列と値取得したい列(列と書いているが、任意の行番号はつける)

Vlookup関数
=IFNA(VLOOKUP(検索ワードが入ったセル,検索列を先頭:値取得したい列,COLUMN(値取得したい列)-COLUMN(検索列)+1,FALSE)&"","")

※VLOOKUPは3つ目の引数の指定が面倒くさいのだけれど、COLUMNを利用すると便利!

シート1

行/列 A B
1 品名 いくら?
2 りんご =IFNA(VLOOKUP(A2,'シート2'!A:C,COLUMN(C2)-COLUMN(A2)+1,FALSE),"")

行/列 A B
1 品名 いくら?
2 りんご 350

シート2

行/列 A B C D
1 品名 個数 価格 D
2 バナナ 5 100
3 みかん 10 398
4 りんご 3 350
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?