Forum

Notifications
Clear all

Date Grouping

8 Posts
2 Users
0 Reactions
60 Views
(@david_ng)
Posts: 310
Reputable Member
Topic starter
 

How to write a macro to group the date [ mid of the month , end of the month]

pls refer attached

 
Posted : 08/06/2018 9:09 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi David

In cell E2 enter :

=IF(DAY(D2)<=15,"Mid","End")

Hope this helps

Sunny

 
Posted : 08/06/2018 9:42 pm
(@david_ng)
Posts: 310
Reputable Member
Topic starter
 

Thanks Sunny got it ...

Have a ncie weekend..

 
Posted : 08/06/2018 9:54 pm
(@david_ng)
Posts: 310
Reputable Member
Topic starter
 

But how to sort /group the date in pivot table chronologically ??

 
Posted : 11/06/2018 9:46 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi David

The problem is your Net Due Date1 is not a true date but text.

Just put a formula in column H example =G2

Custom Format the column G to mmm-yy and then recreate your PivotTable using this column.

Hope this helps.

Sunny

 
Posted : 11/06/2018 10:35 pm
(@david_ng)
Posts: 310
Reputable Member
Topic starter
 

Yes it works, but how to group by month summary  ?

 
Posted : 11/06/2018 11:08 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Just right-click on the row label and select Group

Then select Months and Years

 
Posted : 11/06/2018 11:13 pm
(@david_ng)
Posts: 310
Reputable Member
Topic starter
 

Yes, got it , thanks Sunny.

 
Posted : 11/06/2018 11:43 pm
Share: