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

Excelでセルを結合解除して重複する値を入力するにはどうすればよいですか?

多数の結合されたセルを含むワークシートがあり、次に示すように、それらを結合解除して、結合されたセルから元の値を自動入力する必要がある場合。 このタスクにどのようにすばやく対処できますか?

Go To Specialコマンドを使用して、セルを結合解除し、重複データを入力します

セルをマージ解除し、VBAコードで重複データを入力します

セルをマージ解除し、ワンクリックで重複データを入力します


矢印青い右バブル Go To Specialコマンドを使用して、セルを結合解除し、重複データを入力します

特別に行く コマンドを使用すると、セルの結合を解除して値を入力できます。 ただし、この方法はやや面倒です。次の手順に従ってください。

1。 セルを結合した列を選択します。

2に設定します。 OK をクリックします。 ホーム > マージ&センター > セルのマージを解除する。 スクリーンショットを参照してください:

3。 また、結合されたセルは結合されておらず、最初のセルのみが元の値で埋められます。 そして、もう一度範囲を選択します。

4。 次に、をクリックします ホーム > 検索と選択 > 特別に行く。 の中に 特別に行く ダイアログボックスで ブランク オプション。 スクリーンショットを参照してください:

5。 そして、 OK、範囲内のすべての空白セルが選択されています。 次に入力 = を押し Up キーボードの矢印キー。 スクリーンショットを参照してください:

6。 次に、 Ctrl + Enter キーを押すと、すべての空白のセルに元のマージされたデータが入力されます。 スクリーンショットを参照してください:


矢印青い右バブル セルをマージ解除し、VBAコードで重複データを入力します

次のVBAコードを使用すると、セルをすばやく結合解除して値を入力できます。

1。 を押し続けます Alt + F11 キー、そしてそれは開きます アプリケーション向け Microsoft Visual Basic 窓。

2に設定します。 OK をクリックします。 インセット > モジュール、次のマクロをに貼り付けます モジュール窓。

Sub UnMergeSameCell() '更新者 Extendoffice
Dim Rng As Range、xCell As Range xTitleId = "KutoolsforExcel" Set WorkRng = Application.Selection Set WorkRng = Application.InputBox( "Range"、xTitleId、WorkRng.Address、Type:= 8)Application.ScreenUpdating = False Application.DisplayAlerts = WorkRngの各Rngに対してFalseIf Rng.MergeCells Then With Rng.MergeArea .UnMerge .Formula = Rng.Formula End With End If Next Application.DisplayAlerts = True Application.ScreenUpdating = True End Sub

3。 次に、 F5 このコードを実行するためのキーを押すと、操作する範囲を選択するためのダイアログが表示されます。スクリーンショットを参照してください。

4. OK、次に、マージされたセルがマージ解除され、元のマージされた値が自動的に入力されます。


矢印青い右バブル セルをマージ解除し、ワンクリックで重複データを入力します

セルのマージを解除 の有用性 Kutools for Excel、セルのマージを解除し、ワンクリックで重複データを入力できます。この方法は非常にシンプルで便利です。

Kutools for Excel : 300以上の便利なExcelアドインがあり、30日以内に制限なしで無料で試すことができます

インストールした後 Kutools for Excel、次のように実行できます。

1。 マージを解除する列を選択し、データを入力します。

2に設定します。 OK をクリックします。 クツール > マージ&スプリット > セルの結合を解除して値を塗りつぶす、スクリーンショットを参照してください:

3。 そして、マージされたセルはマージ解除され、重複する値で一度に埋められました。 スクリーンショットを参照してください:


矢印青い右バブル セルをマージ解除し、Kutools forExcelで重複データを入力します

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 (49)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thanks, It really made life easier
This comment was minimized by the moderator on the site
This doesn't solve the problem with sheet that has some blank cells natively
When you find blank cells and fill with value of the cell above, you accidentally fill all the native-blank cells with unwanted values
This comment was minimized by the moderator on the site
Hello, David,
Thanks for your comment.
Yes, if you use the first method, this problem will occur, but if you want to keep the original blank cells, you'd better to use the second or third method in our article.

Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
Actually there's an easy way to fix this. After step 1, find-replace blank cells with a space.
Then after step 6, find-replace cells with a space with blanks.
Could you consider adding those steps to this tutorial?
This comment was minimized by the moderator on the site
Exatamente o que queria!

Muito obrigada!
This comment was minimized by the moderator on the site
LIFE SAVER! LOVE YOU
This comment was minimized by the moderator on the site
Thanks a lot!! the best solutions
This comment was minimized by the moderator on the site
We can do this using the Broffice Sheets, you must just unmerge it and the data will automatically be repeated in the cells, since they exists before.
This comment was minimized by the moderator on the site
This is amazing. Thank you!
This comment was minimized by the moderator on the site
Thanks... loved it
This comment was minimized by the moderator on the site
The VBA code stalls when an entire columns are selected. There should be a mechanism defending against fruitless running through large loops. Apart from that it works fine.
This comment was minimized by the moderator on the site
thanks very much Saved me lot of time
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