Transposing filtered items but skip columns

FryGirl

Well-known Member
Joined
Nov 11, 2008
Messages
1,368
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello,

This is returning the filtered items from Column B by searching Column A for what's selected in D1, but how can I skip columns? Versus retuning in D2:G2, I'd like the results to be D2, then F2, then H2, the J2, etc.

OSC Groupings.xlsb
ABCDEFG
1HDRDivisionSPT
2SPTBusiness OperationsBusiness OperationsClinical OperationsFinancial OperationsService Commad Structure
3SPTClinical Operations
4SPTFinancial Operations
5SPTService Commad Structure
6DFXBehavior Health Services
7DFXAdmin/Locations
8DFXDental Laboratory
9DFXDental Specialties
10DFXGeneral Denistry
11COLInformation Technology
12COLLogistics
13COLAmbulance
14COLEmergency Medicine
15LXCGeneral
16LXCTrauma
17LXCInpatient Services
18ETRPrimary Care
19ETRSpecialty Care
20ETRSurgical Services
Sheet1
Cell Formulas
RangeFormula
D2:G2D2=TRANSPOSE(FILTER($B$2:$B$20,$A$2:$A$20=D1))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
D1List=$Q$2:$Q$6
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Do you want to put anything in the "blank" cells?
 
Upvote 0
Ok, how about
Excel Formula:
=TOROW(EXPAND(FILTER($B$2:$B$20,$A$2:$A$20=D1),,2,""))
 
Upvote 1
Solution
Thank you Fluff. I knew about the TOROW, but didn't know about the expand.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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