excl表格如何实现三变量统计
发布网友
发布时间:2022-04-23 08:43
我来回答
共1个回答
热心网友
时间:2022-05-13 20:52
如图,A列为原值,C列为组合值
代码:
sub test()
m = 1
For i = 1 To 3
For j = 1 To 3
For k = 1 To 3
If i <> j And j <> k And k <> i Then
Cells(m, 3).Value = Cells(i, 1).Value & Cells(j, 1).Value & Cells(k, 1).Value
m = m + 1
End If
Next
Next
Next
End Sub