![]() |
#2
|
||||
|
||||
![]()
Hi Bobby,
With your raw data in Sheet 1 and the list of welders in Sheet2 (col A), you could use the following macro: Code:
Sub Summarize() Application.ScreenUpdating = False Dim i As Long, j As Long, k As Long Dim StrName As String, iTally As Long With ThisWorkbook.Sheets("Sheet2") For i = 2 To .Range("A" & .Rows.Count).End(xlUp).Row StrName = .Range("A" & i).Value iTally = 0 With ThisWorkbook.Sheets("Sheet1") For j = 2 To .Range("A" & .Rows.Count).End(xlUp).Row For k = 2 To .Cells.SpecialCells(xlCellTypeLastCell).Column If .Cells(j, k).Value = StrName Then iTally = iTally + 1 Exit For End If Next Next End With .Range("B" & i).Value = iTally Next End With Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
counta, countif, hlookup |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Takket | Word VBA | 2 | 03-28-2014 04:58 PM |
need a macro that does the following | atomsk | Word VBA | 0 | 07-05-2010 07:29 AM |
Please help | Jarrod | Word | 1 | 06-05-2010 06:31 AM |
I need a macro, who can help me? | Bahir Barak | Word VBA | 1 | 05-26-2010 12:24 AM |
Macro help | NEHicks503 | Excel | 0 | 04-16-2010 07:29 AM |