Results 1 to 2 of 2

Thread: Help to Order by colum

  1. #1

    Unhappy Help to Order by colum



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hi! Ineed help to order by "X" colum with complicated data.

    this colum have a text format. contains a book number and year like this "1542/02" book number 1542 from 2002.

    how can do to order by year ? it's imposible ? i mean, first criteria must be year, later the book number.

    maybe i have to change de cell format for a custom one, i try somes but get an error ..... and then the order data. uff, headake

    thanks !!

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,209
    Articles
    57
    Blog Entries
    14
    What I would do is use another column to flip the data into the format that I need it. Assuming your data is in column A:
    =right(A2,2)&"/"&left(A2,4)

    If you run that down a column you should end up with your year first, and now it should sort by year then book.
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training) or with my book M is for Data Monkey!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •