+ Reply to Thread
Results 1 to 5 of 5

Sort data

  1. #1
    Registered User
    Join Date
    01-30-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Sort data

    Hi, looking for help. I am trying to sort the data on a spreadsheet in the following way.

    Column A has lamp models, column B is the projectors they fit.

    I have seperated each lamp model with a blank line

    I want to sort the list by the number of rows for each lamp model
    Last edited by philiasfogg; 07-27-2011 at 06:40 AM. Reason: solved

  2. #2
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: Sort data

    Are you trying to work out which projects a certain lamp fits? If so, you could just pivot the data.

    An example of your spreadsheet might help clarify things.

    SAsplin

  3. #3
    Registered User
    Join Date
    01-30-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Sort data

    Sorry if I didnt make myself clear.

    I am uploading info to a website, but I can only do it a lamp at a time.
    So I want to get the lamp which fits the most projectors first, then the next and so on.

    That is why I want to sort the list in that way

    I have attached a small sample of the data, as the list is over 10,000 lines
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sort data

    try in g2 dragged to end
    =IF(A2="","",TEXT(COUNTIF(A:A,A2),"00000")&"-"&A2)
    sort by col g z to a
    or even
    =IF(A2="","",TEXT(COUNTIF(A:A,A2),"00000")&"-"&TEXT(A2,"000000000"))
    Last edited by martindwilson; 07-26-2011 at 11:42 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    01-30-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Sort data

    thanks that works

    just need to separate each lamp with a line now

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1