Note: The other languages of the website are Google-translated. Back to English
登入  \/ 
x
or
x
註冊  \/ 
x

or

如何基於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 for Excel解決了您的大多數問題,並使您的生產率提高了80%

  • 重用: 快速插入 複雜的公式,圖表 以及您以前使用過的任何東西; 加密單元 帶密碼 創建郵件列表 並發送電子郵件...
  • 超級公式欄 (輕鬆編輯多行文本和公式); 閱讀版式 (輕鬆讀取和編輯大量單元格); 粘貼到過濾範圍...
  • 合併單元格/行/列 不會丟失數據; 拆分單元格內容; 合併重複的行/列...防止細胞重複; 比較範圍...
  • 選擇重複或唯一 行; 選擇空白行 (所有單元格都是空的); 超級查找和模糊查找 在許多工作簿中; 隨機選擇...
  • 確切的副本 多個單元格,無需更改公式參考; 自動創建參考 到多張紙; 插入項目符號,複選框等...
  • 提取文字,添加文本,按位置刪除, 刪除空間; 創建和打印分頁小計; 在單元格內容和註釋之間轉換...
  • 超級濾鏡 (將過濾方案保存並應用於其他工作表); 高級排序 按月/週/日,頻率及更多; 特殊過濾器 用粗體,斜體...
  • 結合工作簿和工作表; 根據關鍵列合併表; 將數據分割成多個工作表; 批量轉換xls,xlsx和PDF...
  • 超過300種強大功能。 支持Office / Excel 2007-2019和365。支持所有語言。 在您的企業或組織中輕鬆部署。 完整功能30天免費試用。 60天退款保證。
kte選項卡201905

Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 每天將您的工作效率提高50%,並減少數百次鼠標單擊!
officetab底部
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Stone · 2 years ago
    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.
  • To post as a guest, your comment is unpublished.
    Linda Harvey · 2 years ago
    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.
  • To post as a guest, your comment is unpublished.
    Alex · 3 years ago
    This was a great help to me
  • To post as a guest, your comment is unpublished.
    Sarah B. · 4 years ago
    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.