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

 Googleスプレッドシートのテキスト文字列からのみ数字を抽出するにはどうすればよいですか?

次のスクリーンショットに示すように、テキスト文字列のリストから数字のみを抽出して結果を取得したい場合、Googleシートでこのタスクをどのように達成できますか?

数式を使用してGoogleスプレッドシートのテキスト文字列からのみ数値を抽出します


数式を使用してGoogleスプレッドシートのテキスト文字列からのみ数値を抽出します

次の式は、このジョブを完了するのに役立ちます。次のようにしてください。

1。 次の式を入力します。 = SPLIT(LOWER(A2); "abcdefghijklmnopqrstuvwxyz") 数字だけを抽出したい空白のセルに入れて、を押します 入力します キー、セルA2のすべての番号が一度に抽出されました。スクリーンショットを参照してください。

2。 次に、数式セルを選択し、この数式を適用するセルまで塗りつぶしハンドルをドラッグすると、次のスクリーンショットのようにすべての数値が各セルから抽出されます。

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

🤖 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 (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Perfectly, got very good
This comment was minimized by the moderator on the site
Bonjour, Googlesheet m'indique que la formule "Inférieur" n'existe pas, existe t'il un équivalent s'il vous plait?
En vous remerciant par avance,
cto
This comment was minimized by the moderator on the site
Hello,
Please try the bloe formula: =SPLIT( LOWER(A2) ; "abcdefghijklmnopqrstuvwxyz " )
This comment was minimized by the moderator on the site
3년 전에 이렇게 유익한 함수를 공유해 주셨네요. 너무 감사합니다.
너무나 감사해서 혹시 저 같은 경우가 있으신 분들을 위해서 오늘 제가 응용한 함수도 공유하고 갑니다.
Gas Super VIC (G_22GD_2BD_NF )
VIC Loyalty Plus (E_19GD_3BD)
이런 조합에서 숫자만 추출해서 각 숫자의 합을 내야했었는데
=SPLIT (LOWER (A2); "abcdefghijklmnopqrstuvwxyz") 여기에서
=SPLIT (LOWER (A6), "abcdefghijklmnopqrstuvwxyz ()_") 제가 제외하고자 하는 기호도 포함시켰더니 깔끔하게
22 2
19 3
이라는 결과를 얻었고 sum 함수를 접목해서 24, 22 라는 숫자를 얻을 수 있었습니다.
감사합니다
This comment was minimized by the moderator on the site
this is useful, but doesn't fully solve my problem. When I use this formula, punctuation marks and non-Latin characters are also treated as numbers. Is the best way around this to expand the list of characters in the quotation marks as currently written? My approach for now has been to try and clean the data of any existing punctuation, but the stuff written in Cyrillic is necessary information that I cannot remove.
This comment was minimized by the moderator on the site
Hello,
If there are some other punctuation marks and non-Latin characters in your text strings, you can apply this formula to extract the numbers only:
=REGEXREPLACE(A1,"\D+", "")
Hope it can help you, thank you!
This comment was minimized by the moderator on the site
thank you? it works
=REGEXREPLACE(A6;"\D+"; "")*1
This comment was minimized by the moderator on the site
problem when you have two string of numbers in the text.
This comment was minimized by the moderator on the site
Hi santhosh,
Yes, as you said, this formula only can extract all the numbers into one cell.
If you have any other good formulas, please comment here.
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