Is there a way to filter by values to find out a specific combination of values and form a table?

ShadowZeno

New Member
Joined
May 12, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a group of companies in this table (see image and/or access link below), ranked based on 1 to 4, 1 being the lowest and 4 being the highest, on 8 different criteria in 3 different pillars. I intend to filter by values and find out the number of companies that meet at least one criteria in each pillar (which allows them to pass a certain assessment.

I had previously tried the FILTER function to get the number of companies that meet the 8 criteria individually and also in different combinations. But I am not sure how to go about filtering to find out the number of companies within a specific restriction in the criteria as underlined above.

Intended outcome: I hope to visualise (in a table or I am open to other suggestions) the number of companies, the criteria that they meet (which fall under the aim of having them meet at least one criteria in each pillar (which means that they would pass a certain assessment.

I have included the table in this link for easy access: Spreadsheet #2

Thank you!
 

Attachments

  • Screenshot of table.jpg
    Screenshot of table.jpg
    113.6 KB · Views: 5

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Welcome to the MrExcel forum!

I'm not sure what your preferred output is, but try:

Book1
ABCDEFGHIJKLM
1Pillar APillar BPillar C
2S/NCompanyCriteria 1 (Must be >2.2)Criteria 2 (Must be >2.5)Criteria 3 (Must be >3.3)Criteria 4 (Must be >1.9)Criteria 5 (Must be >2.3)Criteria 6 (Must be >1.8)Criteria 7 (Must be >2.9)Criteria 8 (Must be >3.5)Companies matching at least 1 criteria per pillarCriteria passed
31A44423344A11111111
42B33334433B11011110
53C33134433C11011110
64D44213342D11001110
75E22322233F00111110
86F11433341G00110110
97G22442232H11010110
108H33342233I11111110
119I44434442J00110010
1210J22421141L11111110
1311K11213334Q11010110
1412L33443333R11001111
1513M22232233 
1614N11334422 
1715O22413311 
1816P44214412 
1917Q44222233 
2018R33114444 
Sheet2
Cell Formulas
RangeFormula
L3:L14L3=FILTER(B3:B20,((C3:C20>2.2)+(D3:D20>2.5)+(E3:E20>3.3))*((F3:F20>1.9)+(G3:G20>2.3)+(H3:H20>1.8))*((I3:I20>2.9)+(J3:J20>3.5)))
M3:M20M3=IF(L3<>"",CONCAT((INDEX($C$3:$J$20,MATCH(L3,$B$3:$B$20,0),0)>{2.2,2.5,3.3,1.9,2.3,1.8,2.9,3.5})+0),"")
Dynamic array formulas.
 
Upvote 0
Welcome to the MrExcel forum!

I'm not sure what your preferred output is, but try:

Book1
ABCDEFGHIJKLM
1Pillar APillar BPillar C
2S/NCompanyCriteria 1 (Must be >2.2)Criteria 2 (Must be >2.5)Criteria 3 (Must be >3.3)Criteria 4 (Must be >1.9)Criteria 5 (Must be >2.3)Criteria 6 (Must be >1.8)Criteria 7 (Must be >2.9)Criteria 8 (Must be >3.5)Companies matching at least 1 criteria per pillarCriteria passed
31A44423344A11111111
42B33334433B11011110
53C33134433C11011110
64D44213342D11001110
75E22322233F00111110
86F11433341G00110110
97G22442232H11010110
108H33342233I11111110
119I44434442J00110010
1210J22421141L11111110
1311K11213334Q11010110
1412L33443333R11001111
1513M22232233 
1614N11334422 
1715O22413311 
1816P44214412 
1917Q44222233 
2018R33114444 
Sheet2
Cell Formulas
RangeFormula
L3:L14L3=FILTER(B3:B20,((C3:C20>2.2)+(D3:D20>2.5)+(E3:E20>3.3))*((F3:F20>1.9)+(G3:G20>2.3)+(H3:H20>1.8))*((I3:I20>2.9)+(J3:J20>3.5)))
M3:M20M3=IF(L3<>"",CONCAT((INDEX($C$3:$J$20,MATCH(L3,$B$3:$B$20,0),0)>{2.2,2.5,3.3,1.9,2.3,1.8,2.9,3.5})+0),"")
Dynamic array formulas.
Hi! Could I know what does the second formula do? I understand the first part on the FILTER function but not the second one.
 
Upvote 0
Sure.

The MATCH part of the formula finds the row that corresponds to the value in column L. So if we're looking at company A, it returns C3::J3. Then it does a comparison of each of those values against the internal array, so C3>2.2, D3> 2.5, etc. That will return TRUE or FALSE for each comparison. If you add 0 to TRUE or FALSE, it becomes 1 or 0. Then finally the CONCAT concatenates the 1's and 0's together into an 8-digit string. So each digit represents one of your criteria, a 1 means it was met, a 0 means it wasn't. I didn't know how you wanted the results of the comparisons displayed, so I started with this. If you have a different idea, let me know.

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,692
Members
448,979
Latest member
DET4492

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