+ Reply to Thread
Results 1 to 8 of 8

Sort out a column.

  1. #1
    Registered User
    Join Date
    09-29-2008
    Location
    scotland
    Posts
    6

    Sort out a column.

    I wonder if anyone has a solution to my prob. I have a list of money transactions. But instead of 2 columns with in and out they are all in one and have money in. And money out. Is it possible to separate them into separate columns without doing it one by one. Thanks for any help.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Sort out a column.

    If they are all in one column, where does it say "money in" and "money out"?
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: Sort out a column.

    Simple answer is yes. But to give you guidance on how to do this, it is best if you upload a sample workbook that is representative of your actual file.

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    09-29-2008
    Location
    scotland
    Posts
    6

    Re: Sort out a column.

    Sorry it’s 2 column with one column of text with money in money out and another with a column of money.

  5. #5
    Registered User
    Join Date
    09-29-2008
    Location
    scotland
    Posts
    6

    Re: Sort out a column.

    Something like attached but only much longer.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,565

    Re: Sort out a column.

    If I correctly understand what the desired outcome should look like, then perhaps the following will help.
    The column headers 'Money in' and 'Money out' are in E1 and F1 respectively.
    1. E2 is populated using: =IFERROR(INDEX($B$1:$B$5,AGGREGATE(15,6,ROW(A$1:A$5)/($A$1:$A$5=E$1),ROWS(A$1:A1))),"")
    2. Drag the fill handle over to F2
    3. While E2:F2 are still selected drag down to F5.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    09-29-2008
    Location
    scotland
    Posts
    6

    Re: Sort out a column.

    Thanks have been away but away to try it out thank you.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,565

    Re: Sort out a column.

    You're Welcome and thank you for the feedback. If that resolves the issue, please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. Replies: 8
    Last Post: 05-12-2019, 07:35 AM
  2. Replies: 12
    Last Post: 09-08-2018, 10:34 PM
  3. Replies: 1
    Last Post: 03-29-2018, 07:58 AM
  4. Replies: 5
    Last Post: 05-09-2017, 08:48 AM
  5. Replies: 1
    Last Post: 03-04-2015, 02:57 PM
  6. [SOLVED] I have a sort macro. How to add script to preselect rows to sort based on column value?
    By Jasonhouse in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-09-2014, 02:25 AM
  7. Replies: 2
    Last Post: 01-15-2014, 09:31 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