Summary Tab from Inconsistent Data Structure and Location

jdutle

New Member
Joined
Dec 8, 2015
Messages
17
Hello!

I am trying to create a summary tab in excel that will look up data in other tabs based on specified criteria, but the structure of those other tabs and location of data is not always consistent. I’ve used a combination of Vlookup, Index, and Match to achieve the desired result, but I was wondering if there was a more streamlined way to do it, or if anyone else had any other ideas. I know it would make the most sense to structure each tab in the same way, but that is not an option in this circumstance.



My current solution finds the location of the Manufacturer name row, matches the brand, and then pulls the price on to the summary tab. I feel like there is a simpler way to identify the row with Manufacturer name. Its currently “MATCH("Manufacturer Name ",INDIRECT("'"&$A7&"'!A:A"),0)&":"&MATCH("Manufacturer Name ",INDIRECT("'"&$A7&"'!A:A"),0)” Its basically the same formula twice to return a row reference of #:#.



I have attached a sample file for your reference. The formula in question is in yellow. Thank you in advance for any ideas or suggestions.

Sample.xlsx
ABCDEFGH
4Financial Summary
5
6Tab Name
7Compact CarsCompact Car BrandsToyotaHondaLexus
8Annual Premium$31,800$34,450$34,980
9
10SUVSUV BrandsToyotaHondaLexus
11Annual Premium$47,700$50,880$52,470
12
13TotalToyotaHondaLexus
14Total Annual Premium$79,500$85,330$87,450
Financial Summary
Cell Formulas
RangeFormula
C8,E8,G8,C11,E11,G11C8=VLOOKUP("Price with Tax",INDIRECT("'"&$A7&"'!A6:ZZ100"),MATCH(C7,INDIRECT("'"&$A7&"'!"&MATCH("Manufacturer Name ",INDIRECT("'"&$A7&"'!A:A"),0)&":"&MATCH("Manufacturer Name ",INDIRECT("'"&$A7&"'!A:A"),0)),0),FALSE)
D8,F8,H8,D11,F11,H11D8=VLOOKUP("Annual Premium ",INDIRECT("'"&$A7&"'!A6:N70"),MATCH(D7,INDIRECT("'"&$A7&"'!"&MATCH("Carrier Name ",INDIRECT("'"&$A7&"'!A:A"),0)&":"&MATCH("Carrier Name ",INDIRECT("'"&$A7&"'!A:A"),0)),0),FALSE)
C10,C13C10=$C$7
E10,E13E10=$E$7
G10,G13G10=$G$7
C14,E14,G14C14=SUM(C8,C11)
D14,F14,H14D14=D8+D11+#REF!+#REF!+#REF!+#REF!
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:DW40Cell Valuecontains "☻"textNO


Sample.xlsx
ABCDEFGHIJKL
1
2
3Compact Cars
4
5
6Manufacturer Name ToyotaHondaLexus
7Information Section"data""data""data""data""data""data"
8Information Section"data""data""data""data""data""data"
9
10Car Price$30,000$32,500$33,000
11Price with Tax$31,800$34,450$34,980
Compact Cars
Cell Formulas
RangeFormula
E11,K11,H11E11=E10*1.06
Cells with Conditional Formatting
CellConditionCell FormatStop If True
P9:DS9,A9:N9,A10:DS38,A1:DS8Cell Valuecontains "☻"textNO
Cells with Data Validation
CellAllowCriteria
K7:L8List$0,$25,$50,$75,$100
E7:F8List$0,$25,$50,$75,$100
H7:I8List$0,$25,$50,$75,$100


Sample.xlsx
ABCDEFGHIJKL
1SUV
2
3
4
5
6
7
8Manufacturer Name ToyotaHondaLexus
9Information Section"data""data""data""data""data""data"
10Information Section"data""data""data""data""data""data"
11Information Section"data""data""data""data""data""data"
12Information Section"data""data""data""data""data""data"
13Information Section"data""data""data""data""data""data"
14Information Section"data""data""data""data""data""data"
15Information Section"data""data""data""data""data""data"
16Information Section"data""data""data""data""data""data"
17
18Car Price$45,000$48,000$49,500
19Price with Tax$47,700$50,880$52,470
20
SUV
Cell Formulas
RangeFormula
E19,K19,H19E19=E18*1.06
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A11:DS11Cell Valuecontains "☻"textNO
A12:DS13Cell Valuecontains "☻"textNO
A14:DS14Cell Valuecontains "☻"textNO
P17:DS17,A17:N17,A18:DS46,A1:DS10,A15:DS16Cell Valuecontains "☻"textNO
Cells with Data Validation
CellAllowCriteria
H9:I16List$0,$25,$50,$75,$100
E9:F16List$0,$25,$50,$75,$100
K9:L16List$0,$25,$50,$75,$100
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Summary Tab from Inconsistent Data Structure and Location
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,215,035
Messages
6,122,785
Members
449,095
Latest member
m_smith_solihull

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