Solved

Sort data by Date based on 4 column worksheet (Excel 2003)

Posted on 2011-03-04
3
286 Views
Last Modified: 2012-05-11
Hi

I have a worksheet in Excel 2003 that contains about 400 rows, (i have pasted 2 rowns below)

Colum 4 contains a date, i would like all data sorted by date order based upon this row, i was playing around myself however i managed to get column 4 in date order however colums 1 -3  never changed order so meant all my data was out of sync, can anybody tell me how to do it

Thanks

Full Path                    Size                 Allocated            Last Change    

E:\Users\GriffithsD\      14969.5 MB      9414.4 MB      03/03/2011            
E:\Users\EllisD\       7806.9 MB      5838.3 MB      04/03/2011                        
0
Comment
Question by:ncomper
3 Comments
 
LVL 22

Accepted Solution

by:
spattewar earned 500 total points
Comment Utility
Select your entire data set starting from column 1 till you last column. then go to menu Data--Sort. Excel will automatically assume your first row of the data set as column header, if not then check the check box that says so. Select your date column in the sort by box and select asc or desc. This should sort your entire data.
0
 
LVL 17

Expert Comment

by:gtgloner
Comment Utility
Here is some VBA code if you prefer to do it that way:
Sub sortdata()

    Columns("A:D").Select
    Selection.Sort Key1:=Range("D2"), Order1:=xlAscending, Header:=xlGuess, _
        OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
        DataOption1:=xlSortNormal
    Range("A1").Select
    
End Sub

Open in new window

0
 
LVL 5

Author Comment

by:ncomper
Comment Utility
Thanks all, doing it via data-sort worked perfect

0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Outlook Free & Paid Tools
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now