Populate a column in a sheet based on data from 2 other sheets

Goddess

Board Regular
Joined
Dec 3, 2015
Messages
94
Office Version
  1. 2019
Platform
  1. Windows
Hi,

Basically I have 2 sheets of data which I will enter the information manually (they act as reference). On the 3rd sheet, I need column K to auto polulate the 'Factor' based on the information on Sheet 1 & 2. Appreciate if anyone can help!


Book1
ABCDEFGHIJKLM
1Sheet 1Sheet 2Sheet 3
2
3GroupNameDivisionCountryCountryFactorNameSub totalFactorTotal
41AppleABCUKUK1Apple10110
51OrangeABCUKGermany1.5Orange15115
61GrapeABCUKTurkey2Grape20120
72MangoXYZUKCroatia2.5Mango25125
82BananaXYZUKBanana30130
93CherryDEFGermanyCherry351.552.5
103DurianGHIGermanyDurian401.560
114PeachLMNTurkeyPeach45290
125LycheeLMNCroatiaLychee502.5125
135PomeloLMNCroatiaPomelo552.5137.5
140NANA
150NANA
160NANA
170NANA
18
Sheet2
Cell Formulas
RangeFormula
L4:L13L4=J4*K4


Thanks!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi Goddess,

So Group and Division have no bearing and a peach can only ever be in Turkey? Then this should do what you ask:

Goddess.xlsx
ABCD
1Sheet 1
2
3GroupNameDivisionCountry
41AppleABCUK
51OrangeABCUK
61GrapeABCUK
72MangoXYZUK
82BananaXYZUK
93CherryDEFGermany
103DurianGHIGermany
114PeachLMNTurkey
125LycheeLMNCroatia
135PomeloLMNCroatia
140NA
150NA
160NA
170NA
Sheet1


Goddess.xlsx
AB
1Sheet 2
2
3CountryFactor
4UK1
5Germany1.5
6Turkey2
7Croatia2.5
8
Sheet2


Goddess.xlsx
ABCD
1Sheet 3
2
3NameSub totalFactorTotal
4Apple10110
5Orange15115
6Grape20120
7Mango25125
8Banana30130
9Cherry351.552.5
10Durian401.560
11Peach45290
12Lychee502.5125
13Pomelo552.5137.5
14NA
15NA
16NA
17NA
Sheet3
Cell Formulas
RangeFormula
C4:C13C4=INDEX(Sheet2!$B$4:$B$999,MATCH(INDEX(Sheet1!$D$4:$D$9999,MATCH(A4,Sheet1!$B$4:$B$9999,0)),Sheet2!$A$4:$A$999,0))
D4:D13D4=B4*C4
 
Upvote 0
Solution
Hi Goddess,

So Group and Division have no bearing and a peach can only ever be in Turkey? Then this should do what you ask:

Goddess.xlsx
ABCD
1Sheet 1
2
3GroupNameDivisionCountry
41AppleABCUK
51OrangeABCUK
61GrapeABCUK
72MangoXYZUK
82BananaXYZUK
93CherryDEFGermany
103DurianGHIGermany
114PeachLMNTurkey
125LycheeLMNCroatia
135PomeloLMNCroatia
140NA
150NA
160NA
170NA
Sheet1


Goddess.xlsx
AB
1Sheet 2
2
3CountryFactor
4UK1
5Germany1.5
6Turkey2
7Croatia2.5
8
Sheet2


Goddess.xlsx
ABCD
1Sheet 3
2
3NameSub totalFactorTotal
4Apple10110
5Orange15115
6Grape20120
7Mango25125
8Banana30130
9Cherry351.552.5
10Durian401.560
11Peach45290
12Lychee502.5125
13Pomelo552.5137.5
14NA
15NA
16NA
17NA
Sheet3
Cell Formulas
RangeFormula
C4:C13C4=INDEX(Sheet2!$B$4:$B$999,MATCH(INDEX(Sheet1!$D$4:$D$9999,MATCH(A4,Sheet1!$B$4:$B$9999,0)),Sheet2!$A$4:$A$999,0))
D4:D13D4=B4*C4
Thanks!!!
 
Upvote 0

Forum statistics

Threads
1,214,548
Messages
6,120,146
Members
448,948
Latest member
spamiki

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