Sort by date columns

Serdarrk

New Member
Joined
Mar 7, 2018
Messages
36
Hello,

In addition there is a file with 2 sheets. My purpose that sort by date from B1 columns to end in Sayfa1 and Sayfa2. I mean they must sort from 02.01.2007 to 31.12.2007 in every pages. Can you help me please? Also every date has additional character like -1 . I want to clean them but its not much important. First aim sort by date

https://www.dropbox.com/s/7jef7hm8rucdg58/01.02.2007-1.xls?dl=0
 
Last edited:

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
they will sort if they are real dates, as a number, otherwise you will need to do something that turns text into the right format
 
Upvote 0
To sort by those into date order you are going to have to convert them to true dates. I dont know your local date format but if that were my machine this would work:

=0+SUBSTITUTE(LEFT(A1,FIND("-",A1&"-")-1),".","/")

Then you could sort by that instead.
 
Upvote 0
You dont run it. Its a formula to convert your 'dates' to true dates. Only true dates can be sorted into date order.
 
Upvote 0
Follow this procedure.

Inset two blank row number 3 & 4. That is Row 2 & 3 & 4 are blank rows.
In B2 Insert formula then drag across upto last column (IK2)

=DATEVALUE(LEFT(SUBSTITUTE(B1,".","/"),10))

Select B2:IK2 --> Copy

Select B4 --> Paste Special --> Values --> OK

Select tab DATA --> Sort --> Options

In Sort Options Select --> Sort Left to Right -->OK

In Sort By Select ROW 4

Sort On select Values

Order select A to Z --> OK

This completes sorting horizontally.
 
Upvote 0

Forum statistics

Threads
1,215,693
Messages
6,126,240
Members
449,304
Latest member
hagia_sofia

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