Transpose cells in a column if adjacent criteria matches

Knockoutpie

Board Regular
Joined
Sep 10, 2018
Messages
116
Office Version
  1. 365
Platform
  1. Windows
Kind of difficult to explain this in a header..

I'm trying to take a column of employee names, and if the title matches "sales" to transpose those names to a header..

This is the ideal output.. Trying to figure, maybe it's a mix of filter, unique, transpose, index, match, etc. Any help would be great.

Employee 1Employee 2Employee 4Employee 5Employee 8Employee 9

NameTitle
Employee 1Sales
Employee 2Sales
Employee 3Purchasing
Employee 4Sales
Employee 5Sales
Employee 6Purchasing
Employee 7Purchasing
Employee 8Sales
Employee 9Sales
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
How about
Excel Formula:
=TOROW(FILTER(A2:A100,B2:B100="Sales"))
 
Upvote 1
Solution
How about
Excel Formula:
=TOROW(FILTER(A2:A100,B2:B100="Sales"))
It works for this example, and that's the concept i'm going for, but for my real use it doesn't work for some reason.

I have a table that's 12000 rows long in Sheet1. This returns #N/A for me in Sheet2, I figured maybe it's because there's too many records and I need to include Unique in it but still no dice.
 
Upvote 0
Do you have any cells with #N/A in the data?
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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