Auto fill group data using info from another worksheet based on multiple cells? - Formula Needed.

Jessey277

New Member
Joined
Oct 9, 2017
Messages
1
[h=2][/h]
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 codes and numbers.

The data is in multiple rows and in that row is a combination of codes such as A+E+T or A+E+F depending on product.

We want another 4 columns of associated data to be put in the next columns on sheet 1.

I understand the data has to be referred to somewhere so on worksheet 2 we have all the codes listed down columns (eg Column A, Column B, and Column C) and then next to it we have the next 4 columns with data relating to those combinations of codes.

So how can we ask excel to copy the relevant data from the reference worksheet (worksheet 2) into our data (worksheet 1)

I was hoping at this stage for a formula based solution.


For example, This is worksheet 1:
A BCDEFGHI
A E F 000$0$0.00 $0.00
A E T 000$0$0.00 $0.00
ASF 000$0$0.00 $0.00
AST 000$0$0.00 $0.00

<colgroup><col width="93" span="9" style="width:70pt"> </colgroup><tbody>
</tbody>
And this is worksheet 2

ABCDEFG
AEF1000200100$1,000.00
AET5000800300$1,500.00
ASF3000300100$2,000.00
AST3000300100$2,500.00
NEF6504020$3,000.00
NET220022020$3,500.00
NSF9006020$4,500.00
NST6005020$5,000.00

<colgroup><col span="6"><col></colgroup><tbody>
</tbody>



On Worksheet 1, we want it to insert the cells next to the corresponding code in worksheet 2 into the next 4 columns (so CELL D2 on worksheet 1 would be auto filled with the data from CELL D2 as the code is "1000", CELL E2 in worksheet 1 would have the same date autofilled as the code is also "E2" etc..).

I thought about doing a concat and then a vlookup but thinking there should be a formula?

First post so I hope I've posted this correctly with enough information. Any help will be much appreciated.

Kind Regards
Jessica​
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi Jessica,

If all the data you'll copy are values, then SUMIFS could do, you can add 3 sets of criteria that columns A, B, C have to match.

If you can have text as well, then I think you'll have to do the VLOOKUP or INDEX/MATCH on the concatenated A, B, C columns (not necessarily with the CONCATENATE formula, linking with & sign would also work)
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top