我需要从电子表格中搜索一行中的单词,并使用不同的值更新同一行中的另一个单元格。例如,我有这样的数据。我需要从下面的电子表格中搜索“Smith”这个人,并将该行的“状态”列的值从“启用”更新为“禁用”。
"Region","Zone","Customer","Process","Status"
"TEST","East","Smith","HR","Disabled"
"TEST","East","Allen","Finance","Enabled"
"TEST","East","Jake","Payroll","Enabled"
Run Code Online (Sandbox Code Playgroud)
在发布问题之前,我尝试了正则表达式和其他一些函数。但我无法让他们工作。
谢谢。
powershell ×1