+ Reply to Thread
Results 1 to 10 of 10

Columns match based on headline

  1. #1
    Registered User
    Join Date
    05-05-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    38

    Columns match based on headline

    Hi

    I have a workbook and in sheet1 I will copy an export from another program. The rows 1 and 2 are the headline.
    The problem is that the order of the headline is random, so I create the sheet2 with the correct headline. I need that excel match column based on the title (in the headline) in sheet1 and copy to the column in the sheet2 with the same name. It must analyze the two sheets because at any moment the headline master may change based on the type of project.
    My English is not so good sorry.

    I hope you guys can help me…. Thank you
    Last edited by jmaocubo; 08-05-2009 at 02:09 PM.

  2. #2
    Registered User
    Join Date
    05-05-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Columns match based on headline

    anyone???????

  3. #3
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Columns match based on headline

    Not entirely sure what you are asking. Can you attach a workbook with a sample of your data and the results you want?

  4. #4
    Registered User
    Join Date
    05-05-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Columns match based on headline

    thanks for the reply...

    here is the example
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Columns match based on headline

    Why not a formula in Sheet2 A3 and copied across and down as far as necessary? The ranges will need adjusting. I guess you could do this with code.

    =INDEX(sheet1!$A$3:$L$15,ROWS(A$3:A3),MATCH(A$2,sheet1!$A$2:$K$2,0))

  6. #6
    Registered User
    Join Date
    05-05-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Columns match based on headline

    Quote Originally Posted by StephenR View Post
    Why not a formula in Sheet2 A3 and copied across and down as far as necessary? The ranges will need adjusting. I guess you could do this with code.

    =INDEX(sheet1!$A$3:$L$15,ROWS(A$3:A3),MATCH(A$2,sheet1!$A$2:$K$2,0))
    Hi StephenR

    Thanks for the help...
    I was wonder if it's possible to do in VBA?
    The range it's one of the most important issues here.
    Can it be done in VBA?

    Thanks again

  7. #7
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Columns match based on headline

    Try this:
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-05-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Columns match based on headline

    Quote Originally Posted by StephenR View Post
    Try this:
    Please Login or Register  to view this content.
    That what i need

    But there is a problem i know what it is but i don't know how to fix it!!!

    Itīs a Redundancy error (see attach)

    and... many thanks

    Miguel
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Columns match based on headline

    You need to make sure the sheet are referenced in the formula string by their actual names (i.e. what's on the sheet tabs).
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    05-05-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Columns match based on headline

    the pressure wasssss big for this work that i didn't saw


    StephenR you save my week... thanks, many thanks...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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