博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
如何使用条件格式突出显示Google表格中的行
阅读量:2505 次
发布时间:2019-05-11

本文共 3554 字,大约阅读时间需要 11 分钟。

Microsoft Excel logo

Should you need to isolate data in Google Sheets based on specific criteria in a cell, you can use conditional formatting to highlight entire rows in your spreadsheet. Here’s how to do it.

如果您需要根据单元格中的特定条件隔离Google表格中的数据,则可以使用条件格式突出显示电子表格中的所有行。 这是操作方法。

Fire up your browser, head to , and open up a spreadsheet with a table of data you want to apply conditional formatting to highlight specific rows.

启动浏览器,转到 ,然后打开一个包含要应用条件格式以突出显示特定行的数据表的电子表格。

Highlight all the cells inside the table and then click on Format > Conditional Formatting from the toolbar.

突出显示表格中的所有单元格,然后从工具栏中单击“格式”>“条件格式”。

Highlight the information in the table, click Format, and then click "Conditional Formatting."

From the panel that opens on the right, click the drop-down menu under “Format Cells If,” and choose “Custom Formula Is.”

在右侧打开的面板中,单击“如果设置单元格格式”下的下拉菜单,然后选择“自定义公式为”。

Click the drop-down menu and choose "Custom formula is" from the list of rules.

In the “Value or Formula” text box that appears, type the formula to highlight the specific data you want to isolate in this table. For our table, we will use a formula that highlights an entire row if the release year is before 1980. It looks like this: =$D3<1980

在出现的“值或公式”文本框中,键入公式以突出显示要在此表中隔离的特定数据。 对于我们的表,如果发布年份在1980年之前,我们将使用一个公式突出显示整行。看起来像这样: =$D3<1980

Type in your formula that you want to use to search for data. Be sure to use the dollar sign before the column letter. This makes sure the formula only parses the column specified.

The first part of the formula (=$D3) tells Sheets that we want to start examining the data from cell D3. The dollar sign at the beginning is mandatory and says that the column (D) is fixed, but the row (3) is flexible. This allows the formula to check the data in the entire column.

公式的第一部分(= $ D3)告诉Sheets我们要开始检查单元格D3中的数据。 开头的美元符号是强制性的,表示列(D)是固定的,但行(3)是灵活的。 这使公式可以检查整个列中的数据。

The second part (<1980) of the formula is the condition the data has to meet to return True. For our example, we’re just looking for any movies released before 1980.

公式的第二部分(<1980)是数据必须满足的条件才能返回True。 对于我们的示例,我们正在寻找1980年之前发行的所有电影。

Note: If you want your result to be inclusive of the date entered, type <=1980 to return everything released in 1980 as well.

注意:如果希望结果包含输入的日期,请键入<=1980以返回1980年发布的所有内容。

Next, select the type of formatting you want to apply when the conditions are met. You can apply bold, italic, underline, strikethrough, font color, or cell color to your results. By default, each row fills with a light-green color.

接下来,选择要满足条件时要应用的格式类型。 您可以将粗体,斜体,下划线,删除线,字体颜色或单元格颜色应用于结果。 默认情况下,每一行都用浅绿色填充。

After you choose how you want the rows to appear when your formula finds a match, click “Done.” You can close the panel or create another rule to apply conditional formatting to as well.

选择要在公式找到匹配项时显示行的方式后,单击“完成”。 您可以关闭面板或创建另一个规则以应用条件格式。

After you customize the formatting style, click "Done."

And just like that, the rows of movies released before 1980 are highlighted in green.

就像那样,1980年前发行的电影以绿色突出显示。

The result shows that only movies that were released after 1980 have been colored in with a green background.

Although this is a simple example of a formula, there are no limits to how you can utilize this extremely helpful tool. You can even use advanced formulas and functions to match data in the table.

尽管这只是公式的一个简单示例,但是如何利用此极其有用的工具没有任何限制。 您甚至可以使用高级公式和函数来匹配表中的数据。

For example, if we wanted to find every director with the first name “George,” we can use the REGEXMATCH function and a short Regular Expression to do just that. It would look something like this: =REGEXMATCH($C3, "\AGeorge\s*([^\n\r]*)")

例如,如果我们想找到每个名字叫“乔治”的导演,我们可以使用REGEXMATCH函数和一个简短的正则表达式来做到这一点。 看起来像这样: =REGEXMATCH($C3, "\AGeorge\s*([^\n\r]*)")

An example of an advanced formula that finds every director with the first name "George."


That’s it! With the use of conditional formatting in Google Sheets, you’ve searched for specific columns of data and then highlighted the entire row using a custom formula.

而已! 通过在Google表格中使用条件格式,您已经搜索了特定的数据列,然后使用自定义公式突出显示了整行。

This is the perfect tool to help create intricate spreadsheets with beautifully formatted data that catches everyone’s attention.

这是一个完美的工具,可以帮助您创建格式精美的复杂电子表格,引起所有人的关注。

翻译自:

转载地址:http://tczwd.baihongyu.com/

你可能感兴趣的文章
OpenStack的容器服务体验
查看>>
【BZOJ 4059】 (分治暴力|扫描线+线段树)
查看>>
BZOJ 1066 蜥蜴(网络流)
查看>>
提高批量插入数据的方法
查看>>
Linux重启Mysql命令
查看>>
前端模块化:RequireJS(转)
查看>>
linux 内核的优化
查看>>
近端梯度算法(Proximal Gradient Descent)
查看>>
DRM-内容数据版权加密保护技术学习(中):License预发放实现 (转)
查看>>
TCP与UDP协议
查看>>
php上传文件如何保证上传文件不被改变或者乱码
查看>>
目录遍历代码
查看>>
iOS MD5加密实现方法
查看>>
cygwin下的目录软连接
查看>>
eclipse控制台不显示输出的解决办法
查看>>
Java中的TCP/UDP网络通信编程
查看>>
Mysql支持的数据类型(总结)
查看>>
对测试转开发的一些想法
查看>>
MVC文件上传08-使用客户端jQuery-File-Upload插件和服务端Backload组件让每个用户有专属文件夹...
查看>>
html模板中调用变量
查看>>