|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
'估计差不多,自己测试一下,没有什么规律就用暴力法。未取重,自己按条件筛选就可以
Option Explicit
Sub test()
Dim i, mark, arr, t, row
mark = Split("2-8 3-8 1-2 1-4 1-6 1-8 2-2 3-4 3-2 3-4 5-8 5-2 6-2 8-2 8-4 8-6 8-8 10-3")
arr = Sheets("报名表单").[b7:i16]
ReDim brr(0, 17) As String
For i = 0 To UBound(mark)
t = Split(mark(i), "-")
brr(0, i) = arr(Val(t(0)), Val(t(1)))
Next
With Sheets("data")
row = .Cells(Rows.Count, "a").End(xlUp).row + 1
.Cells(row, "a").Resize(, UBound(mark, 1) + 1) = brr
End With
End Sub |
评分
-
2
查看全部评分
-
|