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

セルにExcelの特定のテキストが含まれている場合、別のセルに値を返す方法は?

以下に示す例のように、セルE6に値「Yes」が含まれている場合、セルF6には値「approve」が自動的に入力されます。 E6で「はい」を「いいえ」または「中立」に変更すると、F6の値はすぐに「拒否」または「再検討」に変更されます。 それを達成するためにどのようにできますか? この記事では、簡単に解決できる便利な方法をいくつか紹介します。


セルに数式を含む特定のテキストが含まれている場合の別のセルの戻り値

セルに特定のテキストのみが含まれている場合に別のセルに値を返すには、次の数式を試してください。 たとえば、B5に「はい」が含まれている場合は、D5で「承認」を返します。それ以外の場合は、「資格なし」を返します。 次のようにしてください.

D5を選択し、以下の式をコピーして、 入力します キー。 スクリーンショットを参照してください:

式: セルに特定のテキストが含まれている場合の別のセルの戻り値

= IF(ISNUMBER(SEARCH( "有り",D5))、」承認"、"資格なし")

注意:

1.式では、「有り" D5"承認する"と"資格なし」は、セルB5に「はい」というテキストが含まれている場合、指定されたセルに「承認」というテキストが入力されることを示します。それ以外の場合、「修飾なし」が入力されます。 必要に応じて変更できます。

2.指定したセル値に基づいて別のセル(K8やK9など)から値を返すには、次の数式を使用してください。

= IF(ISNUMBER(SEARCH( "有り",D5))、K8,K9)

特定の列のセル値に基づいて、選択範囲内の行全体または行全体を簡単に選択できます。

  特定のセルを選択 の有用性 Kutools for Excel Excelの特定の列の特定のセル値に基づいて、選択範囲内の行全体または行全体をすばやく選択するのに役立ちます。  今すぐKutoolsfor Excelの全機能を60日間無料でダウンロードしてください!


セルに数式を含む異なるテキストが含まれている場合は、別のセルに値を返します

このセクションでは、セルにExcelで異なるテキストが含まれている場合に、別のセルに値を返すための数式を示します。

1つの列に別々に配置された特定の値と戻り値を使用してテーブルを作成する必要があります。 スクリーンショットを参照してください:

2.値を返すための空白のセルを選択し、以下の数式を入力して、を押します。 入力します 結果を得るための鍵。 スクリーンショットを参照してください:

式: セルに異なるテキストが含まれている場合は、別のセルに値を返します

= VLOOKUP(E6,B5:C7,2、FALSE)

注意:

式中、 E6 セルには、値を返す特定の値が含まれています。 B5:C7 特定の値と戻り値を含む列範囲です。 2 numberは、テーブル範囲のXNUMX番目の列にある戻り値を意味します。

今後、E6の値を特定の値に変更すると、対応する値がF6にすぐに返されます。


セルに異なるテキストが含まれている場合、別のセルに値を簡単に返す

実際には、上記の問題をより簡単な方法で解決できます。 ザ・ リストで値を探す の有用性 Kutools for Excel 数式を覚えていなくても、数回クリックするだけでそれを達成するのに役立ちます。

1.上記の方法と同じように、XNUMXつの列に別々に配置される特定の値と戻り値を使用してテーブルを作成する必要もあります。

2.空白のセルを選択して結果を出力し(ここではF6を選択)、[ クツール > フォーミュラヘルパー > フォーミュラヘルパー。 スクリーンショットを参照してください:

3。 の中に フォーミュラヘルパー ダイアログボックスで、次のように構成してください。

  • 3.1で 式を選択してください ボックスで、検索して選択します リストで値を探す;
    ヒント:確認できます フィルタ ボックスで、テキストボックスに特定の単語を入力して、数式をすばやくフィルタリングします。
  • 3.2で テーブル・アレイ ボックスで、手順1で作成したヘッダーのないテーブルを選択します。
  • 3.2で 参照値 ボックスで、値を返す特定の値が含まれているセルを選択します。
  • 3.3で コラム ボックスで、一致した値を返す列を指定します。 または、必要に応じて列番号をテキストボックスに直接入力することもできます。
  • 3.4 OK ボタン。 スクリーンショットを参照してください:

今後、E6の値を特定の値に変更すると、対応する値がF6にすぐに返されます。 以下の結果を参照してください。

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


Excel用Kutools- あなたが常に前もって仕事を終えて、人生を楽しむためにより多くの時間を持っているのを助けます
仕事に追いついたり、自分や家族のために過ごす時間がないことはよくありますか?  Kutools for Excel あなたが対処するのを助けることができます 視聴者の38%が Excel パズルで作業効率が 80% 向上し、家族の世話をして人生を楽しむ時間が増えます。
300 の作業シナリオに対応する 1500 の高度なツールにより、作業がこれまでになく簡単になります。
数式やVBAコードを覚える必要がなくなったので、これからは脳を休ませてください。
複雑で繰り返される操作は、数秒でXNUMX回の処理で実行できます。
毎日何千ものキーボードとマウスの操作を減らし、今は職業病に別れを告げましょう。
3分でExcelのエキスパートになり、すぐに認知され、昇給のプロモーションを手伝ってください。
110,000万人の非常に効果的な人々と300以上の世界的に有名な企業の選択。
あなたの$ 39.0を他の人の$ 4000.0以上のトレーニングに値するようにしてください。
全機能を 30 日間無料でお試しいただけます。 理由のない60日間の返金保証。

Comments (98)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
What would I need to add to this formula (Method A) to get a third BLANK option? And where would it go?
Example:
If the cell I'm searching is blank, I would like it to return no value in the other cell. I do not want the "if false" value to populate.
This comment was minimized by the moderator on the site
i want a cell to automatically choose a number based on the drop-down option in the cell before, e.g drop-down, half meal, full meal, if I select half meal drop-down, the next cell should show 50% while the full meal drop-down will reflect 100%. please help
This comment was minimized by the moderator on the site
Hi Josh,
In the cell where you want to output the percentage, enter the following formula and press the Enter key. Hope I can help.
=IF(C15="half meal", "50%", IF(C15="full meal", "100%", ""))
This comment was minimized by the moderator on the site
Is it possible to return a certain value in 1 column based on another?


What I currently have: On a differnt tab (same worksheet):
Column A Column B
Location Name Dept Location Name Location Code
Miami 4455 Miami 123


What I want to happen:
Location Name Dept
Miami 11234455

In Coumn B, I want it to first add a 1, then take what is in Column A, see what is the Location Code on then different tab, insert that location code, and add that to the front of the current data in Column B.

1 + 123 + 4455
This comment was minimized by the moderator on the site
Hi Jen Rader,
You can apply the following formula to get it done.
=IFERROR(1&VLOOKUP(A9,Sheet2!$A$2:$B$5,2, 0)&VLOOKUP(Sheet1!A9,Sheet1!$A$2:$B$5,2, 0),"")
In this formula,
1. A9 is the cell contains the value you want to return values based on;
2. Sheet2 is the tab name contains the "Location Code"; If the tab name contains space, please enclose the tab name in single quotes, such as 'tab name'.
3. Sheet1 is the tab name contains the "Dept";
4. $A$2:$B$5 is the range containing the table data (include both search values and return values ).
See screenshots below:
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/return1.png
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/return2.png
This comment was minimized by the moderator on the site
OMG Crystal! You are amazing! Show me your ways! Thank you so much - it worked exactly like I was hoping!
This comment was minimized by the moderator on the site
I am trying to find out the formula to copy the number shown in B2 on cell D2 if the Cell C2 has a letter "S". Can anyone help me?
This comment was minimized by the moderator on the site
Hi Aurora,
Please enter the following formula in cell D2.
=IF(ISNUMBER(SEARCH("S",C2)),B2,"No qualify")
This comment was minimized by the moderator on the site
Bonjour à tous, j'ai un tableau Excel et j'aimerais réaliser via une macro l'opération suivante: si une cellule contient une date, me renvoyer une valeur dans une autre cellule. Pourriez vous m'aider s'il vous plait? Je vous remercie par avance
This comment was minimized by the moderator on the site
STALLS D 25 Palais - Stalls SR
STALLS M 19 Palais - Stalls SR
LOUNGE E 22 Palais - Lounge SR
LOUNGE G 23 Palais - Lounge SL
ORCH K 40 Palais - Orchestra SR
For each line in a spreadsheet I need to evaluate against a table like above and find the value that matches all of the first 3 values.
Normally I would use sumifs for this type of problem but the answer is a text string so it returns 0
This comment was minimized by the moderator on the site
I need a formula that makes column N equal the text “OTO” if column K equals MCS TRAINING how do I do that???
This comment was minimized by the moderator on the site
Hi Abby,Please apply the following formula in the cells of column N:=IF(ISNUMBER(MATCH("MCS TRAINING",K1)),"OTO","NULL")
This comment was minimized by the moderator on the site
Hi - This is my formula that I am working with.  Currently it works, but where B21 is being returned, the value of B21 is a link to another place altogether.  I want to keep the display text but would like to include the link as well.  Can this be done?  =IF(ISNUMBER(SEARCH("DATA_MAPPING",general_report!AJ21)),general_report!B21,"")
This comment was minimized by the moderator on the site
Is it possible to split the return value to a different tab? IE: columns B and C are located on one tab, and values in columns E and F are located on a different tab?
This comment was minimized by the moderator on the site
Hi

Is it possible to populate another cell, not the cell with the formula.

Example
A1 Yes
A2 3
A3 Formula searches A1, Grabs value at A2 and if Yes Paste it in A4
A4 3 
This comment was minimized by the moderator on the site
Hi,
Sorry can't help you with the 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 
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations