+ Reply to Thread
Results 1 to 5 of 5

Sort a column of entries into a number of columns, based on the last character in the entr

  1. #1
    Registered User
    Join Date
    06-11-2014
    Posts
    3

    Sort a column of entries into a number of columns, based on the last character in the entr

    Hopefully someone here has a simple solution for this.

    I need to sort a column of entries into a number of columns, based on the last character in the entry. I have attached images showing the column of data I have, and how I wish the data to be transformed.

    Initial Data:-

    S3P7LQs.png



    Desired result:-

    pAf6qTJ.png

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2013
    Posts
    7,821

    Re: Sort a column of entries into a number of columns, based on the last character in the

    see the attachment
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-11-2014
    Posts
    3

    Re: Sort a column of entries into a number of columns, based on the last character in the

    Thank you very much for taking the time to reply. Unfortunately I am not sure that this solution achieves what I am trying to do. I have attached the sheet I am working on - sample data is highlighted in Orange on Sheet 1, and the desired layout is illustrated on Sheet 2.

    ImageSort.xlsx

    Many thanks

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sort a column of entries into a number of columns, based on the last character in the

    I don't understand your example with Q. It doesn't make sense to me. Here is my solution with Q in its own column.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Registered User
    Join Date
    06-11-2014
    Posts
    3

    Re: Sort a column of entries into a number of columns, based on the last character in the

    Thank you very much for taking the time to look at the problem for me.

    I believe I failed to state the issue clearly.

    I need to transform the column of entries on Sheet1 so that:-

    i) Each ROW needs to contain the entries ONLY for one unique 10 digit sequence xxxxx-xxxxx
    ii) Moving across the columns for that row we need to see the entries ONLY for that 10 digit sequence, together with the letter suffixes (xxxxx-xxxxxa, xxxxx-xxxxxb etc.)
    iii) The 10 digit sequences have differing quantities of entries - some only have xxxxx-xxxxxa and xxxxx-xxxxxb, some only have xxxxx-xxxxxq, and some have entries for a - d
    iv) Looking at Sheet2 in the attached example, this is how I need the data to appear - so that I can easily see where there are missing file references

    I hope that this is a little more specific - but already many thanks to those who have responded

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Rearrange(sort) Columns based on number in Column header string.
    By hifliers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2014, 01:36 AM
  2. [SOLVED] Need a column of numbers based on text & number entries
    By prssmzk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-24-2013, 11:10 PM
  3. [SOLVED] Sort multiple columns based on column header
    By Langer101 in forum Excel Programming / VBA / Macros
    Replies: 39
    Last Post: 01-09-2013, 09:55 AM
  4. [SOLVED] Sorting rows of data based off a single column for a variable number of entries.
    By soxcrates in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2012, 12:31 PM
  5. [SOLVED] Column picked randomly with probability relative to number of entr
    By Neil Goldwasser in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-30-2006, 04:00 AM

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