Impossible to Sort

Solved
Viking58 Posted messages 186 Registration date   Status Membre Last intervention   -  
Viking58 Posted messages 186 Registration date   Status Membre Last intervention   -
Hello.

One of the toughest problems I've encountered in Excel:

I want to sort the dates in column B chronologically.
Having dates from before 1900 in column A, I applied the following formula that was given to me, to the entire column.
=IF(ISNUMBER(A1520),DATE(YEAR(A1520)+1000,MONTH(A1520),DAY(A1520)),(LEFT(A1520,2) & MID(A1520,3,LEN(A1520)-7) & VALUE(RIGHT(A1520,4))+1000)*1)

This allows me to obtain a "sortable" date in column B

However, when I try to sort, Excel gives me the message:


I lost a lot of hours yesterday trying to find an answer, read tons of posts, with no result.

My cells are not merged
Their size is identical since I set the row height for the entire table upon creation.

Configuration: Windows / Firefox 40.0

--
Windows 8.1 Office 2013

6 réponses

Frenchie83 Posted messages 2254 Status Membre 339
 
Hello
Excel doesn't invent anything.
Would you mind merging cells A1 and B1 for the sake of readability to make just one and naming it "Date" just in case?
0
Viking58 Posted messages 186 Registration date   Status Membre Last intervention   7
 
No, Frenchie83.
Column A is in the date format "Tuesday, August 25, 2015"
Column B is in the date format "25/08/3015"
They are therefore not merged.
0