vasim
Member
I have attendance record of employees like
Name 01/01/2011 02/01/2011 03/01/2011 04/01/2011 05/01/2011
ABC A A A A
ABC A A A A
XYZ A A A A
XYZ A A A A
PQR A A A A
A macro copy paste this in another worksheet and then I need to (count) subtotal it. I prefer using Subtotal under Data tab to have the result. However the blank cells when copy pasted from macro are considered as a non blank cell in the count subtotal.
Name 01/01/2011 02/01/2011 03/01/2011 04/01/2011 05/01/2011
ABC A A A A
ABC A A A A
ABC Count 2 2 2 2 2
XYZ A A A A
XYZ A A A A
XYZ Count 2 2 2 2 2
PQR A A A A
PQR Count 1 1 1 1 1
Where the answer should be this
Name 01/01/2011 02/01/2011 03/01/2011 04/01/2011 05/01/2011
ABC A A A A
ABC A A A A
ABC Count 1 2 2 1 2
XYZ A A A A
XYZ A A A A
XYZ Count 2 1 1 2 2
PQR A A A A
PQR Count 0 1 1 1 1
Name 01/01/2011 02/01/2011 03/01/2011 04/01/2011 05/01/2011
ABC A A A A
ABC A A A A
XYZ A A A A
XYZ A A A A
PQR A A A A
A macro copy paste this in another worksheet and then I need to (count) subtotal it. I prefer using Subtotal under Data tab to have the result. However the blank cells when copy pasted from macro are considered as a non blank cell in the count subtotal.
Name 01/01/2011 02/01/2011 03/01/2011 04/01/2011 05/01/2011
ABC A A A A
ABC A A A A
ABC Count 2 2 2 2 2
XYZ A A A A
XYZ A A A A
XYZ Count 2 2 2 2 2
PQR A A A A
PQR Count 1 1 1 1 1
Where the answer should be this
Name 01/01/2011 02/01/2011 03/01/2011 04/01/2011 05/01/2011
ABC A A A A
ABC A A A A
ABC Count 1 2 2 1 2
XYZ A A A A
XYZ A A A A
XYZ Count 2 1 1 2 2
PQR A A A A
PQR Count 0 1 1 1 1