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

Excelのセル値に基づいて画像または画像をセルに動的に挿入するにはどうすればよいですか?

多くの場合、セルの値に基づいて画像をセルに動的に挿入する必要があります。 たとえば、指定したセルに入力したさまざまな値を使用して、対応する画像を動的に変更する必要があります。 この記事では、それを実現する方法を紹介します。

セルに入力した値に基づいて画像を動的に挿入および変更します
素晴らしいツールを使用して、セル値に基づいて画像を動的に変更します


セルに入力した値に基づいて画像を動的に挿入および変更します

以下のスクリーンショットに示すように、セルG2に入力した値に基づいて、対応する画像を動的に表示します。 セルG2でバナナに入ると、バナナの画像がセルH2に表示されます。 セルG2にパイナップルを入力すると、セルH2の画像が対応するパイナップル画像に変わります。

1.ワークシートにXNUMXつの列、最初の列範囲を作成します A2:A4 写真の名前とXNUMX番目の列の範囲が含まれています B2:B4 対応する写真が含まれています。 示されているスクリーンショットを参照してください。

2。 クリック > 名前管理者.

3。 の中に 名前管理者 ダイアログボックスで 新作 ボタン。 そうして 名前の編集 ダイアログがポップアップし、次のように入力します プロダクト 名前 ボックスに、以下の式を入力します を参照する ボックスをクリックし、 OK ボタン。 スクリーンショットを参照してください:

=INDIRECT(ADDRESS(2-1+MATCH(Sheet2!$G$2, Sheet2!$A$2:$A$4, 0), 2))

ノート:

1)。 数式では、最初の数字 2 最初の製品の行番号です。 この場合、私の最初の製品名は2行目にあります。
2)。 Sheet2!$ G $ 2 対応する画像を動的に変更するセルです。
3)。 Sheet2!$ A $ 2:$ A $ 4 現在のワークシートの製品名のリストです。
4)。 最後の番号 2 画像を含む列番号です。

上記の式で必要に応じて変更できます。

4。 それを閉めて 名前管理者 ダイアログボックス。

5. [画像]列で画像を選択し、を押します Ctrlキー + C 同時にキーを押してコピーします。 次に、それを現在のワークシートの新しい場所に貼り付けます。 ここでは、リンゴの写真をコピーしてセルH2に配置します。

6.セルG2にAppleなどの果物の名前を入力し、貼り付けた画像をクリックして選択し、数式を入力します =製品数式バー次に、 入力します キー。 スクリーンショットを参照してください:

これ以降、セルG2でフルーツ名に変更すると、セルH2の画像が動的に対応する画像に変わります。

以下のスクリーンショットに示すように、セルG2にすべての果物の名前を含むドロップダウンリストを作成することで、果物の名前をすばやく選択できます。


素晴らしいツールを使用して、セルの値に基づいて関連するセルに画像を簡単に挿入できます

多くのExcel初心者にとって、上記の方法は扱いが簡単ではありません。 ここでお勧めします 画像のドロップダウンリスト の特徴 Kutools for Excel。 この機能を使用すると、値と画像が完全に一致する動的なドロップダウンリストを簡単に作成できます。

申請する前に Kutools for Excelについては 最初にダウンロードしてインストールします.

次の手順を実行して、Kutools for Excelの画像ドロップダウンリスト機能を適用し、Excelで動的な画像ドロップダウンリストを作成します。

1.まず、以下のスクリーンショットに示すように、値とそれに対応する画像を個別に含むXNUMXつの列を作成する必要があります。

2。 クリック クツール > インポート・エクスポート > インポート画像を一致させる.

3。 の中に 画像のドロップダウンリスト ダイアログボックスでは、次のように構成する必要があります。

3.1)上記の手順1で値と画像の列を作成した場合は、この手順を無視してください。
3.2)で Step2 セクションで、作成したXNUMXつの列を選択します。
3.3)で Step3 セクションで、ダイナミック画像ドロップダウンリストを出力する範囲を選択します。
注: In Step3 セクションでは、結果を配置するためにXNUMXつの列を選択する必要があります。 XNUMXつの列は値用で、もうXNUMXつの列は対応する画像用です。
3.4)をクリック [OK]をクリックします。

4.次に、 Kutools for Excel ダイアログボックスがポップアップして、プロセス中にいくつかの中間データが作成されることを通知します。をクリックします。 有り 続行します。

次に、動的な画像のドロップダウンリストが作成されます。 ドロップダウンリストで選択した項目に基づいて、画像が動的に変化します。

クリックして この機能についてもっと知る...

  このユーティリティの無料トライアル(30日)が必要な場合は、 クリックしてダウンロードしてください、次に、上記の手順に従って操作を適用します。


関連記事:

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

🤖 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 (15)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Can this be paired up with excel Queries?
This comment was minimized by the moderator on the site
Hi Maxem,
The methods can't be paired up with Excel queries, and I have not been able to fix the problem. Sorry for the inconvenience.
This comment was minimized by the moderator on the site
What if the cell value we take to change the picture has more than one word. Like a company name and logo
This comment was minimized by the moderator on the site
How can I, if no value is entered, reset to a defaut image (or nothing)?Thanks
This comment was minimized by the moderator on the site
Hi Admin
Thanks for sharing very good article. Could you please tell me, In Ist procedure step 6, I want to enter value for G2 through a user form. Is it possible? Please help
This comment was minimized by the moderator on the site
Good day,
Sorry, the user form does not take into consideration in this case.
This comment was minimized by the moderator on the site
Could this be used instead of conditional formatting icon sets?
I need a green down arrow and red up arrow based on percentages from other cells.


If so, how would I go about completing this?

I'm needing negative percentages (<0%) to show a red up arrow,
Neutral percentages (=0%) to show a yellow bracket. (can already be done with conditional formatting),
Positive percentages (>=0.001%) to show a green down arrow.



How would I achieve this?
This comment was minimized by the moderator on the site
Dear Jason,
Sorry i don't have methd for this question.
This comment was minimized by the moderator on the site
Looks really great! But I need it to auto fill a cell (B1) with a picture when I type something in cell A1. Is this possible? and can we change max file count in folder? Have one with 15.000 pics, max is 10000.

Thanks! Love to hear from you@!
This comment was minimized by the moderator on the site
Guido, the problem you mentioned cannot be solved. Sorry about that!
This comment was minimized by the moderator on the site
Can you please tell, how can this be looped for over 600 rows. Here in this tutorial, it changes picture based on only one cell, I need the same for multiple cells, do I need to make separate "Product" lists for that in "Name Manager", because that lists is over 600.
This comment was minimized by the moderator on the site
Dear Nick,

Sorry to tell you that this method can't be looped for multiple cells. You need to specify =Product formula to all needed pictures one by one manually in your case.
Thank you for your comment!
This comment was minimized by the moderator on the site
This is awesome, is there a way of creating a lookup formula on another worksheet that will look up the name and return the picture into the selected cell?
This comment was minimized by the moderator on the site
Hey Nick did you get how to do it, when you want to have the list of the pictures on other sheet?
This comment was minimized by the moderator on the site
Great article, really helpful for something I'm trying to do. How would you change the formula in step 3 if all of the images and names were on another worksheet? Many thanks.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations