+ Reply to Thread
Results 1 to 4 of 4

Data with different headers

  1. #1
    Registered User
    Join Date
    12-05-2022
    Location
    Islamabad
    MS-Off Ver
    2019
    Posts
    21

    Data with different headers

    I am seeking advice on how to merge over 100 files, each containing attributes of part numbers, into a single master file. Although the first column of all files is identical ("PartNumber"), the remaining columns may vary in their content and number of headers. I have attached two sample files for reference. Can someone provide guidance on the most efficient method to combine all of these files while preserving the attributes of each part number?

    Attached Files:MEI_partAttributes.xlsx | MER_partAttributes.xlsx

    Below is the possible solution I can think of if we can merge all and create three columns like the below; if there is any other better way please let me know:
    possible.JPG

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,538

    Re: Data with different headers

    To merge the data, the headers in each sheet must be unique (within the sheet). This condition is not met by the sheet in the MEI_partAttributes file. Therefore, there is no assurance that this problem does not occur in the other files.

    Artik

  3. #3
    Registered User
    Join Date
    12-05-2022
    Location
    Islamabad
    MS-Off Ver
    2019
    Posts
    21

    Re: Data with different headers

    Quote Originally Posted by Artik View Post
    To merge the data, the headers in each sheet must be unique (within the sheet). This condition is not met by the sheet in the MEI_partAttributes file. Therefore, there is no assurance that this problem does not occur in the other files.

    Artik
    Thank you for your reply. What is the solution if we consider each sheet has unique headers?

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Data with different headers


    Quote Originally Posted by raghibakhter View Post
    if we can merge all and create three columns like the below
    Just add a Settings worksheet in the main result workbook
    where first row must be exactly the same as the headers result worksheet then
    just add each source worksheet non matching header into the expected result column
    then any VBA beginner can write the consolidate / import VBA procedure according to this Settings worksheet …

    Then attach this workbook here saved as binary format .xlsb and
    with at least the exact expected result according to your initial post attachment or
    with a better relative source attachment than your initial post which seems to not match your explanation & your picture …
    Last edited by Marc L; 03-08-2023 at 10:52 AM.

+ 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: 13
    Last Post: 09-01-2020, 09:58 AM
  2. Filter Data Set using Row Headers in lieu of Column Headers
    By bsnell in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-30-2019, 11:43 AM
  3. Replies: 1
    Last Post: 02-03-2016, 02:33 AM
  4. [SOLVED] How to Copy a filter data with headers, excluding the headers?
    By Elomaldo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-16-2014, 03:35 PM
  5. Replies: 4
    Last Post: 02-08-2014, 02:31 PM
  6. Replies: 3
    Last Post: 09-30-2010, 12:30 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