Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Date sorting issue in pivot table

$
0
0

Attaching a stripped down version of my Excel workbook here.

1. I imported some data from SQL Server in an Excel table (in the attached workbook data> TableLiquidityData)

2. I created a simple pivot table with Trade Date on row and Contract Date on column (worksheet name "good"). Date sorting works perfectly.

3. I created exactly same pivot table (as in "good"), but group Trade Date and Contract Date by (Days, Months, Years) and (Month, Year) - worksheet name "bad".

4. I say bad because this pivot table is sorting Trade Date as text. To add to this complexity, "bad" worksheet sorts fine on some other desktops.

5. My objective is to find a way so that it works on all systems irrespective of locale and other settings.

Need your help.

PS: One of the observation, after grouping the Trade Date in bad worksheet, the year info is lost (I highlighted that in red-yellow text). Bad, but that also do not answer text sorting (at least they are still dates).


Thanks - Mukesh


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>