Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想编写一个公式以宏或条件格式执行以下操作
单元格 A 和 B 都有值
我想说:
如果 B=Yes,则将 A 列中的现有文本替换为 Yes,并保持 A 列中的其他值不变。
For i=0 To Worksheets("sheet 1").Cells(Rows.Count).End(xlUp).Row If Worksheets("sheet 1").Range("B" & i). Value = "Yes" Then Worksheets("Sheet").Range("A" & i).Value = "Yes" End If End For