Excel conditional formatting is automatically bordered by cells

Source: Internet
Author: User
Tags first row

Excel has a number of "automatic" features, which can be more efficient if used properly. After the experiment, I found a way to use conditional formatting to automatically add borders to Excel cells, which is "the key, row is table." The following are the specific steps:

1. In the first row, select the area where you want to display the border, such as the a1:d1 in this example.

2. Perform "format" → "conditional formatting" to open the Conditional Formatting dialog box. Click to open the condition 1 drop-down list, click Select Formula, and then enter the following formula in the box below "=or ($A 1" ", $B 1" ", $C 1" ", $D 1" "), meaning that as long as there is data in one cell in A1, B1, C1, or D1, the outer border is automatically added to the four cells.

Note: The cell reference in the formula is a mixed reference, and the effect is different if you change to a relative reference, and friends can try.

3. Click the Format button to open the Format Cells dialog box, switch to the Borders tab, and specify an outline for cells that match the criteria.

4. Select A1:d1 area, copy, select A→d column, paste (if you have entered data in A1:d1, perform "edit" → "paste Selective" → "format"), so that the format set in step 2nd is assigned to all cells in the A→d column.

Enter data (including spaces) in any of these four columns, and the cells in this row (a→d column) will automatically add a border.

Tip: For cells that have the border set for a conditional format, it still allows you to set its border in the Borders tab of the Cell Format dialog box, but the outline box cannot be displayed (as is the case with the Border button on the toolbar), only slashes are displayed unless you delete all the data in the criteria range.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.