There is an Excel 2016 file with data about some events, the main sheet contains an ID and a date for each event, like this:
ID Date 1 2017-10-02 2 2017 3 2017-09 4 2017-09-25 … etc.
Most of the dates include year, month and day, but for some ones the exact day is not known, and some ones are accurate to a year only.
On another sheet I want this range to be sorted by date (newest first) following this algorithm:
- First, all events with full dates are sorted as usually.
- Second, for any event having only month, it is inserted into the middle of this month: not on the 15th day, but between first and last half of already sorted events.
- Third, for any event having only year, it is inserted into the middle of this year, similar to item 2.
Is it possible to achieve this with Excel formulas without VBA and (very important!) without assigning fake months and days to the events where they are absent?