Sub 같은값순번매기기()
On Error GoTo errHandler
Dim lastRow As Long, k As Long, t As Long
Dim xRange As Range
Dim compValue As String
Dim listCheck As Variant
lastRow = Cells(Rows.Count, "C").End(xlUp).Row
For t = 2 To lastRow
Set xRange = Range("C1:C" & t)
k = Application.WorksheetFunction.CountIf(xRange, Cells(t, 3))
Worksheets("사용내역").Cells(t, 7) = k
Next t
Exit Sub
'컴퓨터 > 엑셀' 카테고리의 다른 글
다른엑셀파일 ado (0) | 2018.10.22 |
---|---|
excel to mysql (0) | 2018.08.08 |
중복행 삭제 (0) | 2018.07.03 |
VBA 기본 명령어들(선그리기, 색상지정, 양식지정) (0) | 2018.06.27 |
조건부서식-테두리-셀색 (0) | 2018.06.22 |