简体   繁体   English

从Google表格的主列表中批量查找和替换

[英]Bulk Find and Replace from a Master List in Google Sheets

I have a spreadsheet in Google Sheets. 我在Google表格中有一个电子表格。 We currently pulled it from Ooyala to run QA. 我们目前将其从Ooyala撤出以进行质量检查。 We are trying to eliminate manual/human QA, and properly format many different values. 我们正在努力消除人工/人工质量检查,并正确设置许多不同的值的格式。 An example of a row is 行的一个示例是

Header Row
Hello
hello
Yes
yes
Bye
bye

Is there a way to write a script that targets a column, for example Header Row, and then finds and replaces an entire master list of values? 有没有一种方法可以编写以列为目标的脚本(例如“标题行”),然后查找并替换整个值的主列表? For example, somehow loading in a master doc that replaces all instances of hello with Hello and yes with Yes in one full swoop? 例如,以某种方式加载到主文档中,用一次Hello将所有Hello实例替换为Hello,将yes替换为yes? Would also be willing to try R or some other platform. 也愿意尝试R或其他平台。

If the example column is column A you can put in a free column: 如果示例列是A列,则可以放置一个自由列:

=ArrayFormula(IF(LEN(A2:A), UPPER(LEFT(A2:A,1)) & RIGHT(A2:A, LEN(A2:A) - 1), ""))

And then copy paste-values the resulting column into column A. 然后将结果列的粘贴值复制到列A中。

You can just combine the PROPER function along with arrayformula and a condition to check for text: 您可以仅将PROPER函数与arrayformula和条件进行组合以检查文本:

=ARRAYFORMULA(IF(ISTEXT(A:A),PROPER(A:A),))

在此处输入图片说明

or if you want the final list of values to be unique you can also do: 或者,如果您希望最终的值列表唯一,则可以执行以下操作:

=ARRAYFORMULA(UNIQUE(IF(ISTEXT(A:A),PROPER(A:A),)))

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 取代 Google Sheets 的数据库服务 - Database service to replace Google Sheets 使用 Google Sheets 将一列中的数据拆分到不同的工作表中 - Using Google Sheets to split data from a column into different sheets 批量更新/替换mysql - Bulk Update / Replace mysql Google表格-从许多文件中查询和导入范围 - Google Sheets - Query and Importrange from many files 从主嵌套列表创建多个列表 - creating multiple lists from a master nested list 通过Google Spreadsheet查找和替换数据库数据? - Find and Replace Database Data by Google Spreadsheet? Google 表格:如何连续、按顺序列出从另一张表格复制的数据行,并且不通过脚本覆盖当前数据? - Google Sheets: How do I list rows of data copied from another sheet consecutively, in order, and without overwriting current data through scripting? Mongoose:如何从 find() 批量更新修改后的数据 - Mongoose: How to bulk update modified data from find() 列出 SQL 服务器批量数据结果集的工具 - Tool to list down resultset from SQL Server for bulk data 从 Google 表格单元格的工具提示中复制/粘贴文本 - Copy/Paste Text From The Tool-tip Of Google Sheets Cell
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM