Microsoft Excel 2010, Windows 7
Hi all,
Looking for some help with a formula to auto fill data from one worksheet to another by using a formula:
On our first worksheet we have sales data with codes
The sales data is per a row and in that row is a code such as (A32) (C32) depending on product spec sold.
We want another 8 columns of associated data to be put in the next columns on the sales sheet.
I understand the data has to be referred to somewhere so on worksheet two we have all the codes listed down a column (eg Column A) and then next to it we have the next 8 columns with data relating to that code.
So how can we ask excel to copy the relevant data from the reference worksheet (worksheet 2) into our sales data (worksheet 1)
I was hoping at this stage for a formula based solution.
I know about scripts and macros BUT have NO experience, and need a quick fix solution at this point.
Also because of discrepancies in data, I believe a macro would need extra if but maybe rules to function correctly, where as a formula I can drag or copy down will work best for now, as I can adjust to suit the discrepancies in data.
For example, This is worksheet 1:
[TABLE="class: grid, width: 736"]
<tbody>[TR]
[TD]RECORD[/TD]
[TD]CODE[/TD]
[TD]GRABBED 1[/TD]
[TD]GRABBED 2[/TD]
[TD]GRABBED 3[/TD]
[TD]GRABBED 4[/TD]
[TD]GRABBED 5[/TD]
[TD]GRABBED 6[/TD]
[TD]GRABBED 7[/TD]
[TD]GRABBED 8[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]C32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]D32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]E32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]F32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]C32[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D][/TD]
[/TR]
</tbody>[/TABLE]
And this is worksheet 2
[TABLE="class: grid, width: 576"]
<tbody>[TR]
[TD="width: 64"]CODES[/TD]
[TD="width: 64"]GRAB 1[/TD]
[TD="width: 64"]GRAB 2[/TD]
[TD="width: 64"]GRAB 3[/TD]
[TD="width: 64"]GRAB 4[/TD]
[TD="width: 64"]GRAB 5[/TD]
[TD="width: 64"]GRAB 6[/TD]
[TD="width: 64"]GRAB 7[/TD]
[TD="width: 64"]GRAB 8[/TD]
[/TR]
[TR]
[TD]C32[/TD]
[TD]24x16[/TD]
[TD]£4.63[/TD]
[TD]£7.45[/TD]
[TD][/TD]
[TD]65[/TD]
[TD]43[/TD]
[TD]3[/TD]
[TD]1.5[/TD]
[/TR]
[TR]
[TD]D32[/TD]
[TD]30x20[/TD]
[TD]£6.49[/TD]
[TD]£12.55[/TD]
[TD][/TD]
[TD]78[/TD]
[TD]52[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]E32[/TD]
[TD]36x24[/TD]
[TD]£11.30[/TD]
[TD]£17.36[/TD]
[TD][/TD]
[TD]93[/TD]
[TD]62[/TD]
[TD]5[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]F32[/TD]
[TD]48x32[/TD]
[TD]£16.04[/TD]
[TD]£22.10[/TD]
[TD][/TD]
[TD]125[/TD]
[TD]83[/TD]
[TD]5[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]G32[/TD]
[TD]54x36[/TD]
[TD]£22.11[/TD]
[TD]£28.17[/TD]
[TD][/TD]
[TD]140[/TD]
[TD]93[/TD]
[TD]5[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]H32[/TD]
[TD]3 x 16x8[/TD]
[TD]£6.91[/TD]
[TD]£9.74[/TD]
[TD][/TD]
[TD]43[/TD]
[TD]23[/TD]
[TD]7[/TD]
[TD]1.5[/TD]
[/TR]
[TR]
[TD]I32[/TD]
[TD]3 x 24x12[/TD]
[TD]£10.76[/TD]
[TD]£16.83[/TD]
[TD][/TD]
[TD]64[/TD]
[TD]32[/TD]
[TD]7[/TD]
[TD]2.5[/TD]
[/TR]
[TR]
[TD]J32[/TD]
[TD]3 x 28x14[/TD]
[TD]£12.71[/TD]
[TD]£18.78[/TD]
[TD][/TD]
[TD]74[/TD]
[TD]38[/TD]
[TD]7[/TD]
[TD]3.5[/TD]
[/TR]
[TR]
[TD]K32[/TD]
[TD]3 x 40x20[/TD]
[TD]£19.90[/TD]
[TD]£25.96[/TD]
[TD][/TD]
[TD]105[/TD]
[TD]52[/TD]
[TD]7[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]L32[/TD]
[TD]3 x 48x24[/TD]
[TD]£36.18[/TD]
[TD]£42.24[/TD]
[TD][/TD]
[TD]125[/TD]
[TD]63[/TD]
[TD]15[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]M32[/TD]
[TD]32x18[/TD]
[TD]£8.39[/TD]
[TD]£11.22[/TD]
[TD][/TD]
[TD]43[/TD]
[TD]22[/TD]
[TD]9[/TD]
[TD]1.5[/TD]
[/TR]
</tbody>[/TABLE]
On Worksheet 1, we want it to insert the cells next to the corresponding code in worksheet 2 into the next 8 columns (so CELL C2 on worksheet 1 would be auto filled with the data from CELL B2 as the code is "C32", CELL C5 in worksheet 1 would have the same date autofilled as the code is also "C32" etc..).
First post so I hope I've posted this correctly with enough information. Any help will be much appreciated.
Kind Regards
Steven
Hi all,
Looking for some help with a formula to auto fill data from one worksheet to another by using a formula:
On our first worksheet we have sales data with codes
The sales data is per a row and in that row is a code such as (A32) (C32) depending on product spec sold.
We want another 8 columns of associated data to be put in the next columns on the sales sheet.
I understand the data has to be referred to somewhere so on worksheet two we have all the codes listed down a column (eg Column A) and then next to it we have the next 8 columns with data relating to that code.
So how can we ask excel to copy the relevant data from the reference worksheet (worksheet 2) into our sales data (worksheet 1)
I was hoping at this stage for a formula based solution.
I know about scripts and macros BUT have NO experience, and need a quick fix solution at this point.
Also because of discrepancies in data, I believe a macro would need extra if but maybe rules to function correctly, where as a formula I can drag or copy down will work best for now, as I can adjust to suit the discrepancies in data.
For example, This is worksheet 1:
[TABLE="class: grid, width: 736"]
<tbody>[TR]
[TD]RECORD[/TD]
[TD]CODE[/TD]
[TD]GRABBED 1[/TD]
[TD]GRABBED 2[/TD]
[TD]GRABBED 3[/TD]
[TD]GRABBED 4[/TD]
[TD]GRABBED 5[/TD]
[TD]GRABBED 6[/TD]
[TD]GRABBED 7[/TD]
[TD]GRABBED 8[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]C32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]D32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]E32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]F32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]C32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]D32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]I32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]J32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]K32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]L32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]M32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]F32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]J32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]K32[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
And this is worksheet 2
[TABLE="class: grid, width: 576"]
<tbody>[TR]
[TD="width: 64"]CODES[/TD]
[TD="width: 64"]GRAB 1[/TD]
[TD="width: 64"]GRAB 2[/TD]
[TD="width: 64"]GRAB 3[/TD]
[TD="width: 64"]GRAB 4[/TD]
[TD="width: 64"]GRAB 5[/TD]
[TD="width: 64"]GRAB 6[/TD]
[TD="width: 64"]GRAB 7[/TD]
[TD="width: 64"]GRAB 8[/TD]
[/TR]
[TR]
[TD]C32[/TD]
[TD]24x16[/TD]
[TD]£4.63[/TD]
[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]
[/TR]
[TR]
[TD]L32[/TD]
[TD]3 x 48x24[/TD]
[TD]£36.18[/TD]
[TD]£42.24[/TD]
[TD][/TD]
[TD]125[/TD]
[TD]63[/TD]
[TD]15[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]M32[/TD]
[TD]32x18[/TD]
[TD]£8.39[/TD]
[TD]£11.22[/TD]
[TD][/TD]
[TD]43[/TD]
[TD]22[/TD]
[TD]9[/TD]
[TD]1.5[/TD]
[/TR]
</tbody>[/TABLE]
On Worksheet 1, we want it to insert the cells next to the corresponding code in worksheet 2 into the next 8 columns (so CELL C2 on worksheet 1 would be auto filled with the data from CELL B2 as the code is "C32", CELL C5 in worksheet 1 would have the same date autofilled as the code is also "C32" etc..).
First post so I hope I've posted this correctly with enough information. Any help will be much appreciated.
Kind Regards
Steven