Results 1 to 5 of 5

Sort by three columns, using formulas

Threaded View

  1. #1
    Registered User
    Join Date
    10-17-2019
    Location
    Hungary
    MS-Off Ver
    2003
    Posts
    3

    Sort by three columns, using formulas

    Hello everyone,

    I'm working on an excel table that handles electric cable types. The general structure of a cable type looks like: "cable name" "number of wires"x"wire cross section"mm2. For example, such a cable type looks like: NYY_J 4x240mm2. In my excel the list of cables need to be handled dynamically, because they are given as inputs, using drop down menus. And also, the number of cables in the list can vary. The task I am trying to achieve is that I want these cable types sorted. The first level of the sorting should base on the cable type, then the second on the number of wires, and lastly on the wire cross section. For example such a sorted list should look like: NYY_J 4x25mm2, NYY_J 4x240mm2, YSLY 3x1,5mm2, YSLY 4x1,5mm2, YSLY 4x50mm2. (Note: sorting only the whole strings do not work, because they are handled as texts, therefore 240 comes before 25)

    I managed to seperate the three parts of the cable type. The cable name is kept as text, and the number of wires and wire cross sections are converted to numbers, all in three different columns. I have successfully sorted the cable names alphabetically, then I also managed to sort the number of wires. Unfortunately I can't figure it out, how should I sort the last column (wire cross section) based on the two previous ones.

    I have attached the .xls file I'm working on. The headers are in Hungarian (sorry for that). The part, which I have trouble with is located on the worksheet called "Kigyűjtések", from C18, to K32. It's important, that I'm trying to make this table Excel 2003 compatible, so I'm only using functions and formulas that are available in 2003. In column D the duplicates are filtered out from the original list, then in column E, F and G the three parts of the cable type are separated. In column "I" the cable names are sorted, and in column J the number of wires are also sorted, based on the cable name. I would like to fill the column K with the sorted wire cross sections, based on the previous two columns. Then I would merge back the three components into one in the column L (this would be the easy part).

    I would be really-really grateful if you could help me with this problem. Any other suggestions, or a completely another approach that leads to the cable types being sorted the way I described are also welcome.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to sort two columns but one has formulas
    By Marvin85 in forum Excel General
    Replies: 7
    Last Post: 03-27-2015, 03:02 PM
  2. [SOLVED] How do I sort columns with IF formulas in them?
    By Kristine in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-27-2006, 04:15 PM
  3. [SOLVED] Sort & add columns without messing up formulas
    By kate in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2005, 12:05 PM

Tags for this Thread

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