List all results from a table that match a value

Dmobbs

New Member
Joined
Jun 14, 2016
Messages
8
Hi,

I am trying to make a list based on the values in a table.

In Row A I have a list of locations, in Column 1 I have a list of departments. Within the table I have various cells with "Pass" written in.

I am looking for a way to list all the departments of each location that have "pass".

e.g. if Cell C2, D5, E3 and E7 all have Pass I would like the list to include "A2 C1", "A5 D1", "A3 E1" & "A7 E1"

Thank you in advance.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
You talk about row A and column 1.
Row A ? You mean column A surely ?
Column 1 ? You mean row 1 don't you ?
Columns go up and down like the column in a newspaper or the column that supports a building.
Rows go across.

Post the data so we know exactly what you mean.

You cant attach files on this forum. There are tools on this forum for adding small spreadsheet images

https://www.mrexcel.com/forum/about-board/508133-attachments.html
 
Upvote 0
Sorry, Monday morning

As a shortened example. If I have the table below.

NorthSouthEastWest
SalesPass
TechnicalPassPass
ServicesPass
Commercial
FinancePass

<tbody>
</tbody>

I am looking to have a way to automatically create the following list

North Technical
South Sales
East Services
West Technical
West Finance

Then create a new list if the cells which have returned a Pass result change.
 
Upvote 0
is that what you want?

if so try PowerQuery

TypeNorthSouthEastWestRegionTypeValue
SalesPassSouthSalesPass
TechnicalPassPassNorthTechnicalPass
ServicesPassWestTechnicalPass
CommercialEastServicesPass
FinancePassWestFinancePass

Code:
[SIZE=1]let
    Source = Excel.CurrentWorkbook(){[Name="Table10"]}[Content],
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"Type"}, "Attribute", "Value"),
    #"Reordered Columns" = Table.ReorderColumns(#"Unpivoted Other Columns",{"Attribute", "Type", "Value"}),
    #"Renamed Columns" = Table.RenameColumns(#"Reordered Columns",{{"Attribute", "Region"}})
in
    #"Renamed Columns"[/SIZE]
 
Upvote 0
That is what I want, I am very new to PowerQuery. I managed to use the getdata function to create the original table for loads of other tables but now struggling to follow the recommendation above.
 
Upvote 0
Hm,
add header to source table (here: Type)
Select whole source table (here blue) then use from the ribbon Data - From Table
it will open new window PowerQuery Editor
select column Type then UnPivot Other Columns (from the ribbon or from right click menu)
Re-order columns as you want and rename headers as you want
then from the ribbon use Close & Load

hope it's clear ;)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,426
Messages
6,124,829
Members
449,190
Latest member
rscraig11

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