Need HELP !!!!

ahmad123

New Member
Joined
May 24, 2011
Messages
11
Hello,

I am asked to sort data in a pivot table sheet.
The data are dates but excel (for certain reason) dosent recognise that these are dates and trating them as numbers.
01.2010
02.2011
01.2011
02.2010

Excel is sorting it to me as following:

01.2010
01.2011
02.2010
02.2011

What i need is:

01.2010
02.2010
01.2011
02.2011
(just as if it was dates with MM.YYYY format)

ill appreciate greatly the help of anyone.

Thank you
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
You can convert these numbers stored as text into dates by using this formula: I assumed the 01.2010 was in A1, this formula then goes in B1

=--(LEFT(A1,2)& "/" &(RIGHT(A1,4)))

Then you can set the date format to whatever you like.

Takes 01.2010 to 01/2010 and changes it into a number that excel recognizes
 
Last edited:
Upvote 0
Thanks alot,

But can you please tell me what should i do after creating this B column??

how the A column could be sorted using the B column ??
 
Upvote 0
I would insert a new column to the immediate right of the original "dates"--the .01.2010. I would plug in this formula in the created column and then hide the original. Use the new column of usable data for the pivot table.

Is this what you wanted to know?
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,487
Members
452,917
Latest member
MrsMSalt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top