How to use VBA sort 3 fields and merge first field

shi353

New Member
Joined
Dec 10, 2016
Messages
7
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

F1F2F3F4
1MaryM2019/2/2
2WangFM2019/2/3
3MaryM2019/2/4
4ChangM2019/2/5
5MaryM2019/2/6
6WangFM2019/2/7
7WangFM2019/2/8
8MaryFM2019/2/9
9WangFM2019/2/10
10MaryFM2019/2/11
11MaryFM2019/2/12

<tbody>
</tbody>
 
Last edited by a moderator:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Wanted Result! below
F1F2F3F4F5F6
4ChangM2019/2/512019/2/5
8MaryFM2019/2/932019/2/9,2019/2/11,2019/2/12
10FM2019/2/11  
11FM2019/2/12  
1MaryM2019/2/232019/2/2,2019/2/4,2019/2/6
3
M2019/2/4  
5M2019/2/6  
2WangFM2019/2/342019/2/3,2019/2/7,2019/2/8,2019/2/10
6FM2019/2/7  
7FM2019/2/8  
9FM2019/2/10  

<colgroup><col span="3"><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col style="mso-width-source:userset;mso-width-alt:2304; width:47pt" width="63" span="3"> <col style="mso-width-source:userset;mso-width-alt:4278;width:88pt" width="117"> <col style="mso-width-source:userset;mso-width-alt:2742;width:56pt" width="75"> <col style="mso-width-source:userset;mso-width-alt:10825;width:222pt" width="296"> </colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,984
Members
449,092
Latest member
Mr Hughes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top