Pivot table or index + match + filter + { }?

Vcoppens

Board Regular
Joined
Apr 16, 2012
Messages
90
Hi,

I have one table that would need to be split up in several (9 in total) sub-tables in the same TAB.

Each sub-table is based on a combination of a code (which has a unique value) in combination with a product. One product can be linked to several unique codes.

There are 30 columns but I would only need the data from 18 columns.

I have been pondering if I should
1. create a pivot table?
Problem: the columns data is either sum or count but not the value that is in the table. For example Name (ABC) and # (123) will show up as ABC 1 Instead of AB 123.
2. create a formula to extract those specific rows that fulfill the requirements. But I am a bit stuck on how to accomplish this.

Thank you very much if anyone could help me shed some light!



ABC-NameD-#E-ProductF-code (Unique Value)Z-$
105ABC123850$100
105BCD234160$150
105CDE345370$175
105DEF456380$90
105EFG567190$60
Requirementcode 50&60& Product 8 & 1
ABC-NameD-#E-ProductF-CodeZ-$
105ABC123850$100
105BCD234160$150
TOTAL$250
Requirementcode 70& Product 3
ABC-NameD-#E-ProductF-CodeZ-$
105CDE345370$175
TOTAL$175
Requirementcode 80 & 90& Product 1 & 3
ABC-NameD-#E-ProductF-CodeZ-$
105DEF456380$90
105EFG567190$60
TOTAL$150
 
I do have Excel 360 Enterprise.
Maybe you missed this
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi Awoohaw,

I hope that this XL2BB makes it clearer:

To the right is the original table (I restricted it to 17 rows but there are many more) with 30 columns.

To the left (columns A & B) are the criteria that I am looking for, for each table. Here I took 3 different examples. There will be 9 different tables, so there will be 9 different criteria tables. The criteria are based on "Product #" and "Code".

In the center are the 9 tables that will be part of the report (here there are only 3 depicted). The color code in the criteria table (columns A & B) is the one that I am looking for in the original table. It needs to be a combination of for example A2 & B2 or A3 & B3 for the first table; for the second table it will be A1 & b7 OR A8 & B8 OR A9 & B9 OR ..... A14 & B14; for the third table it will be A17& B17 OR A18 & B18 ... OR A24 & B24.

Only 18 columns of the 30 columns should be part of the tables that will be used for reporting.

I color coded, so it might be less confusing.

Hope this help.

Thank you very much.

