Reduce duplicates to 1 with a count of how many before
On Saturday, February 22, 2014 2:14:44 AM UTC-8, Claus Busch wrote:
Hi Howard,
found an error. Try instead
Sub Test_CB2()
Hi Claus,
The Test_CB is excellent!!
A work of art to me.
The Test_CB2 is puzzling to me. Not sure what the results should look like.
If I run the code on this data on sheet 1
P-1
P-2
P-3 x
P-5
P-6
P-7 x
P-8
P-9
P-10 x
P-1
P-2
P-3 x
P-5
P-6
P-7 x
P-8
P-9
P-10 x
I get this on sheet 2.
P-1
P-2
P-3 x
P-5
P-6
P-7 x
P-8
P-9
P-10 x
P-1
P-2
P-3 x
P-5
P-6
P-7 x
P-8
P-9
P-10 x
#N/A #N/A
And an error alert Invalid procedure call or argument
I did change all the A1's and B1's to A2's and B2's to avoid headers. Did the same with Test_CB and it works well.
Howard
|