简体   繁体   中英

Bulk Find and Replace from a Master List in Google Sheets

I have a spreadsheet in Google Sheets. We currently pulled it from Ooyala to run QA. 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? Would also be willing to try R or some other platform.

If the example column is column A you can put in a free column:

=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.

You can just combine the PROPER function along with arrayformula and a condition to check for text:

=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),)))

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM