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

Excelで列のリストを文字長で並べ替える方法は?

異なる文字を持つ文字列のリストがあり、次のスクリーンショットのように、列内のこのデータを文字の長さで並べ替える必要があるとします。 それを達成するための簡単な方法はありますか?

doc-長さによる並べ替え1 -2 doc-長さによる並べ替え2

ヘルパー列を使用して、列のリストを文字長でソートします

Kutools for Excelを使用して、列のリストを文字長で並べ替えます


矢印青い右バブルヘルパー列を使用して、列のリストを文字長でソートします

列のリストを文字の長さで並べ替える直接関数はないため、ヘルプ列を使用して最初に文字列の数を数え、次にそれらを並べ替える必要があります。

1. 値の列の横に、これを入力します = LEN(A1) 空白のセルB1の数式、スクリーンショットを参照してください。

doc-長さによる並べ替え3

2。 次に、 入力します キーを押すと、テキスト文字列の番号が表示されます。次に、セルB1を選択し、この数式を含める範囲まで塗りつぶしハンドルをドラッグします。

doc-長さによる並べ替え4

3。 列Aのすべての数の文字列が列Bで抽出されているので、[列B]をクリックしてこの範囲を並べ替えることができます。 且つ > 並び替え、スクリーンショットを参照してください:

doc-長さによる並べ替え5

4. ソート警告 プロンプトボックス、チェックボックス 選択範囲を拡大 オプションをクリックし、次にクリックします。 並び替え

doc-長さによる並べ替え6

5。 そして、 並び替え ダイアログボックスで 列B 並べ替える、並べ替える必要のあるタイプを選択し、最後に並べ替え順序を選択します。ここでは、 価値観 セクションに 並べ替え ドロップダウンリストと 最小から最大 in 注文 ドロップダウンリスト。 スクリーンショットを参照してください:

doc-長さによる並べ替え7

6。 次に、をクリックします OK、および文字列は文字長でソートされています。 必要に応じて列Bを削除できます。 スクリーンショットを参照してください:

doc-長さによる並べ替え8


矢印青い右バブルKutools for Excelを使用して、列のリストを文字長で並べ替えます

上記の方法では、少し面倒なヘルプ列の拳を作成する必要があります。 しかし、 高度な並べ替え 機能で Kutools for Excel リストは文字長で一度に並べ替えることができます。

Kutools for Excel 300以上の便利なExcelツールが含まれています。 30日以内に制限なしで無料でお試しいただけます。 今すぐ入手

手順1.文字の長さで並べ替えるリストを選択し、[ Enterprise > 高度な並べ替え。 スクリーンショットを参照してください:


ステップ2.次に 高度な並べ替え 画面にダイアログが表示されたら、リストの列を選択して、 テキストの長さ 並べ替え ドロップダウンリストを指定し、 注文 あなたが必要です。 (選択したリストにヘッダーがある場合は、 私のデータにヘッダーがあります ボックス。)スクリーンショットを参照してください:


ステップ3。 クリック Ok、リストが次のように文字長でソートされていることがわかります。

あなたが選択した場合 ZからAへ セクションに 注文 手順2では、結果は次のように表示されます。


Kutools forExcelの高度な並べ替えの詳細については。


関連記事:

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 (12)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
hi,

The sort does not seem to works.
It just sort like the LEN function.
could you please help?
This comment was minimized by the moderator on the site
Hello friend,

Sorry to hear that. The LEN function should work on your computer. One possible reason why the LEN function doesn't work is that the Show Formulas function under the Formulas tab is turned on. Please see the screenshot. Please turn off the Show Formulas function. If the problem still exists, please provide us with more details. Looking forward to your reply.

Sincerely,
Mandy
This comment was minimized by the moderator on the site
Thank you, great info!
This comment was minimized by the moderator on the site
a big thank you!
This comment was minimized by the moderator on the site
Thank you very much,, it is very useful, keep going.
This comment was minimized by the moderator on the site
Kind of pointless, expected more, but I will take.
This comment was minimized by the moderator on the site
Thanks for the help! Brilliant!
This comment was minimized by the moderator on the site
Thank you exactly what I was looking for too. Worked perfectly to sort email subject lines by length. Was experiencing an error during export and figured out it was due to length of filenames created from the subject line by the export process. This helper column formula allowed me to isolate which emails would cause the error, and proved my theory. Saved me hours sifting through literally thousands of emails. Many thanks.
This comment was minimized by the moderator on the site
Thank you! it worked for me, though I had to use LENB function, LEN didn't work.
This comment was minimized by the moderator on the site
there is no lenb function
This comment was minimized by the moderator on the site
This is what i was just looking for and nothing better than interactive snap-shots. i just looked here and tried in excel....and worked ! Thank you so much.
This comment was minimized by the moderator on the site
I love it! Just what I was looking for. I love KuTools & Enterprise, use them every single day in Excel. 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