+ Reply to Thread
Results 1 to 12 of 12

Help with sorting data

  1. #1
    Registered User
    Join Date
    06-26-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    34

    Help with sorting data

    Guys

    i have a list in excel that has a column (A) that changes and the data is listed in column E that contains all the values.

    I wish to pull all the data from E into one cell (concatenate) for a given A value.

    (ive attached a pic to make it clearer)

    Any pointers for doing this??

    excelhelp.jpg

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Help with sorting data

    column e is missing in the picture
    confused on what you are actually trying to achieve

    can you provide a sample spreadsheet (sanitized from private data of course) with before and after to give better understanding
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    06-26-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Help with sorting data

    sorry caused confusion

    anyway i have attached a before and after sheet....before.jpg

    after2.jpg

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Help with sorting data

    i can only think of a very long if statement to do the job and even then i would need to know how much data you are looking at

  5. #5
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Help with sorting data

    E2 =
    Please Login or Register  to view this content.
    Is this okie?If not, please provide a sample workbook. Thanks

    Edit:
    Please drag down to the last row of your data. Then copy and paste as value. before delete the empty row of Column A.
    Last edited by wenqq3; 06-27-2013 at 05:39 AM.
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Help with sorting data

    amended the code slightly as the code did not work when two consecutive lines with no space

    Please Login or Register  to view this content.
    works for all but the last one where you just need to amend one cell of extra ,

  7. #7
    Registered User
    Join Date
    06-26-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Help with sorting data

    thanks hundinaling

    this comes close to working - but not quite....i modified to read

    IF(A2="",IF(A3="",CONCATENATE(E2,",",E3),E2),IF(A3<>"",E2,CONCATENATE(E2,",",E3)))

    and i get a good result for the lines where there is either 1 or two entries.......however when there is 3 or more lines i only get the result for two of the entries such as the attached work book

    ideally all the results for a given A column value would appear in the first line of the A column.....
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Help with sorting data

    Please Login or Register  to view this content.
    hI milesy,
    You should do like this.

  9. #9
    Registered User
    Join Date
    06-26-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Help with sorting data

    mmmmmm not quite

    if i change the last F3 from above to E3 it works - again to a point

    for anything that contains more than 2 responses (from the attached workbook above look at line 20 as an example there are 14 values attributable to this line....also when there are blank lines (say in line 21 ) then i still get a response from the formula

    perhaps the better was is something that will extend the values in column A ....as in if it can populate the value of A1 in A2 until the value of A changes........that way i can pull in all the variables from column E using column A as a reference?

  10. #10
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Help with sorting data

    G800000355 QT720 Bottom PCB(edit).xls

    Hi milesy,
    Do is the col F are the answer you need?

  11. #11
    Registered User
    Join Date
    06-26-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Help with sorting data

    that works perfectly

    so now i just sort for column A and my results should line up with the A value required

    so what was wrong previously

  12. #12
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Help with sorting data

    As mention at post#8.Because you are copy col D value, that why it only show two. The formula is copy cell below (Col F) if col A is blank.

+ 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