简体   繁体   中英

How To Sort Excel Pivot table chronologically

I need help sorting my pivot table by months over a couple years. I've tried using a hyphen on the date column, a space.

在此处输入图片说明

My date column looks like this:

Could it be because yearMo is a calculated field?

I am using this formula: =CONCAT(L2,CONCAT(" ",M2))

The column datatype is 'date' . Thank you.

I don't think that excel recognizes your date, instead of the concat you could use

=date(M2,L2,1)

then custom format as M YYYY so you get the same result visually

The graph can thereby recognize it has a date to sort chronologically

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM