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

Excelのセル値に基づいて取り消し線を自動化するにはどうすればよいですか?

Excelでは、取り消し線を適用して不要なセルの内容を手動で削除できますが、この記事では、セルの値に基づいて取り消し線を自動化する方法について説明します。 たとえば、次のスクリーンショットに示すように、列Eのセル値に基づいて行データに取り消し線を適用し、セル値が「N」の場合、相対行に取り消し線を自動的に適用します。

doc自動取り消し線1

条件付き書式を使用したセル値に基づく自動取り消し線


矢印青い右バブル 条件付き書式を使用したセル値に基づく自動取り消し線

実際には、 条件付き書式 Excelの機能を使用すると、このタスクをできるだけ早く完了することができます。次のようにしてください。

1。 取り消し線を適用するデータ範囲を選択し、[ ホーム > 条件付き書式 > 新しいルール、スクリーンショットを参照してください:

doc自動取り消し線2

2。 の中に 新しい書式設定規則 ダイアログボックスをクリックしてください 式を使用して、フォーマットするセルを決定する 内のオプション ルールタイプを選択します リストボックスをクリックして、次の式を入力します。 = $ E2 = "N" この数式が真であるときの書式値 テキストボックス、スクリーンショットを参照:

注: 上記の式では: E2 と "N」は、取り消し線を適用するセルとテキストの値です。必要に応じて変更してください。

doc自動取り消し線3

3。 そして、 フォーマット に行くボタン セルの書式設定 ダイアログ、下 フォント タブ、チェック 取り消し線 エフェクト リストボックス、スクリーンショットを参照:

doc自動取り消し線4

4。 次に、をクリックします OK > OK ダイアログを閉じるには、入力した値が特定のテキスト「N」の場合、行データ全体に取り消し線が自動的に適用されます。スクリーンショットを参照してください。

doc自動取り消し線5

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

🤖 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 (8)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Hi,
How can I do if I want the row struckthrough if say EITHER B2= Yes OR I2 = 0?
If I just put it as OR($B2="Yes",$I2="0"), it wont strikethrough if both values are met.
Rated 5 out of 5
This comment was minimized by the moderator on the site
Is it possible to use this formula with a numeric value of zero? I cannot for the life of me get it to work that way but it will work with letters.
This comment was minimized by the moderator on the site
Hello friend,

Glad to help. Yes, you can use this formula =$E1= 0 with a numeric value of zero. Please see the screenshot, you can input formula =$E1= 0 into the Format values where this formula is true text box. Please note the first row of the data is header.
https://www.extendoffice.com/images/stories/comments/comment-zmt/strikethrough-value.png

Sincerely,
Mandy
This comment was minimized by the moderator on the site
Merci beaucoup :) <3 
This comment was minimized by the moderator on the site
I regularly wind up utilizing the strikethrough highlight in both Word and Excel to stamp things as finished. This component is genuinely clear in Word, as a strikethrough symbol shows up conspicuously on the Home tab in Word 2007 and later. Then again, in Excel this component doesn't have its own particular symbol, yet it has a console alternate route, Ctrl-5. However there's no worked in essay writing route for strikethrough in Word.
This comment was minimized by the moderator on the site
Hello everyone, I just have to say that this site is just amazing!
Much creative and extremely curricular website I have ever found while searching essay writing service on the Internet.
I am very satisfied with their work and inventory, everything looked very well and kept. I appreciate your work, keep up a great job.
This comment was minimized by the moderator on the site
This was a great help to me
This comment was minimized by the moderator on the site
Using the instructions from this page (Auto strikethrough based on cell value with Conditional Formatting) I am trying to add the proper formula to a spreadsheet with the cell value being a check mark (instead of N like the example). Ultimately, what I am trying to do is this: When I double click column A1, it will automatically add a check mark in that cell. In addition to the check mark, it will perform auto-strikethrough on cells B1 and C1. Is it possible to accomplish this? I had no problem entering a rule to add a check mark to a cell by double clicking it. And I had no problem adding the conditional formatting in order to auto strikethrough text. What I cannot seem to figure out is how to combine the 2 efforts. I do not like the idea of Check boxes and have tried that route already.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations