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

Excelでセル値の一部のみを非表示にするにはどうすればよいですか?

ドキュメントが部分的に非表示1
スタッフに関する一般的な情報が記載されたシートがあり、社会保障番号などの非公開のものがあるとします。 次に示すスクリーンショットのように、これらの社会保障番号の一部を非表示にしたいのですが、どうすればすばやく解決できますか?

フォーマットセルで社会保障番号を部分的に非表示にする

数式でテキストまたは数値を部分的に非表示にする

矢印青い右バブル フォーマットセルで社会保障番号を部分的に非表示にする

Excelで社会保障番号の一部を非表示にするには、フォーマットセルを適用して解決します。

1.部分的に非表示にする番号を選択し、右クリックして選択します セルの書式設定 コンテキストメニューから。 スクリーンショットを参照してください:
ドキュメントが部分的に非表示2

2.次に、 セルの書式設定 ダイアログ、クリック タブ、および選択 カスタム から カテゴリー ペインをクリックして、これを入力します 000 ,, "-**-****" タイプ 右セクションのボックス。 スクリーンショットを参照してください:
ドキュメントが部分的に非表示3

3。 クリック OK、選択した部分番号が非表示になりました。

Note:5番目の数値がXNUMXより大きいか、XNUMXに等しい場合は、数値を切り上げます。


矢印青い右バブル 数式でテキストまたは数値を部分的に非表示にする

上記の方法では、部分的な数字のみを非表示にできます。部分的な数字やテキストを非表示にする場合は、次のように実行できます。

ここでは、パスポート番号の最初の4つの番号を非表示にします。

パスポート番号の横にある空白のセルを22つ選択します。たとえば、FXNUMXの場合、この数式を入力します = "****"&RIGHT(E22,5)、次に、この数式を適用する必要があるセルに自動入力ハンドルをドラッグします。
ドキュメントが部分的に非表示4

ヒント:

最後のXNUMXつの数字を非表示にする場合は、次の式を使用します。 = LEFT(H2,5)& "****"

真ん中のXNUMXつの数字を非表示にしたい場合は、これを使用します = LEFT(H2,3)& "***"&RIGHT(H2,3)

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

🤖 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 (21)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I have 1. Name, so I want to remove "1." Please suggest.
This comment was minimized by the moderator on the site
Is there any command for format cell, to hide the intended value in cell, that containt with charecters. eg. G1234567Q and after applied the format it would be G****567Q ?Note: I am asking to know the cell format not the formula? Thanks in advance!
This comment was minimized by the moderator on the site
If I have a listing of Name with different length, and want to set as "B*** P***" for "Brad Pitt", "M******* Y*** C*** K****" for "Michelle Yeoh Choo Kheng", how can I do it with formula?
p     JL
This comment was minimized by the moderator on the site
have you found a solution? i would also like to know the answer to this. thank you
This comment was minimized by the moderator on the site
Can replace all but the first char with this: =REPLACE(CELL,2,LEN(CELL),REPT("*",LEN(CELL)))
This comment was minimized by the moderator on the site
If I have a number and alphabet set like S1234567A and want to put as S****567A, what formula is usable?
This comment was minimized by the moderator on the site
=REPLACE(CELL,2,4,"****")
This comment was minimized by the moderator on the site
=REPLACE(CELL,1,LEN(CELL)-4,REPT("X",LEN(CELL)-4))is the better version as here you can mask text with variable length
This comment was minimized by the moderator on the site
Hi I tried this but does not seem to work.
This comment was minimized by the moderator on the site
Great solution!
This comment was minimized by the moderator on the site
How can we use format cell to remove the first few characters? For ex: 12,345.67 = **,345.67
This comment was minimized by the moderator on the site
how can i unhide the numbers again
This comment was minimized by the moderator on the site
Hi, sunil, if you use the Format Cells function to hide part of string, when you want to unhide them again, just format the cells as general.
This comment was minimized by the moderator on the site
Nice Sir, Its working
This comment was minimized by the moderator on the site
Sorry, I meant D22
This comment was minimized by the moderator on the site
I am not sure how you wrote the formula Dean, but =LEFT(F22,3)&"-**-****" shows 278-**-**** for me... Maybe check other formats on your destination cell?
This comment was minimized by the moderator on the site
Sorry I did not get your question, could you give me a screenshot or other more information to decribe it?
This comment was minimized by the moderator on the site
Your SSN example fails, in that it rounds up the number, rather than hiding the non-visible placings. In you example, 278-53-6128 is displayed as 279-**-****!
This comment was minimized by the moderator on the site
Sorry, could you give me more information about the fails in your examples? Because it works always in my examples.
This comment was minimized by the moderator on the site
Dean is correct, the image you are using for the example shows staff no 2083 having the social security number of 278536128 but the hidden version starts with 279. The formula itself works, just the first row in the example image is incorrect.
This comment was minimized by the moderator on the site
Thanks for the reminder. The format cell method will round up the number if the fourth number is larger than 5.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations