The code below sorts data for me but I will need a modification so as to achieve my new goal.
From the attached spreadsheet, the first tab called “data” is the data that I want to sort in a particular format. The second tab called “Results” is what I sorted already with the old code, while the third tab “Preferred” is the actual thing that I need.
This is what I need:
Whenever the macro meets a cell that has no value in it, it should replace the blank cell with “1*” also whenever the macro meets a cell that has the same date (as you can see that the orange cells have the same date as the gray rows), instead of outputting the result as shown in “Results” tab, I want the macro to combine these rows as shown in the “preferred” tab.
Also you can see that the yellow cell has the same date as “1-Feb-07” I will like to combine it as shown in the preferred tab.
Thanks a lot for your help.
Below is my code:
Bookmarks