We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide

need help sorting a list in excel

truthandjustice_2
truthandjustice_2 Posts: 21 Forumite
edited 29 October 2010 at 10:04PM in Techie Stuff
I have a list of items numeric in excel and they are all in A column e.g. (0,1,0,0,0,1) and I need them in fields A-f is there anyway this can be done without me going through all 28570 of them manually?

Thank you so much for your help. I need this for Uni
«1

Comments

  • KimYeovil
    KimYeovil Posts: 6,156 Forumite
    1,000 Posts Combo Breaker
    edited 29 October 2010 at 10:47PM
    Paste Special... > check 'transpose' in options box

    .
    .
    .
  • KimYeovil wrote: »
    Paste Special... > check 'transpose' in options box

    .
    .
    .
    Would have been my answer too
  • More4me
    More4me Posts: 258 Forumite
    Part of the Furniture 100 Posts Combo Breaker
    I think clarification is required in order to understand what you trying to achive, from your example combinition of numbers are not unique set to use IF formula, also you already have list/data in column A therefore impossible to spread data across A to F unless another worksheet is used, consider columns B to G on the same worksheet. What would be helpful to assist you would be to let us know what is the driving factor for the data to be allocated across the columns.
    More
  • More4me wrote: »
    I think clarification is required in order to understand what you trying to achive, from your example combinition of numbers are not unique set to use IF formula, also you already have list/data in column A therefore impossible to spread data across A to F unless another worksheet is used, consider columns B to G on the same worksheet. What would be helpful to assist you would be to let us know what is the driving factor for the data to be allocated across the columns.

    The numbers relate to data on astrophysics and relate to the star size location and classification etc. That is why I need them in A through F with correct subject headings in A1,B1 etc.
  • The numbers relate to data on astrophysics and relate to the star size location and classification etc. That is why I need them in A through F with correct subject headings in A1,B1 etc.
    Did you read post 2?! Select the data, edit -> copy, select cell A1, edit -> paste special, tick transpose...
  • truthandjustice_2
    truthandjustice_2 Posts: 21 Forumite
    edited 29 October 2010 at 11:50PM
    I tried the transpose and it just puts the sets of numbers across the rows rather than how it is now down the columns.

    what I have as an example from A1 - A4 is:

    (A1) 0,0,0,0,1,1 I need it to read A1 0 B1 0 C1 0 D1 0 E1 1 F1 1
    (A2) 0,6,0,0,1,1 I need it to read A2 0 B2 6 C2 0 D2 0 E2 1 F2 1
    (A3) 1,3,0,7,0,1 I need it to read A3 1 B3 3 C3 0 D3 7 E3 0 F3 1
    (A4) 3,0,1,0,1,4 I need it to read A4 3 B4 0 C4 1 D4 0 E4 1 F4 4

    What I need to do is split that into Column's A through F hopefully without having to manually doing it. As I say I have 28570 lines of data and to do it manually would take forever.
  • More4me
    More4me Posts: 258 Forumite
    Part of the Furniture 100 Posts Combo Breaker
    edited 30 October 2010 at 12:21AM
    Am I correct in thinkink that the last none zero number decides which column to be populated?
    More
  • If I read this correctly, you have 28570 cells of data in column A each with 6 columns of data separated by comma.

    There are various ways of doing this. I would probably take a fairly long winded approach by starting with the first row.

    Assuming no headers, then the first cell is A1.
    In B1 enter "=right(A1,9)"
    In C1 enter "=right(A1,7)"
    and so on to F1
    In G1 enter"=left(a1,1)
    Copy G1
    Highlight H1:L1 and paste.
    Highlight B1:L1 and copy
    Go to B1
    Press the shift Key (keep pressing it until I say to release it)
    Press the left key
    Press the Ctrl key and keep pressing that (as well as the shift key)
    Press the down key
    release the down key and Ctrl key but keep pressing the shift key
    Press the right key until you have columns B to L highlighted.
    Release both the right and shift key.
    Press the Ctrl key and hold it while you press the V key.

    You should now have the data you want to work with in columns G to L.

    However, it is reliant on what is in columns A to F. If you want to get rid of them you will need to copy cells G1 to L 28570 and paste them as values rather than formulae. If I remember correctly that is done by alt then e then s then v in excel.

    If using Open Office use semicolons instead of commas in the formulae and copy as values is Ctrl, shift and V altogether. You then get a menu come up where you untick "paste all" and tick numbers.
  • Stompa
    Stompa Posts: 8,390 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Select all your data in column A, go to 'Data > Text to Columns...', choose delimited, and specify a comma as your delimiter. Job done.
    Stompa
  • Stompa wrote: »
    Select all your data in column A, go to 'Data > Text to Columns...', choose delimited, and specify a comma as your delimiter. Job done.

    This one.....
    If you haven't got it - please don't flaunt it. TIA.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 353.5K Banking & Borrowing
  • 254.1K Reduce Debt & Boost Income
  • 455K Spending & Discounts
  • 246.6K Work, Benefits & Business
  • 602.9K Mortgages, Homes & Bills
  • 178.1K Life & Family
  • 260.6K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.