Excel如何用条件格式比较两个工作表
时间:2023-04-12 07:28:07
如果需要对两个工作表中的相同区域进行比较,用条件格式的方法可以标识出不同的单元格,非常醒目。但在条件格式中不能直接引用其他工作表中单元格地址,例如在“表1”和“表2”两个工作表中的A1:C10区域包含一些名单,现在要直接在这两个工作表中使用条件格式比较这两个区域。
在“表2”A1单元格的条件格式中使用公式:
=A1<>表1!$A$1
Excel会弹出一个内容为“在条件格式中不能使用对其他工作簿或工作表的引用”的对话框。
要解决这个问题,可以先对A1单元格定义一个名称,然后在条件格式中使用该名称,在Excel 2003中步骤如下:
1.选择“表1”中的A1单元格,单击菜单“插入→名称→定义”,打开“定义名称”对话框。
本例中,在“引用位置”下输入公式:
=表1!A1
这里需要注意的是A1单元格的引用要为相对引用,不能用$A$1样式的绝对引用。然后输入一个名称,本例中所定义的名称为“表1区域左上角”。
2.选择“表2”中A1:C10区域,选择时需从A1单元格开始选择,选择该区域后A1单元格处于高亮状态。然后单击菜单“格式→条件格式”,在“条件格式”对话框中的“条件1”下方选择“公式”,在右侧文本框中输入公式:
=A1<>表1区域左上角
然后单击“格式”按钮,设置一种格式,如本例中设置单元格字体颜色为红色。单击“确定”按钮。
这时Excel将逐一对应比较“表1”和“表2”中A1:C10区域的每个单元格,并在“表2”中将不同的单元格按照所设置的格式显示出来。
标签:Excel,如,何用,条件,格式,比较,两个,工,作表
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win10无法正常启动程序显示0xc0000142错误代码处理方法
2023-04-10 00:39:46
![](https://img.aspxhome.com/file/2023/1/a278406_0s.png)
苹果电脑怎么连接有线网络?
2022-02-25 17:12:42
![](https://img.aspxhome.com/file/2023/0/a207590_0s.jpeg)
荣耀v20怎么开启NFC功能?荣耀v20开启NFC功能的方法
2022-09-07 21:37:57
![](https://img.aspxhome.com/file/2023/6/a325137_0s.png)
win7系统连接打印机出现"无权限无法打开添加打印机"的解决方法
2023-12-10 22:13:28
![](https://img.aspxhome.com/file/2023/28/a244919_0s.jpg)
WPS word如何批量删除空格三点
2023-05-26 16:37:31
![](https://img.aspxhome.com/file/2023/8/a187088_0s.jpg)
愤怒的小鸟都有什么鸟?有什么特殊之处
2023-08-27 20:51:12
![](https://img.aspxhome.com/file/2023/9/a212679_0s.jpeg)
ppt怎么做类似大电影的字幕动画效果? ppt动态字幕的制作方法
2023-01-28 05:30:52
![](https://img.aspxhome.com/file/2023/10/a345502_0s.gif)
内存条烧坏了什么表现
2023-07-19 19:02:22
![](https://img.aspxhome.com/file/2023/3/a295888_0s.png)
你知道Word“三键一刷”吗?
2022-05-01 19:22:33
![](https://img.aspxhome.com/file/2023/0/24210_0s.gif)
移动139邮箱格式怎么写?
2023-02-26 20:14:05
![](https://img.aspxhome.com/file/2023/1/a275403_0s.png)
wegame符文推荐不见了怎么办?wegame调出符文推荐的方法
2022-04-28 19:38:51
![](https://img.aspxhome.com/file/2023/1/a275240_0s.jpg)
Pr如何在时间线添加关键帧?Pr在时间线添加关键帧的方法
2023-12-26 09:52:12
![](https://img.aspxhome.com/file/2023/6/a324006_0s.jpg)
Win10投影仪不是全屏怎么办 Win10投影仪不是全屏怎么调成全屏
2023-09-22 20:58:47
![](https://img.aspxhome.com/file/2023/25/a218107_0s.jpg)
Win7定时关机怎么设置? Win7设置定时关机的方法
2023-06-09 08:22:30
![](https://img.aspxhome.com/file/2023/27/a232789_0s.jpg)
蓝光光驱和DVD光驱的区别介绍 光驱外部结构解剖
2022-06-12 21:22:22
![](https://img.aspxhome.com/file/2023/6/a326014_0s.jpg)
如何重命名Excel工作表
2022-04-28 10:41:43
![](https://img.aspxhome.com/file/2023/1/a156551_0s.jpg)
简单3步 PPT普通图片瞬间变得高大上
2022-02-02 09:05:50
![](https://img.aspxhome.com/file/2023/10/a346559_0s.jpg)
英语流利说如何打卡?英语流利说打卡教程
2022-08-09 18:48:43
![](https://img.aspxhome.com/file/2023/8/a336836_0s.png)
Win10原版系统的安装步骤图文教程
2023-12-20 00:25:02
![](https://img.aspxhome.com/file/2023/28/a247569_0s.jpg)
Win10如何将“360杀毒”添加到右键菜单?
2022-01-23 10:48:03
![](https://img.aspxhome.com/file/2023/26/a225298_0s.jpg)