Hi All, I am confusing myself and struggling with something I think should be simple. Please help
I have a ws with approx 30 columns, they are always named the same but sometimes there are only 25 of them and sometimes they are in a different order, it is really annoying.
In one of the columns is a unique number, another contains a geography - the remaining are just additional data some I need some I don't.
I would like to be able to set up a system where I paste the data into a sheet in a different workbook (let's call it TEMPDATA) and then in populates a pre-formated table in another shhet (let's call it DATA) with specific columns in a specific order. So for example:
Supplied data column headings are: A B D H C F E in that order. I will paste that as raw data into a worksheet TEMPDATA
I want sheet DATA to have headings A B C and F only but to populate with the 'new data' from TEMPDATA
I've tried some vlookup and match/index but it is far from efficient. I've also tried recording a macro that re-arranges the columns after pasting and deletes the ones I don't need but because the order changes it often just ends up deleting things I do need. I think I need something that says 'Look for a heading in TEMPDATA row 1 called "A" and if you find it paste from row 2 down to the end into DATA under the "A" heading then to keep going for data in BCand F.
Help appreciated - maybe I am overthinking but spent the morning achieving little.
I have a ws with approx 30 columns, they are always named the same but sometimes there are only 25 of them and sometimes they are in a different order, it is really annoying.
In one of the columns is a unique number, another contains a geography - the remaining are just additional data some I need some I don't.
I would like to be able to set up a system where I paste the data into a sheet in a different workbook (let's call it TEMPDATA) and then in populates a pre-formated table in another shhet (let's call it DATA) with specific columns in a specific order. So for example:
Supplied data column headings are: A B D H C F E in that order. I will paste that as raw data into a worksheet TEMPDATA
I want sheet DATA to have headings A B C and F only but to populate with the 'new data' from TEMPDATA
I've tried some vlookup and match/index but it is far from efficient. I've also tried recording a macro that re-arranges the columns after pasting and deletes the ones I don't need but because the order changes it often just ends up deleting things I do need. I think I need something that says 'Look for a heading in TEMPDATA row 1 called "A" and if you find it paste from row 2 down to the end into DATA under the "A" heading then to keep going for data in BCand F.
Help appreciated - maybe I am overthinking but spent the morning achieving little.