Filter by Designated Criteria

Nawar Jameel

New Member
Joined
Aug 14, 2023
Messages
18
Office Version
  1. 2013
Platform
  1. Windows
Hello Everyone,

Hoping you are all well.

I've got the below formula which mainly filter the values (C01, C02, P01, P02, etc) available in column C based on the values in column A.

=IFERROR(TRANSPOSE(UNIQUE(FILTER(Raw_Data!$C$2:$C$50000,Raw_Data!$A$2:$A$50000='001200_Dwg_Trckr'!A16))),"")

I need this filter to start first with the P0s before the C0s.

Any ideas please.

Much appreciated.


Kind regards,

Nawar Jameel
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Can you post some sample data, along with expected results.

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

Hoping the below screenshot will meet your requirements

This is the main sheet:

1720623307591.png



This is the source data sheet / data feed:

1720623436824.png
 
Upvote 0
Ok, how about
Excel Formula:
=IFERROR(TRANSPOSE(SORT(UNIQUE(FILTER(Raw_Data!$C$2:$C$50000,Raw_Data!$A$2:$A$50000=A16)),,-1)),"")
 
Upvote 0
Ok, how about
Excel Formula:
=IFERROR(TRANSPOSE(SORT(UNIQUE(FILTER(Raw_Data!$C$2:$C$50000,Raw_Data!$A$2:$A$50000=A16)),,-1)),"")

Many thanks for your response.

However, it did partially resolve the problem, as screenshot below:

1720692789973.png


What actually I need please is as follows:

P01 P02 P03 C01 C02 C03

Or vice-versa as follows:

C03 C02 C01 P03 P02 P01

Is that possible to do please?

Appreciate your kind help.
 
Upvote 0
Try
Excel Formula:
=LET(u,UNIQUE(FILTER(Raw_Data!$C$2:$C$50000,Raw_Data!$A$2:$A$50000=A16)),IFERROR(TRANSPOSE(SORTBY(u,XMATCH(LEFT(u),{"P","C"}))),""))
 
Upvote 0
Try
Excel Formula:
=LET(u,UNIQUE(FILTER(Raw_Data!$C$2:$C$50000,Raw_Data!$A$2:$A$50000=A16)),IFERROR(TRANSPOSE(SORTBY(u,XMATCH(LEFT(u),{"P","C"}))),""))

Brilliant your formula did work perfectly

1720797562066.png


Many thanks for your kind help mate
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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