+ Reply to Thread
Results 1 to 12 of 12

Arranging two column's based on one column's details

  1. #1
    Registered User
    Join Date
    04-20-2015
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    85

    Arranging two column's based on one column's details

    Hi,

    I'm trying to have columns B and C arranged so that the content of B corresponds to A, yet the content of C follows B's original arrangement.
    In this example, the content of columns A and B will have exact duplicates of one another to help with the arranging.

    Below is an image example on what I'm looking for.

    Original:
    Aimage.PNG

    Result:
    Bimage.PNG

    As you can see, B (and C following B) has been arranged to correspond to A's content the blanks will be skipped in case there's no content.

    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Arranging two column's based on one column's details

    You would have to determine how to logically relate the columns.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    04-20-2015
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    85

    Re: Arranging two column's based on one column's details

    Quote Originally Posted by mikeTRON View Post
    You would have to determine how to logically relate the columns.
    Columns A and B will have duplicate content (but in different order), therefore they will relate.
    Column C would follow column B's original arrangement = wherever B goes, C will follow.

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Arranging two column's based on one column's details

    Yeah seems possible depending on the real data.

  5. #5
    Registered User
    Join Date
    04-20-2015
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    85

    Re: Arranging two column's based on one column's details

    Quote Originally Posted by mikeTRON View Post
    Yeah seems possible depending on the real data.
    Sure .
    The real data will have duplicate content between A and B columns, only in different order.

  6. #6
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Arranging two column's based on one column's details

    So what exactly are you wanting help with?

    I could likely show you how I would help with a sample workbook but otherwise I can't offer much help.

  7. #7
    Registered User
    Join Date
    04-20-2015
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    85

    Re: Arranging two column's based on one column's details

    Quote Originally Posted by mikeTRON View Post
    So what exactly are you wanting help with?

    I could likely show you how I would help with a sample workbook but otherwise I can't offer much help.
    I would like for Excel to automatically arrange everything so that the results are as shown in the second picture, and I'm guessing it requires a macro.

  8. #8
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Arranging two column's based on one column's details

    Attach a sample workbook. 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.

  9. #9
    Registered User
    Join Date
    04-20-2015
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    85

    Re: Arranging two column's based on one column's details

    Sure. Here you go.
    In Sheet 1 I have the BEFORE content, and in Sheet 2 is the intended AFTER content.
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,006

    Re: Arranging two column's based on one column's details

    This solution will require a bit of manual manipulation, although I imagine a macro could be recorded to take care of that part.
    1) Paste the following formula in Sheet1!D1 and copy down: =IF(COUNTIFS(B$1:B$5,A1),A1,"")
    2) Paste the following formula in Sheet1!E1 and double click: =IFERROR(INDEX(C$1:C$5,MATCH(D1,B$1:B$5,0)),"")
    The following are the steps that could either be done manually or by recorded macro.
    1) Select D1:E4
    2) Press Ctrl + x to cut
    3) Select B1
    4) Press Ctrl + v to paste (a circular reference warning will appear, however the output will be as expected i.e. sheet 2)
    Let me 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.

  11. #11
    Registered User
    Join Date
    04-20-2015
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    85

    Re: Arranging two column's based on one column's details

    Quote Originally Posted by JeteMc View Post
    This solution will require a bit of manual manipulation, although I imagine a macro could be recorded to take care of that part.
    1) Paste the following formula in Sheet1!D1 and copy down: =IF(COUNTIFS(B$1:B$5,A1),A1,"")
    2) Paste the following formula in Sheet1!E1 and double click: =IFERROR(INDEX(C$1:C$5,MATCH(D1,B$1:B$5,0)),"")
    The following are the steps that could either be done manually or by recorded macro.
    1) Select D1:E4
    2) Press Ctrl + x to cut
    3) Select B1
    4) Press Ctrl + v to paste (a circular reference warning will appear, however the output will be as expected i.e. sheet 2)
    Let me know if you have any questions.
    Perfect! Worked like a charm!
    I'm extremely thankful for your help.

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,006

    Re: Arranging two column's based on one column's details

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread 'Solved' using the thread tools link 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: 4
    Last Post: 11-30-2015, 05:06 PM
  2. Macro need Arranging column data in Quiz format using transpose and Text to Column Feature
    By successramesh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2014, 02:58 AM
  3. Replies: 5
    Last Post: 06-18-2014, 05:33 PM
  4. [SOLVED] arranging data of Column B just parallel to Column E data in Column F
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-07-2014, 07:35 AM
  5. Re-arranging rows to match column values.
    By zacb in forum Excel General
    Replies: 5
    Last Post: 06-26-2013, 11:12 AM
  6. Re-arranging column cells by value
    By pewe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-20-2008, 01:10 PM
  7. arranging in one column to mirror data in another column
    By Exceluser24/7 in forum Excel General
    Replies: 1
    Last Post: 07-06-2006, 02:50 AM

Tags for this Thread

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