メインコンテンツへスキップ

Googleスプレッドシートでvlookup機能を逆にする方法は?

Googleスプレッドシートでは、Vlookup関数を適用して、指定された基準に基づいて最初と左の一致する値を見つけて返すことができます。 ただし、最後に一致する値または左側の列の値を取得するために、Vlookup関数を逆にする必要がある場合があります。 Googleスプレッドシートでこの仕事にどのように対処できますか?

Vlookup関数を逆にして、数式で最後に一致する値を見つけます

式を使用して右から左の列の値を見つけるための逆Vlookup関数


Vlookup関数を逆にして、数式で最後に一致する値を見つけます

基準に基づいて最後に一致する値をvlookupして返すには、次の式を適用してください。

次の式を入力します。 = INDEX(A:B、MAX(filter(ROW(A:A)、A:A = D2))、2) 結果を返したい空白のセルに入れて、を押します 入力します キーを押すと、最後に一致した値が一度に表示されます。スクリーンショットを参照してください。

Note:上記の式では、 A:B vlookupするデータ範囲は、 A:A vlookupする基準を含む列データであり、 D2 に基づいて一致する値を返す基準です。 2 値を返す列番号です。


式を使用して右から左の列の値を見つけるための逆Vlookup関数

場合によっては、右から左にvlookupする必要がありますが、通常のvlookup関数は機能しません。簡単な式が役立ちます。次のようにしてください。

次の式を入力してください: =index(A1:A16,match(D2,B1:B16,0)) 結果を入力する空白のセルに入力し、を押します 入力します キーを押すと、左の列の一致する値が次のスクリーンショットのように返されます。

Note:上記の式では: A1:A16 列の範囲には、返したい一致する値が含まれています。 D2 基準のあるセルであり、 B1:B16 vlookupする基準を含む範囲です。

最高のオフィス生産性向上ツール

🤖 Kutools AI アシスタント: 以下に基づいてデータ分析に革命をもたらします。 インテリジェントな実行   |  コードを生成  |  カスタム数式の作成  |  データを分析してグラフを生成する  |  Kutools関数を呼び出す...
人気の機能: 重複を検索、強調表示、または識別する   |  空白行を削除する   |  データを失わずに列またはセルを結合する   |   数式なしのラウンド ...
スーパールックアップ: 複数の基準の VLookup    複数の値の VLookup  |   複数のシートにわたる VLookup   |   ファジールックアップ ....
詳細ドロップダウン リスト: ドロップダウンリストを素早く作成する   |  依存関係のドロップダウン リスト   |  複数選択のドロップダウンリスト ....
列マネージャー: 特定の数の列を追加する  |  列の移動  |  Toggle 非表示列の表示ステータス  |  範囲と列の比較 ...
注目の機能: グリッドフォーカス   |  デザインビュー   |   ビッグフォーミュラバー    ワークブックとシートマネージャー   |  リソースライブラリ (自動テキスト)   |  日付ピッカー   |  ワークシートを組み合わせる   |  セルの暗号化/復号化    リストごとにメールを送信する   |  スーパーフィルター   |   特殊フィルター (太字/斜体/取り消し線をフィルター...) ...
上位 15 のツールセット12 テキスト ツール (テキストを追加, 文字を削除する、...)   |   50+ チャート 種類 (ガントチャート、...)   |   40+ 実用的 (誕生日に基づいて年齢を計算する、...)   |   19 挿入 ツール (QRコードを挿入, パスから画像を挿入、...)   |   12 変換 ツール (数字から言葉へ, 通貨の換算、...)   |   7 マージ&スプリット ツール (高度な結合行, 分割セル、...)   |   ... もっと

Kutools for Excel で Excel スキルを強化し、これまでにない効率を体験してください。 Kutools for Excelは、生産性を向上させ、時間を節約するための300以上の高度な機能を提供します。  最も必要な機能を入手するにはここをクリックしてください...

説明


Officeタブは、タブ付きのインターフェイスをOfficeにもたらし、作​​業をはるかに簡単にします

  • Word、Excel、PowerPointでタブ付きの編集と読み取りを有効にする、パブリッシャー、アクセス、Visioおよびプロジェクト。
  • 新しいウィンドウではなく、同じウィンドウの新しいタブで複数のドキュメントを開いて作成します。
  • 生産性を 50% 向上させ、毎日何百回もマウス クリックを減らすことができます!
Comments (8)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How if we want to find the last non-empty matching value using this formula?
This comment was minimized by the moderator on the site
Hello, Ardi,To solve your problem, please apply the below formula:=ArrayFormula(MAX(IF($A$2:$A$13=D2,$B$2:$B$13,)))
Please try, hope it can help you!
This comment was minimized by the moderator on the site
For Reverse Vlookup function to find the last matching value with formula, is this possible between 2 sheets? Thank you
This comment was minimized by the moderator on the site
Hello, Rox,



To vlookup the last matching item between two sheets in Google sheets, please apply the following formula:

Note: Sheet3 is the sheet contains the original table data, and A2 is the cell in your current sheet that you want to get the result, please change them to your need.

=ArrayFormula(INDEX(Sheet3!A:B, MAX(filter(ROW(Sheet3!A:A), Sheet3!A:A=A2)),2))



Please try, hope it can help you!
This comment was minimized by the moderator on the site
bro it doesnt work...
This comment was minimized by the moderator on the site
Hello Georgius,Sorry to hear that. But I found an amazing formula which can really work. I noticed that only using Vlookup formula can't solve the problem. We need to combine the LOOKUP function with SORT function. 
Please see the two screenshots. In Sheet1, range B1:C8 is the original table data. In Sheet2, cell B2 (Apple) is the lookup value. Please copy the formula in a blank cell to get the result: =LOOKUP(B2, SORT(Sheet1!B1:B8), SORT(Sheet1!C1:C8,Sheet1!B1:B8,TRUE))It returns 88, the last matching value of B2 (Apple). Please have a try. Thanks!
Sincerely,Mandy
This comment was minimized by the moderator on the site
And is it possible to get the matching value before the last matching value? For ex., you have 200 matching values. Can you instantly get the 199th matching value? Thank you.
This comment was minimized by the moderator on the site
and is it possible to get the matching value before the last matching value? Ex. if you have 200 matching values. can you instantly get the 199th values? Thank you
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations