Filter Various Columns & Have Them Stacked

srh5428

New Member
Joined
Apr 17, 2024
Messages
5
Office Version
  1. 365
Hello All,

This is my first post as I dive deeper into Excel and can not figure out how to get my data displayed correctly. I am hoping someone will be able to help me. I am using Version 2401 in MS 365.

Here is a picture of my Table, which is called WR_Detail

1713360415139.png


As you can see from this screenshot, the same WR # can have multiple different CU Category Codes. I am trying to find all the WR #s with the "RECLOSER" CU Category Code. This is simple enough using =FILTER(WR_Detail[WR '#], WR_Detail[CU Category Code]="RECLOSER"). However, I want to also return the other CU Category Codes for only those WR #'s that have a CU Category that contains "RECLOSER".

So my end goal would be a list of WR #s that contain all the parts and pieces, and also have a "RECLOSER" CU Category Code. So from this screenshot, my desired result would look like this:

1713360736215.png


Thank you for your help
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Can you post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Hello All,

This is my first post as I dive deeper into Excel and can not figure out how to get my data displayed correctly. I am hoping someone will be able to help me. I am using Version 2401 in MS 365.

Here is a picture of my Table, which is called WR_Detail

View attachment 110097

As you can see from this screenshot, the same WR # can have multiple different CU Category Codes. I am trying to find all the WR #s with the "RECLOSER" CU Category Code. This is simple enough using =FILTER(WR_Detail[WR '#], WR_Detail[CU Category Code]="RECLOSER"). However, I want to also return the other CU Category Codes for only those WR #'s that have a CU Category that contains "RECLOSER".

So my end goal would be a list of WR #s that contain all the parts and pieces, and also have a "RECLOSER" CU Category Code. So from this screenshot, my desired result would look like this:

View attachment 110098

Thank you for your help

Designer Work Requests.xlsx
ABCDEFGHIJK
32315Columbus,Anthony J6285032311P4-122372POLE & EQ HW-OHPOLE AND EQUIPMENT HARDWARE - OVERHEADDS-130300EABRACKET ARRESTER OR CUTOUT- F/ CROSSARM MOUNTING
32316Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
32317Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
32318Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
32319Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
32320Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
32321Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-325650EAFUSE-LINK TYPE T 80A
32322Columbus,Anthony J6285032311P4-122372RECLOSERRECLOSERSDS-347150EARECLOSER 15 KV 6300 AMP TRIPSAVER (S&C) 200A CONTINUOUS CURRENT
32378Columbus,Anthony J6284853011P4-129172POLE & EQ HW-OHPOLE AND EQUIPMENT HARDWARE - OVERHEADDS-130300EABRACKET ARRESTER OR CUTOUT- F/ CROSSARM MOUNTING
32379Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
32380Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
32381Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
32382Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
32383Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
32384Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-325700EAFUSE-LINK TYPE T 100A
32385Columbus,Anthony J6284853011P4-129172RECLOSERRECLOSERSDS-347150EARECLOSER 15 KV 6300 AMP TRIPSAVER (S&C) 200A CONTINUOUS CURRENT
Work Request Detail
 
Upvote 0
Can you post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
Thank you for the instructions. I posted some sample data per your instructions. Thank you. I was not able to bring in the column headers due to the size of my table.
 
Upvote 0
Thanks for that, how about
Fluff.xlsm
ABCDEFGHIJK
1
2Columbus,Anthony J6285032311P4-122372POLE & EQ HW-OHPOLE AND EQUIPMENT HARDWARE - OVERHEADDS-130300EABRACKET ARRESTER OR CUTOUT- F/ CROSSARM MOUNTING
3Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
4Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
5Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
6Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
7Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
8Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-325650EAFUSE-LINK TYPE T 80A
9Columbus,Anthony J6285032311P4-122372RECLOSERRECLOSERSDS-347150EARECLOSER 15 KV 6300 AMP TRIPSAVER (S&C) 200A CONTINUOUS CURRENT
10Columbus,Anthony J6284853011P4-129172POLE & EQ HW-OHPOLE AND EQUIPMENT HARDWARE - OVERHEADDS-130300EABRACKET ARRESTER OR CUTOUT- F/ CROSSARM MOUNTING
11Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
12Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
13Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
14Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
15Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
16Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-325700EAFUSE-LINK TYPE T 100A
17Columbus,Anthony J6284853011P4-129172RECLOSERRECLOSERSDS-347150EARECLOSER 15 KV 6300 AMP TRIPSAVER (S&C) 200A CONTINUOUS CURRENT
18
19
20
21
22Columbus,Anthony J6285032311P4-122372POLE & EQ HW-OHPOLE AND EQUIPMENT HARDWARE - OVERHEADDS-130300EABRACKET ARRESTER OR CUTOUT- F/ CROSSARM MOUNTING
23Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
24Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
25Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
26Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
27Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
28Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-325650EAFUSE-LINK TYPE T 80A
29Columbus,Anthony J6285032311P4-122372RECLOSERRECLOSERSDS-347150EARECLOSER 15 KV 6300 AMP TRIPSAVER (S&C) 200A CONTINUOUS CURRENT
30Columbus,Anthony J6284853011P4-129172POLE & EQ HW-OHPOLE AND EQUIPMENT HARDWARE - OVERHEADDS-130300EABRACKET ARRESTER OR CUTOUT- F/ CROSSARM MOUNTING
31Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
32Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
33Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
34Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
35Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
36Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-325700EAFUSE-LINK TYPE T 100A
37Columbus,Anthony J6284853011P4-129172RECLOSERRECLOSERSDS-347150EARECLOSER 15 KV 6300 AMP TRIPSAVER (S&C) 200A CONTINUOUS CURRENT
Sheet5
Cell Formulas
RangeFormula
A22:K37A22=FILTER(A2:K20,COUNTIFS(B2:B20,B2:B20,G2:G20,"recloser"))
Dynamic array formulas.
 