9 tables.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZ
1Product #CodeInstLocName#Product #CodeGoalGrade Org Date Balance Int 1 Date 1RE / Non REYear MBA / SOC / SOCReport / ExcludeLeadInstLocName#Product #CodeGoalGradeCategory Org Date Balance Int 1 Int Pd ToInt 2SumF or VNextDate 1RE / Non RE5300 codeYear MBA / SOC / SOCReport / ExcludeRE / Non RE PMT Approve INCTermsLead
285910510KLM8911596228/31/20215,000.00130.328/31/2021Non RE2022COMReport397,045.8610510ABC123160115710/1/202310,000.00235.0710/1/202347.01376.5F10/1/202310/1/2023REr2023MBAExcluden/a1973.64Recommended53111060264,000.00
315910510MNO1568596129/1/20223,000.002159.699/1/2022RE2022LeadReport700,000.0010510BCD23486111589/1/20225,000.00277.819/1/202218.520556.5F9/1/20229/1/2022REr2023MBAExcluden/a775.65Recommended53111060104,000.00
410510CDE124163115910/1/20204,000.00248.4210/1/202016.561646.5F10/1/202010/1/2020REr2023MBAExcluden/a693.61Recommended5311106093,000.00
510510EFG245180115109/30/20223,000.00248.429/30/202216.561646.5F9/30/20229/30/2022REr2023MBAExcluden/a693.61Recommended5311106093,000.00
6Product #CodeInstLocName#Product #CodeGoalGrade Org Date Balance Int 1 Date 1RE / Non REYear MBA / SOC / SOCReport / ExcludeLead10510FGH126860502558/31/20212,000.00250.028/31/202127.780826.5F8/31/20218/31/2021REr2023MBAExcluden/a2012.25Recommended53111060156,000.00
716010510ABC12316011710/1/202310,000.00235.0710/1/2023RE2023MBAExclude264,000.0010510GHI267182325610/1/202310,000.00658.4810/1/202347.034756.25F10/1/202310/1/2023Non REr2023MBAExcluden/a2012.25Recommended53111060274,682.96
818010510EFG24518011109/30/20223,000.00248.429/30/2022RE2023MBAExclude93,000.0010510HIJ28298022589/1/20227,000.0000:0005.25F9/1/20229/1/2022REc2022SOCReportn/a2012.25Recommended531110610.00
986010510FGH12686050258/31/20212,000.00250.028/31/2021RE2023MBAExclude156,000.0010510IJK399163515710/1/20208,000.00129.9510/1/20209.28216.5F10/1/202010/1/2020REr2022MBAExcluden/a390.26Recommended5311106052,122.57
1038010510GHI26718232610/1/202310,000.00658.4810/1/2023Non RE2023MBAExclude274,682.9610510JKL10516352519/30/202210,000.00311.819/30/202216.410965.99F9/30/20229/30/2022REr2022MBAExcluden/a2012.25Recommended53111060100,000.00
1188010510HIJ2829802289/1/20227,000.0009/1/2022RE2022SOCReport0.0010510KLM89115962528/31/20215,000.00130.328/31/202165.159035.99F8/31/20218/31/2021Non REc2022COMReportn/a2866.75Recommended53111060397,045.86
1218210510PQR1299804168/31/20217,000.00576.628/31/2021RE2022COMReport311,803.5110510LMN813165415210/1/20234,000.0010751.7110/1/2023767.97955.75F10/1/202310/1/2023REe2022LeadReportn/a2012.25Recommended53112060758,759.62
1315410510QRS'8528806187/28/20198,000.001371.977/28/2019RE2022SOCReport700,375.6510510MNO15685961529/1/20223,000.002159.699/1/2022154.2635.99F9/1/20229/1/2022REc2022LeadReportn/a2012.25Recommended53111060700,000.00
1498010510NOP675855535510/1/20202,000.00310.0310/1/202016.317126F10/1/202010/1/2020REr2022MBAExcluden/a717.5Recommended5311106099,262.45
1510510OPQ97516151549/30/202210,000.001376.859/30/202272.465755.75F9/30/20229/30/2022REc2022MBAExcluden/a2012.25Recommended53111060460,000.00
16Product #CodeInstLocName#Product #CodeGoalGrade Org Date Balance Int 1 Date 1RE / Non REYear MBA / SOC / SOCReport / ExcludeLead10510PQR12998041568/31/20217,000.00576.628/31/202138.441534.5F8/31/20218/31/2021REe2022COMReportn/a1998.79Recommended49319060311,803.51
1786110510BCD2348611189/1/20225,000.00277.819/1/2022RE2023MBAExclude104,000.0010510QRS'85288061587/28/20198,000.001371.977/28/2019105.53615.5F7/28/20197/28/2019REc2022SOCReportn/a2012.25Recommended53111061700,375.65
1816310510CDE12416311910/1/20204,000.00248.4210/1/2020RE2023MBAExclude93,000.00
1916510510IJK39916351710/1/20208,000.00129.9510/1/2020RE2022MBAExclude52,122.57
2016710510JKL1051635219/30/202210,000.00311.819/30/2022RE2022MBAExclude100,000.00
2117310510LMN81316541210/1/20234,000.0010751.7110/1/2023RE2022LeadReport758,759.62
2219010510NOP67585553510/1/20202,000.00310.0310/1/2020RE2022MBAExclude99,262.45
2385510510OPQ9751615149/30/202210,000.001376.859/30/2022RE2022MBAExclude460,000.00
24161
25
26
27
28etc.
29
30
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,161
Members
453,021
Latest member
Justyna P

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