VBA - Arrange Data in chronological order referencing 3 seperate columns

Mikeymike_W

Board Regular
Joined
Feb 25, 2016
Messages
171
Hi,

I am trying to create a macro that will arange my data in chronological order from oldest to newest.

I have 3 seperate columns (G, I & K) which contain dates, although some of the cells may be blank or contain dates in each column.
Is it possible to find the earliest date in each row, referencing these columns, and then have the rows arraged chronologically?

Many thanks for any help (y)
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi and welcome to the MrExcel Message Board.

You could add a helper column with the minimum value in it and then sort by it?

Excel 2013
GHIJKL
1x7x8x9x10x11x12
211/01/201216/10/201110/04/201216/10/2011
310/01/201231/10/201129/02/201231/10/2011
407/01/201207/11/201114/02/201207/11/2011
520/11/201105/01/201220/11/2011
601/01/201221/11/201111/02/201221/11/2011
708/01/201224/11/201114/04/201224/11/2011
805/01/201205/12/201128/02/201205/12/2011
903/01/201227/12/201127/12/2011
1006/01/201227/12/201130/03/201227/12/2011
1104/01/201230/12/201112/02/201230/12/2011
1209/01/201221/01/201209/01/2012
Sheet1
Cell Formulas
RangeFormula
L2=MIN(G2,I2,K2)
 
Upvote 0

Forum statistics

Threads
1,214,885
Messages
6,122,085
Members
449,064
Latest member
MattDRT

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