+ Reply to Thread
Results 1 to 3 of 3

Sorting problem

  1. #1
    Registered User
    Join Date
    08-01-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 2003
    Posts
    13

    Sorting problem

    Hi
    I'm trying to help a colleague with a wbs challenge they have.
    They want to show data in the following way, but the Sort function in Excel doesn't work properly with this if you try to sort using the WBF column. Looking at this example, the ultimate parent would be 1=Frame, below that you have 1,1=Headset (part of the Frame), then within the Hub you have 1,1,1=Headset Bearings......etc. Hope this makes sense and someone can suggest how this can be sorted numerically. Is there a different way the information in WBF column can be displayed that would sort properly? Incidentally in case you can't see the screenshot below properly, WBF is Col A with numberical values separated by Commas......Bike Item is the text description (Col B), which relates to corresponding numerical value in WBF Column.

    Thanks
    Wendy

    WBF Bike Item
    1 Frame
    2 Wheel
    1,1 Headset
    1,1,1 Headset Bearings
    2,1 Hub
    2,2 Spoke
    2,2,1 Spoke Nipple
    1,2 Bottom Bracket
    2,1,1 Cones
    2,1,2 Hub Cones
    Last edited by Wendy Collins; 10-12-2011 at 10:32 AM. Reason: screenshot not displaying properly

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Sorting problem

    Hi,

    I think you'll need to split the WBF values out and then sort on the multiple columns:

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,351

    Re: Sorting problem

    Hi Wendy,

    The problem is that 1.1.1 is no longer a number that excel recognizes. You need to convert all the column A numbers to Text using a formula like in C1 = A1 & ""
    Pull this formula down for all the WBF numbers and then copy the result over the top of the values in column A. Then sort by WBF and you will get what you want.

    See attached.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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