我想在 Power Query 中实现以下功能:在每个单元格中,将一个 x 替换为标题的文本:
列 1 列 2 列 3 列 4 列 5
yz
xyxx
xxz
zzyxz
xzy
xzz
xzzx
此 VBA 代码导致目标:
选项显式
Sub Replace_x()
Dim rng As Range, c As Range
Set rng = UsedRange ' 我知道 ...
For Each c In rng
If c = "x" Then c = Cells(1, c.Column).Value 'Row_1 = headers
下一个 c
结束子
你有我的解决方案吗?
谢谢和最好的问候
Guenther