请教一个Excel筛选后排序的问题
excel吧
全部回复
仅看楼主
level 1
需要对图一中“序号”列的“ 数字”行进行编序号,做成图二的样子(主材 行不要 序号)。先对图一进行筛选得到图三,图三里面怎么快速生成序号,下拉没有用。[委屈]
2022年03月07日 08点03分 1
level 1
有木有大神给指导下
2022年03月07日 08点03分 2
level 11
'估计是这意思的吧
Option Explicit
Sub abc()
 Dim i, m, t
 For i = 2 To Cells(Rows.Count, "b").End(xlUp).Row
  t = Trim(Cells(i, "b").Value)
  If Len(t) Then
   If IsNumeric(Left(t, 1)) Then
    m = m + 1
    Cells(i, "a") = m
   Else
    Cells(i, "a") = Empty
   End If
  Else
   Cells(i, "a") = Empty
  End If
 Next
End Sub
2022年03月07日 13点03分 3
level 11
又吃掉了 ?
2022年03月07日 13点03分 4
level 13
2022年03月08日 10点03分 5
=IF(N(B2),MAX(A$1:A1)+1,"")
2022年03月08日 14点03分
2022年03月08日 23点03分
1