+ Reply to Thread
Results 1 to 6 of 6

Column ordering function/process

  1. #1
    Registered User
    Join Date
    01-13-2018
    Location
    cleveland
    MS-Off Ver
    2013
    Posts
    3

    Thumbs up Column ordering function/process

    Hi,

    Thank you for giving me the possibility of posting here my issue. I am a Surgeon, and I am doing a research project. My job is to perform a chart review and record patient's variables. Thus the structure of my excel files is pretty simple: patient identifier=rows and variables=columns.

    My issue is the following: I have some patients(=rows) that are missing in one file but are present in another file. Thus the goal is to bring some rows (i.e. patients) from one file to another. The problem is that since the variables (=columns) are slightly different (for number and quality) from file to file, I cannot copy and paste. The fastest thing that I came up is just manually ordering the columns on one file so that it has the same order of the other file (at the cost of adding blank columns). Nevertheless, this is a very lengthy and time-consuming process since I have almost 300 columns in each file.

    Long story short: is there a function that could help me ordering the columns of one file so that they correspond to that of another file?
    If I could achieve this, then I could perform a simple copy paste of the rows I am interested in from file to file.


    Any other idea is appreciated, but please try to avoid a VBA solution since I do not know anything about it (at the first issue I would be screwed).


    Thank you!


    Cheers

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Column ordering function/process

    I suggest that you investigate using the VLOOKUP function. See Excel help for details.
    Martin

  3. #3
    Registered User
    Join Date
    01-13-2018
    Location
    cleveland
    MS-Off Ver
    2013
    Posts
    3

    Re: Column ordering function/process

    Quote Originally Posted by mrice View Post
    I suggest that you investigate using the VLOOKUP function. See Excel help for details.
    Hi Martin,

    Thank you for your suggestion. I am familiar with the VLOOKUP function since it turns out to be very handy for what I do. However I do not see how could it turn useful in this case. Do you mind explaining?

    Thanks

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Column ordering function/process

    Reading your question again, how about using the MATCH function to give you the position of a column on the other sheet and then sorting horizontally by this.

  5. #5
    Registered User
    Join Date
    01-13-2018
    Location
    cleveland
    MS-Off Ver
    2013
    Posts
    3

    Re: Column ordering function/process

    you are right mrice! This is a great idea and does the trick.
    However, the situation is much more complicated than what I described since I already have quite a bit of data for those missing patients (their row is actually already present in the first file but with just some variables recorded).

    I think that this detail makes things a little to challenging.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,084

    Re: Column ordering function/process


+ 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] Macro Column re-ordering: fixing anomoly with exact match
    By dchubbock in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2016, 06:26 AM
  2. Ordering data from rows into column
    By Alex789king in forum Excel General
    Replies: 43
    Last Post: 07-07-2016, 08:50 AM
  3. VBA Ordering User form for Purchase Ordering.
    By caf20012 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-10-2014, 01:50 PM
  4. Ordering a Column by Date
    By confused student in forum Excel General
    Replies: 3
    Last Post: 05-30-2013, 01:23 PM
  5. Replies: 3
    Last Post: 10-22-2010, 09:15 AM
  6. Fixed Interval Ordering Function
    By Kyle Hansen in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-01-2009, 09:37 AM
  7. [SOLVED] sorting/ordering a column by day of the week
    By Laura in forum Excel General
    Replies: 4
    Last Post: 01-31-2005, 05:06 PM

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