Match data from another sheet (multiple criteria)

Goddess

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

I have 3 sheets, "Data", "General Info" & "Analysis". General Info tab will have the list of companies and the country of origin. Data will be the factors that I need to apply to my analysis. Analysis tab is where all my calculations will be done.

In Analysis tab, cell C13:E13 & C15:E15 need to refer back to the number that is stated in the Data tab, based on the country listed in the General Info tab. The result I need is in the yellow cells (in Analysis) - Cell D13:E13. I tried applying my formula in Cell C13, but it didn't work. Can anyone advise where I went wrong?

Thanks!

Data
Sample1.xlsx
ABCDEFGHIJK
1SpainItalyUK
2Option AKGApple522
3
4Orange433
5
6Grape322
7
8LiterStrawberry822
9
10PCsBanana922
11
12Pear1033
13
14Cherry000
15
16BoxPapaya111213
17
18Melon0NA0
19
20Option BKGApple333333
21
22Orange363636
23
24Grape262626
25
26Strawberry343434
27
28Banana464646
29
30Pear454545
31
32PCsCherry444
33
34Papaya440
35
36
Data


General Info
Sample1.xlsx
BCDEFGHI
1Name of EntityDivision/SegmentCityCountry
2Details of Entity:Company ASpain
3Company BItaly
4Company CUK
5
6
7
8
9
General Info


Analysis
Sample1.xlsx
ABCDEF
1
2EntityCompany ACompany BCompany C
3SCOPE 1
4Non-Renewable
51Apple
6Reference
7Site 118211
8Site 25510
9Site 322
10Site 40
11Site 50
12Total610723
13Option B - Unit03333
14Total0327.82229.474557.294
15Option A - Unit 22
16Total#VALUE!22.8618389816.00328729#VALUE!
17
18
Analysis
Cell Formulas
RangeFormula
C2C2='General Info'!$E$2
D2D2='General Info'!$E$3
E2E2='General Info'!$E$4
B5B5=Data!C2
F16,F14,F7:F12F7=SUM(C7:E7)
C12:E12C12=SUM(C7:C11)
C13C13=IFERROR(INDEX(Data!$D$20:$K$35,MATCH(INDEX('General Info'!$H$2:$H$7,MATCH(Analysis!C$2,'General Info'!$E$2:$E$7,0)),Data!1:1,0),MATCH(Analysis!$B$5,Data!C20:C35,0)),"")
D13:E13D13=Data!E20
C14:E14C14=C12*C13
C15C15=IFERROR(INDEX(Data!#REF!,MATCH(INDEX('General Info'!$H$2:$H$7,MATCH(Analysis!C$2,'General Info'!$E$2:$E$7,0)),Data!#REF!,0),MATCH(Analysis!$B$5,Data!#REF!,0)),"")
D15:E15D15=Data!E2
C16:E16C16=C12*C15
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B11Expression=ISNUMBER(SEARCH("Materiality",FORMULATEXT(B11)))textNO
B9:B10Expression=ISNUMBER(SEARCH("Materiality",FORMULATEXT(B9)))textNO
B8,B12Expression=ISNUMBER(SEARCH("Materiality",FORMULATEXT(B8)))textNO
B7Expression=ISNUMBER(SEARCH("Materiality",FORMULATEXT(B7)))textNO
B13:B17Expression=ISNUMBER(SEARCH("Materiality",FORMULATEXT(B13)))textNO
C2:E2Expression=ISNUMBER(SEARCH("Materiality",FORMULATEXT(C2)))textNO
B2Expression=ISNUMBER(SEARCH("Materiality",FORMULATEXT(B2)))textNO
C1Expression=ISNUMBER(SEARCH("Materiality",FORMULATEXT(C1)))textNO
Cells with Data Validation
CellAllowCriteria
B2:F2Any value
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,215,148
Messages
6,123,307
Members
449,095
Latest member
Chestertim

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