Want sort F2 F3 F4 first , merge F2 then count first item show happen counts and belongings date
Second picture show my wanted result
Can VBA do it ?Please help
Raw data below
<tbody>
[TD="class: xl70"]F1[/TD]
[TD="class: xl70, width: 63"]F2[/TD]
[TD="class: xl70, width: 63"]F3[/TD]
[TD="class: xl70, width: 117"]F4[/TD]
[TD="class: xl67"]1[/TD]
[TD="class: xl66"]Mary[/TD]
[TD="class: xl66"]M[/TD]
[TD="class: xl69"]2019/2/2[/TD]
[TD="class: xl67"]2[/TD]
[TD="class: xl68"]Wang[/TD]
[TD="class: xl68"]FM[/TD]
[TD="class: xl69"]2019/2/3[/TD]
[TD="class: xl67"]3[/TD]
[TD="class: xl66"]Mary[/TD]
[TD="class: xl66"]M[/TD]
[TD="class: xl69"]2019/2/4[/TD]
[TD="class: xl67"]4[/TD]
[TD="class: xl71"]Chang[/TD]
[TD="class: xl68"]M[/TD]
[TD="class: xl69"]2019/2/5[/TD]
[TD="class: xl67"]5[/TD]
[TD="class: xl66"]Mary[/TD]
[TD="class: xl66"]M[/TD]
[TD="class: xl69"]2019/2/6[/TD]
[TD="class: xl67"]6[/TD]
[TD="class: xl68"]Wang[/TD]
[TD="class: xl68"]FM[/TD]
[TD="class: xl69"]2019/2/7[/TD]
[TD="class: xl67"]7[/TD]
[TD="class: xl68"]Wang[/TD]
[TD="class: xl68"]FM[/TD]
[TD="class: xl69"]2019/2/8[/TD]
[TD="class: xl67"]8[/TD]
[TD="class: xl65"]Mary[/TD]
[TD="class: xl65"]FM[/TD]
[TD="class: xl69"]2019/2/9[/TD]
[TD="class: xl67"]9[/TD]
[TD="class: xl68"]Wang[/TD]
[TD="class: xl68"]FM[/TD]
[TD="class: xl69"]2019/2/10[/TD]
[TD="class: xl67"]10[/TD]
[TD="class: xl65"]Mary[/TD]
[TD="class: xl65"]FM[/TD]
[TD="class: xl69"]2019/2/11[/TD]
[TD="class: xl67"]11[/TD]
[TD="class: xl65"]Mary[/TD]
[TD="class: xl65"]FM[/TD]
[TD="class: xl69"]2019/2/12[/TD]
</tbody>
Second picture show my wanted result
Can VBA do it ?Please help
Raw data below
<tbody>
[TD="class: xl70"]F1[/TD]
[TD="class: xl70, width: 63"]F2[/TD]
[TD="class: xl70, width: 63"]F3[/TD]
[TD="class: xl70, width: 117"]F4[/TD]
[TD="class: xl67"]1[/TD]
[TD="class: xl66"]Mary[/TD]
[TD="class: xl66"]M[/TD]
[TD="class: xl69"]2019/2/2[/TD]
[TD="class: xl67"]2[/TD]
[TD="class: xl68"]Wang[/TD]
[TD="class: xl68"]FM[/TD]
[TD="class: xl69"]2019/2/3[/TD]
[TD="class: xl67"]3[/TD]
[TD="class: xl66"]Mary[/TD]
[TD="class: xl66"]M[/TD]
[TD="class: xl69"]2019/2/4[/TD]
[TD="class: xl67"]4[/TD]
[TD="class: xl71"]Chang[/TD]
[TD="class: xl68"]M[/TD]
[TD="class: xl69"]2019/2/5[/TD]
[TD="class: xl67"]5[/TD]
[TD="class: xl66"]Mary[/TD]
[TD="class: xl66"]M[/TD]
[TD="class: xl69"]2019/2/6[/TD]
[TD="class: xl67"]6[/TD]
[TD="class: xl68"]Wang[/TD]
[TD="class: xl68"]FM[/TD]
[TD="class: xl69"]2019/2/7[/TD]
[TD="class: xl67"]7[/TD]
[TD="class: xl68"]Wang[/TD]
[TD="class: xl68"]FM[/TD]
[TD="class: xl69"]2019/2/8[/TD]
[TD="class: xl67"]8[/TD]
[TD="class: xl65"]Mary[/TD]
[TD="class: xl65"]FM[/TD]
[TD="class: xl69"]2019/2/9[/TD]
[TD="class: xl67"]9[/TD]
[TD="class: xl68"]Wang[/TD]
[TD="class: xl68"]FM[/TD]
[TD="class: xl69"]2019/2/10[/TD]
[TD="class: xl67"]10[/TD]
[TD="class: xl65"]Mary[/TD]
[TD="class: xl65"]FM[/TD]
[TD="class: xl69"]2019/2/11[/TD]
[TD="class: xl67"]11[/TD]
[TD="class: xl65"]Mary[/TD]
[TD="class: xl65"]FM[/TD]
[TD="class: xl69"]2019/2/12[/TD]
</tbody>
Last edited by a moderator: