+ Reply to Thread
Results 1 to 7 of 7

Adding points delaminated numbers in cells

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    London
    MS-Off Ver
    Excel 2002
    Posts
    4

    Question Adding points delaminated numbers in cells

    With numbers like these - i.e. with each line of data fitting in 1 cell (6 cells in column A):

    2.12.3 (2)
    12.12.0 (2)
    17.4.0 (4)
    9.4.9 (3)
    4.4.17 (4)
    0.0.1 (1)

    How can I add the points delimited numbers in the cells, and sort the cells by – firstly the number within the brackets, and secondly the sum of the points delimited numbers?

    The result should look like this:

    0.0.1 (1)
    2.12.3 (2)
    12.12.0 (2)
    9.4.9 (3)
    17.4.0 (4)
    4.4.17 (4)

    Any help would be greatly appreciated
    Regards
    Last edited by JamesDriver; 10-25-2012 at 06:54 AM. Reason: Typo

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,455

    Re: Adding points delaminated numbers in cells

    You could, maybe, use Text to Columns using point/dot/full stop/decimal point and space as delimiters. Then sort on the last column and add up the others.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    London
    MS-Off Ver
    Excel 2002
    Posts
    4

    Re: Adding points delaminated numbers in cells

    Hmmm.... Sorry, but I don't understand your answer . I cannot change the way the data looks, and it is already Delimited.
    Regards
    Last edited by JamesDriver; 10-25-2012 at 06:54 AM. Reason: Typo

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,455

    Re: Adding points delaminated numbers in cells

    HTML Code: 

    Sort on column F; total in column G ... sort on that too, if you wish.

    Regards, TMS

  5. #5
    Registered User
    Join Date
    10-25-2012
    Location
    London
    MS-Off Ver
    Excel 2002
    Posts
    4

    Re: Adding points delaminated numbers in cells

    Yes that works well, many thanks.

    Now that only leaves me with one last problem, I have multiple columns sided by side with this type of data and each column needs to be sorted column for column and without distorting the data in the cells. Unfortunately I am a bit rusty on Excel, but the way I see it – if I make the formulas work in the background on another worksheet, how do I then link the sorting on that background worksheet so as to have the data sorted on the main worksheet page? Maybe this is a silly question but I don’t know the answer

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,455

    Re: Adding points delaminated numbers in cells

    I've never tried to do text to columns to another sheet. Do you not have enough free columns to the right of the data?

    Failing that, do each one separately and record it in a macro. Save the values of the sort field and the total and repeat the process as required.

    The other option is to write a UDF to extract the total and the sort field.


    Regards, TMS

  7. #7
    Registered User
    Join Date
    10-25-2012
    Location
    London
    MS-Off Ver
    Excel 2002
    Posts
    4

    Re: Adding points delaminated numbers in cells

    Thanks for the suggestions - I'll have a play.

    Regaeds JD

+ 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