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.