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

XNUMXつのセルを比較し、Excelで一致した場合に[はい]を返す方法は?

次のスクリーンショットに示すようにXNUMXつの列があるとします。次に、これらXNUMXつの列の同じ行のセルを比較し、完全に一致する場合は「はい」を返す必要があります。これに対処するにはどうすればよいですか。 この記事では、Excelですばやく実行する方法を紹介します。

XNUMXつのセルを比較し、式と一致する場合は「はい」を返します


XNUMXつのセルを比較し、式と一致する場合は「はい」を返します

次の数式は、XNUMXつのセルを連続してすばやく比較し、Excelで一致した場合に[はい]を返すのに役立ちます。 次のようにしてください。

1.空白のセルを選択し、数式をコピーします =IF(A2=B2,"Yes","") 数式バーに入力し、を押します 入力します キー。 スクリーンショットを参照してください:

2.最初の結果セルを選択し続け、塗りつぶしハンドルをドラッグして、以下のスクリーンショットに示すようにすべての結果を取得します。

Note:比較したXNUMXつのセルが一致しない場合に「いいえ」などの結果も表示する場合は、数式を次のように変更してください。 =IF(A2=B2,"Yes","No") 。 スクリーンショットを参照してください:


関連記事:

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

🤖 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 (10)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Buenas tardes, me paso por acá para preguntar si alguien conoce alguna manera en Excel para comparar 2 celdas de la siguiente manera:

Celda A1= LUIS CORDOBA FRANCISCO
Celda A2= FRANCISCO LUIS CORDOBA

como se observa, contiene las mismas palabras pero en diferente orden, si hago una función igual, va a decir que no coincide. Si alguien sabe como hacerlo se lo agradezco.
This comment was minimized by the moderator on the site
Hi CESAR PEREZ,

Sorry, in this case Excel will determine the two cells as a mismatch.
This comment was minimized by the moderator on the site
how to have vlookup find values and then remove found values from lookup table (or copy the rest of the values).

Why is that necessary, because the first group of people (that are found with vlookup) are the main focus of the research, and the rest are control group and we need the within the same sheet
This comment was minimized by the moderator on the site
Hi kecman,
Sorry I did not find a way to deal with this problem. I suggest you post the problem to the forum below to get help from other Excel enthusiasts.
https://www.extendoffice.com/forum/kutools-for-excel.html
This comment was minimized by the moderator on the site
What if you want to return a value if they are not the same instead of if they match?
This comment was minimized by the moderator on the site
Meghan Say,
To return a value if they are not the same, please apply the following formula.
=IF(A2<>B2,"Yes","")
This comment was minimized by the moderator on the site
can you return text comment if one cell is blank?
This comment was minimized by the moderator on the site
Hi Mark Walczak,
You cannot generate text comments with formulas. Sorry for the inconvenience.
This comment was minimized by the moderator on the site
How about with combination of highlights?
This comment was minimized by the moderator on the site
Hi,
Sorry I don't understand what you mean. Would you mind providing a screenshot of your data? Sorry for the inconvenience.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations