Hi
I'm having a little trouble with VBA and AutoFilter...
I have a column full of hostnames. I have done a lookup on these hostnames in another worksheet and have changed the cell.interior.color to RGB(255,0,0) for any hosts that are not in the other worksheet.
I now need to count the number of UNIQUE hostnames that are highlighted red.
I have worked out (with the help of this board ) how to count the red instances using Autofilter, but I cannot workout how to then further filter that column on unique instances.
e.g. my column of hostnames loooks like this post lookup (where host2 and host5 are red because they do not exist in the other worksheet):
Column A
host1
host2
host2
host2
host3
host4
host4
host4
host5
host5
host6
host7
from the above list I would want to count 2, i.e one instance of:
host2
host5
Can anyone help?
Thanks
Shane
I'm having a little trouble with VBA and AutoFilter...
I have a column full of hostnames. I have done a lookup on these hostnames in another worksheet and have changed the cell.interior.color to RGB(255,0,0) for any hosts that are not in the other worksheet.
I now need to count the number of UNIQUE hostnames that are highlighted red.
I have worked out (with the help of this board ) how to count the red instances using Autofilter, but I cannot workout how to then further filter that column on unique instances.
e.g. my column of hostnames loooks like this post lookup (where host2 and host5 are red because they do not exist in the other worksheet):
Column A
host1
host2
host2
host2
host3
host4
host4
host4
host5
host5
host6
host7
from the above list I would want to count 2, i.e one instance of:
host2
host5
Can anyone help?
Thanks
Shane