slice_of_pineapple
New Member
- Joined
- Feb 9, 2015
- Messages
- 5
Basically what i want to do is copy the date below a column header to another sheet in the same workbook based on the header. This will be used by multiple people and each report will have different column arrangements. I will have three sheets within a workbook. Sheet 1 will be called ''paste report here''. Sheet 2 will be called ''run'' as i will have a macro running to collect data. Sheet 3 will be called ''totals''. I'm a novice and know a little about macro's but not enough to located data by the header and copy and paste using a formula. I don't know vba at all so code won't work for me. Is there a formula i can use? I've seen that index match can do what i want but i cant get my head around it. example below.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Due Date[/TD]
[TD]Style[/TD]
[TD]Qty[/TD]
[TD]Routing[/TD]
[TD]Critical[/TD]
[/TR]
[TR]
[TD]21/02/16
[/TD]
[TD]t1000[/TD]
[TD]1000[/TD]
[TD]print[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]25/02/16[/TD]
[TD]t1111[/TD]
[TD]5000
[/TD]
[TD]tag[/TD]
[TD]no[/TD]
[/TR]
[TR]
[TD]30/03/16[/TD]
[TD]t1526[/TD]
[TD]500[/TD]
[TD]no prep[/TD]
[TD]no[/TD]
[/TR]
[TR]
[TD]01/09/16[/TD]
[TD]t5252[/TD]
[TD]120[/TD]
[TD]print[/TD]
[TD]no[/TD]
[/TR]
</tbody>[/TABLE]
What i want to do is for excel to realise that all the info in ''due date'' is needed and to copy and paste all data in that column, including the header, into another sheet. The reason being is that ''due date'' will not always be in column 1. sometimes it may be column 15. So i want excel to grab the column based on the title. Hope this makes sense. I'm really stuck.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Due Date[/TD]
[TD]Style[/TD]
[TD]Qty[/TD]
[TD]Routing[/TD]
[TD]Critical[/TD]
[/TR]
[TR]
[TD]21/02/16
[/TD]
[TD]t1000[/TD]
[TD]1000[/TD]
[TD]print[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]25/02/16[/TD]
[TD]t1111[/TD]
[TD]5000
[/TD]
[TD]tag[/TD]
[TD]no[/TD]
[/TR]
[TR]
[TD]30/03/16[/TD]
[TD]t1526[/TD]
[TD]500[/TD]
[TD]no prep[/TD]
[TD]no[/TD]
[/TR]
[TR]
[TD]01/09/16[/TD]
[TD]t5252[/TD]
[TD]120[/TD]
[TD]print[/TD]
[TD]no[/TD]
[/TR]
</tbody>[/TABLE]
What i want to do is for excel to realise that all the info in ''due date'' is needed and to copy and paste all data in that column, including the header, into another sheet. The reason being is that ''due date'' will not always be in column 1. sometimes it may be column 15. So i want excel to grab the column based on the title. Hope this makes sense. I'm really stuck.