Upvote 0
Solution
Thanks for that, how about
Fluff.xlsm
ABCDEFGHIJK
1
2Columbus,Anthony J6285032311P4-122372POLE & EQ HW-OHPOLE AND EQUIPMENT HARDWARE - OVERHEADDS-130300EABRACKET ARRESTER OR CUTOUT- F/ CROSSARM MOUNTING
3Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
4Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
5Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
6Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
7Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
8Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-325650EAFUSE-LINK TYPE T 80A
9Columbus,Anthony J6285032311P4-122372RECLOSERRECLOSERSDS-347150EARECLOSER 15 KV 6300 AMP TRIPSAVER (S&C) 200A CONTINUOUS CURRENT
10Columbus,Anthony J6284853011P4-129172POLE & EQ HW-OHPOLE AND EQUIPMENT HARDWARE - OVERHEADDS-130300EABRACKET ARRESTER OR CUTOUT- F/ CROSSARM MOUNTING
11Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
12Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
13Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
14Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
15Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
16Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-325700EAFUSE-LINK TYPE T 100A
17Columbus,Anthony J6284853011P4-129172RECLOSERRECLOSERSDS-347150EARECLOSER 15 KV 6300 AMP TRIPSAVER (S&C) 200A CONTINUOUS CURRENT
18
19
20
21
22Columbus,Anthony J6285032311P4-122372POLE & EQ HW-OHPOLE AND EQUIPMENT HARDWARE - OVERHEADDS-130300EABRACKET ARRESTER OR CUTOUT- F/ CROSSARM MOUNTING
23Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
24Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
25Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
26Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
27Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
28Columbus,Anthony J6285032311P4-122372CUTOUTS & FUSESCUTOUTS AND FUSESDS-325650EAFUSE-LINK TYPE T 80A
29Columbus,Anthony J6285032311P4-122372RECLOSERRECLOSERSDS-347150EARECLOSER 15 KV 6300 AMP TRIPSAVER (S&C) 200A CONTINUOUS CURRENT
30Columbus,Anthony J6284853011P4-129172POLE & EQ HW-OHPOLE AND EQUIPMENT HARDWARE - OVERHEADDS-130300EABRACKET ARRESTER OR CUTOUT- F/ CROSSARM MOUNTING
31Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
32Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
33Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
34Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
35Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-320510-REACUTOUT-OPEN 15KV W/ 100A FUSEHOLDER - POLYMER
36Columbus,Anthony J6284853011P4-129172CUTOUTS & FUSESCUTOUTS AND FUSESDS-325700EAFUSE-LINK TYPE T 100A
37Columbus,Anthony J6284853011P4-129172RECLOSERRECLOSERSDS-347150EARECLOSER 15 KV 6300 AMP TRIPSAVER (S&C) 200A CONTINUOUS CURRENT
Sheet5
Cell Formulas
RangeFormula
A22:K37A22=FILTER(A2:K20,COUNTIFS(B2:B20,B2:B20,G2:G20,"recloser"))
Dynamic array formulas.
That seemed to work! What is the first two arguments of the COUNTIFS saying? Thank you
 
Upvote 0
It's effectively the same as
Excel Formula:
COUNTIFS(B$2:B$20,B2,G$2:G$20,"recloser")
dragged down, but it does it all at once.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,256
Messages
6,123,915
Members
449,132
Latest member
Rosie14

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