I have a workbook with 2x Worksheets “Data” and “Check”
On the worksheet Data I have a series of Values
Column A = Names
Column B = Cost
Column C = Dpt
I want to create a piece of VB code to extract from the list on the “Data” worksheet, only those lines where, there are 3x occurrences for a Name where Cost = zero
Eg
Data Worksheet Values
A1=JohnS
A2=SimonX
A3=JohnS
A4= JoeF
A5=JoeF
A6=JohnS
A7=JoeF
A8=SamK
A9=SamK
A10=SamK
B1=0
B2=15
B3=0
B4= 0
B5=0
B6=0
B7=8
B8=0
B9=0
B10=0
C1=A1
C2=B9
C3=A1
C4= F4
C5=F4
C6=A1
C7=F4
C8=X7
C9=X7
C10=X7
Result of ******* macro button with needed code would clear existing values in “Check” worksheet and show
A1=JohnS
B1=0
C1=A1
A2=SamK
B2=0
C2=X7
On the worksheet Data I have a series of Values
Column A = Names
Column B = Cost
Column C = Dpt
I want to create a piece of VB code to extract from the list on the “Data” worksheet, only those lines where, there are 3x occurrences for a Name where Cost = zero
Eg
Data Worksheet Values
A1=JohnS
A2=SimonX
A3=JohnS
A4= JoeF
A5=JoeF
A6=JohnS
A7=JoeF
A8=SamK
A9=SamK
A10=SamK
B1=0
B2=15
B3=0
B4= 0
B5=0
B6=0
B7=8
B8=0
B9=0
B10=0
C1=A1
C2=B9
C3=A1
C4= F4
C5=F4
C6=A1
C7=F4
C8=X7
C9=X7
C10=X7
Result of ******* macro button with needed code would clear existing values in “Check” worksheet and show
A1=JohnS
B1=0
C1=A1
A2=SamK
B2=0
C2=X7