In an Excel table, when there is a lot of data, it is easy to misread the row and column data. Today I will teach you a cross highlighting technique. When the data point reaches a certain point, the row and column will be automatically highlighted. Don’t worry about reading the wrong data!
How to highlight cross rows and columns in Excel
1. I usually use WPS for making tables
WPS has an advantage in this function. The setting is relatively simple. You only need to activate the reading mode under the view menu bar, and then select a cross color arbitrarily.
Recommended learning: excel basic tutorial
2. OFFICE Excel
The setting in the Excel table is relatively complicated. There are two situations and two methods:
● Suitable for when conditional formatting is not set in the worksheet
We are Under Visual basic of the development tool, or directly press ALT F11
to enter a string of codes in thisbook:
The code is as follows, you can copy and paste it directly. If you need a different color, you only need to change 20 to other numbers
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) Cells.FormatConditions.Delete With Target.EntireColumn .FormatConditions.Add xlExpression, , "=true" .FormatConditions(1).Interior.ColorIndex = 20 End With With Target.EntireRow .FormatConditions.Add xlExpression, , "=true" .FormatConditions(2).Interior.ColorIndex = 20 End WithEnd Sub
The effect is as follows:
This code is applicable if there is no conditional formatting setting. If it is set, then use the following method
● It is applicable to the worksheet without any cell mark color
Similarly Press ALT F11 in the table, then enter the code:
where the code is:
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) Sh.Cells.Interior.ColorIndex = xlNone Target.EntireColumn.Interior.ColorIndex = 36 Target.EntireRow.Interior.ColorIndex = 36 End Sub
This time we use 36, when we click on the cell , the display effect is yellow, as shown below:
Of course, when there is useful code in the Excel table, you need to save the table as xlsm format
Next time you need to cross-display data, use the above techniques to set it up. Have you learned it? Give it a try~
For more Excel-related tutorials, please pay attention to PHP Chinese website!
The above is the detailed content of How to highlight cross rows in Excel. For more information, please follow other related articles on the PHP Chinese website!

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于折叠表格的相关问题,就是分类汇总的功能,这样查看数据会非常的方便,下面一起来看一下,希望对大家有帮助。

在之前的文章《实用Excel技巧分享:利用 数据透视表 来汇总业绩》中,我们学习了下Excel数据透视表,了解了利用数据透视表来汇总业绩的方法。而今天我们来聊聊怎么计算时间差(年数差、月数差、周数差),希望对大家有所帮助!

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于AGGREGATE函数的相关内容,该函数用法与SUBTOTAL函数类似,但在功能上比SUBTOTAL函数更加强大,下面一起来看一下,希望对大家有帮助。

在之前的文章《实用Word技巧分享:聊聊你没用过的“行号”功能》中,我们了解了Word中你肯定没用过的"行号”功能。今天继续实用Word技巧分享,看看Excel表格怎么借用Word进行分栏打印,快来收藏使用吧!

在之前的文章《实用Excel技巧分享:原来“定位功能”这么有用!》中,我们了解了定位功能的妙用。而今天我们聊聊合并后的单元格如何实现筛选功能,分享一种复制粘贴和方法解决这个问题,另外还会给大家分享一种合并单元格的不错的替代方式。

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于zenmm制作倒计时牌的相关内容,使用Excel中的日期函数结合按指定时间刷新的VBA代码,即可制作出倒计时牌,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于如何使用函数寻找总和为某个值的组合的问题,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于Excel的相关知识,其中主要介绍了关于XLOOKUP函数的相关知识,包括了常规查询、逆向查询、返回多列、自动除错以及近似查找等内容,下面一起来看一下,希望对大家有帮助。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 English version
Recommended: Win version, supports code prompts!

SublimeText3 Mac version
God-level code editing software (SublimeText3)
