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

セルのテキスト文字列から最初/最後の単語を削除するにはどうすればよいですか?

ワークシートにテキスト文字列の列があり、次のスクリーンショットに示すように、セルのテキスト文字列から最初または最後の単語を削除する必要がある場合。 Excelは直接的な方法を提供しませんが、このチュートリアルが示す次の数式を使用すると、この問題はすぐに解決されます。

doc-remove-first-word-1

数式を使用してテキスト文字列から最初または最後の単語を削除します


矢印青い右バブル 数式を使用してテキスト文字列から最初または最後の単語を削除します

次の数式は、テキストセルから最初または最後の単語を削除するのに役立つ場合があります。次のようにしてください。

テキスト文字列から最初の単語を削除します。

1。 結果を入力する空白のセルに次の数式を入力してください。 = RIGHT(A2、LEN(A2)-FIND( ""、A2)) (A2 最初の単語を削除するテキスト文字列を含むセルです)、スクリーンショットを参照してください:

doc-remove-first-word-2

2。 次に、塗りつぶしハンドルをこの数式を適用する範囲までドラッグすると、最初の単語がセルから削除されます。スクリーンショットを参照してください。

doc-remove-first-word-3

テキスト文字列から最後の単語を削除します。

セルから最後の単語を削除するには、次の数式をコピーして貼り付けてください。 =LEFT(TRIM(A2),FIND("~",SUBSTITUTE(A2," ","~",LEN(TRIM(A2))-LEN(SUBSTITUTE(TRIM(A2)," ",""))))-1)、次に、この数式を含める範囲まで塗りつぶしハンドルをドラッグすると、最後の単語がすべてセルから削除されます。 スクリーンショットを参照してください:

doc-remove-first-word-4


特定の区切り文字でセル値を複数の列と行に分割します。

Kutools for Excelさん 分割セル ユーティリティを使用すると、セル内のテキスト文字列を、スペース、コンマ、改行、および指定したその他の区切り文字で複数の列または行にすばやく分割できます。

ドキュメント分割セル-1 1

Kutools for Excel:300以上の便利なExcelアドインがあり、30日以内に制限なしで無料で試すことができます。 今すぐダウンロードして無料トライアル!


関連記事:

Excelのテキストから最初、最後、または特定の文字を削除するにはどうすればよいですか?

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

🤖 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 (17)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thank you so much!!
This comment was minimized by the moderator on the site
You're amazing!!
This comment was minimized by the moderator on the site
Hey, please assist me.



i have this: FPJCRTXCB540AS_CRG116



How do i keep the word before underscore, but remove the word after underscore?



tested and change to relevant cell but it shows "#value!". i just want it to be like this: FPJCRTXCB540AS
This comment was minimized by the moderator on the site
Hello,
To remove all text after the underscore, please apply the following formula:
=LEFT(A1, FIND("_", A1&"_")-1)

Please try, hope it can help you!
This comment was minimized by the moderator on the site
Hey, please assist me.

i have this: FPJCRTXCB540AS_CRG116

How do i keep the word before underscore, but remove the word after underscore?

tested and change to relevant cell but it shows "#value!". i just want it to be like this: FPJCRTXCB540AS
This comment was minimized by the moderator on the site
Thank you so much for sharing the formula, very helpful!
This comment was minimized by the moderator on the site
Retention Payable - Tooba Aluminium & Glass Works. L.L.C

I want to remove (retention payable - ) from the above sentence

what I will do I want to save my time
This comment was minimized by the moderator on the site
Just do find and replace if you just want to remove the same word from the sheet
saves time
This comment was minimized by the moderator on the site
Hello, Muhammad,
To solve your problem, please apply the following formula:

=MID(A1,1+FIND("~",SUBSTITUTE(A1," ","~",3)),255)

Please try it, hope it can help you!
This comment was minimized by the moderator on the site
I have two strings, one works fine removing the last word (the file size) but one does not (I think due to double space in the string.)

=LEFT(TRIM(A2),FIND("~",SUBSTITUTE(A2," ","~",LEN(TRIM(A2))-LEN(SUBSTITUTE(TRIM(A2)," ",""))))-1)

Cell A2 contents: D:\Sowdeswari\BIO-LAB-DSM-03\03-Jan-2019\Config\SecEvent.Evt 01/01/2019 5963776
Result: D:\Sowdeswari\BIO-LAB-DSM-03\03-Jan-2019\Config\SecEvent.Evt 01/01/2019 (This is correct)

Cell A2 contents: D:\laptop_swap\win_account\Desktop\ !!!Docs\FORM-00538.pdf 18/01/2018 298032
Result: D:\laptop_swap\win_account\Desktop\ !!!Docs\FORM-00538.pdf (this is not correct, but works when I remove one of the spaces before the "!!!" in the string)

All help appreciated. It's a large file and there are a few errors but if I can fix this I can probably work out the other ones.
This comment was minimized by the moderator on the site
Wow, thank you, worked perfectly and saved a lot of time.
This comment was minimized by the moderator on the site
hello
may i ask you how to separate using formula the 4-digit numbers?
1234 · Bike:5678 · Tires Improvement; :6767
This comment was minimized by the moderator on the site
AMINODDIN MAMONDIONG/HASSANA AMPUAN <<--- i want to separate this two names damn! let me try
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