Unique function applied to the filter values

Vasanth88ece

New Member
Joined
Feb 26, 2025
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hey Guys,

I wanna use unique function for the range where the filter is applied. I have applied unique function in value range. When I filter "a" from filter range I ll get the filtered value like ss 2 times , ed 1 time and dd 2 times. all i need is to get the unique from that range. Not to the whole range.


Filtervalue
ass
ass
aed
add
add
fch
fch
fvb
fvb
fde
fde
 
Hello, do you mean:

Excel Formula:
=UNIQUE(FILTER(B2:B12,A2:A12="a"))
Not exactly.


S.NOEMP IDNAMETRADE
1ATESRAKESH KUMAR YADAV SHAMBHU YADAVARC WELDER
2ATESDURGESH KUSHWAHA RAMAKANT KUSHWAHAARC WELDER
3ATESATUL KUMAR SINGH SURESH SINGHARC WELDER
4ATESRIYAJUDDIN ANSARI MOHAMMAD ANSARIARC WELDER
5ATESRAJA BABU TAHAUWAR HUSSAINARC WELDER
6ZTMMUHAMMAD TUFAIL MUHAMMAD ISLAMELECTRICIAN
7ASBCSUMAN CHAUDHARYELECTRICIAN
8NTMHABIBULLAH ABDUL AZIZELECTRICIAN
9MSHMD SHAKIL MD MIJANUR RAHMANELECTRICIAN
10ATSRAJKUMAR YADAV LUTAWAN YADAVELECTRICIAN
11ALBMD NUR ALAM MUNSHI TURAF ALI MUNSHIELECTRICIAN
12ASBCPRASANT CHAUDHARYELECTRICIAN
13AAAMD WALL EKRAM MD ABDUL MOTALEBELECTRICIAN

When I apply filter in EMP ID I want the unique values of TRADE column. Whenever Filter is applied I should get the unique value of Trade in different cell. Forget the filter applying procedure that i have as list in different cell. All I need is when filter is applied I should get the unique value of Trade in different cell.
 
Upvote 0
Many thanks for the reply - although I am not sure whether I understand it correctly:

Excel Formula:
=UNIQUE(FILTER(D2:D14,BYROW(B2:B14,LAMBDA(x,SUBTOTAL(3,x)))))
 
Upvote 0
Many thanks for the reply - although I am not sure whether I understand it correctly:

Excel Formula:
=UNIQUE(FILTER(D2:D14,BYROW(B2:B14,LAMBDA(x,SUBTOTAL(3,x)))))
Will put it another way. I want unique values from TRADE column at any point of filter applied to any other columns. I want it to get the unique values that are displayed in TRADE column. Don't not include any filter func to that since I m applying it manually.
 
Upvote 0
Ok, the following is the formula adjusted for manual filter applied to any column (for checking what it does cf. the picture):

Excel Formula:
=UNIQUE(FILTER(D2:D14,BYROW(A2:D14,LAMBDA(x,SUBTOTAL(3,x)))))

If it is not the desired output, could you please post a picture how it should look like?
 

Attachments

  • 1.png
    1.png
    16.2 KB · Views: 4
Upvote 0
Ok, the following is the formula adjusted for manual filter applied to any column (for checking what it does cf. the picture):

Excel Formula:
=UNIQUE(FILTER(D2:D14,BYROW(A2:D14,LAMBDA(x,SUBTOTAL(3,x)))))

If it is not the desired output, could you please post a picture how it should look like?

S.NOEMP IDNAMETRADE#NAME?
1ATESRAKESH KUMAR YADAV SHAMBHU YADAVARC WELDER
2ATESDURGESH KUSHWAHA RAMAKANT KUSHWAHAARC WELDER
3ATESATUL KUMAR SINGH SURESH SINGHARC WELDER
4ATESRIYAJUDDIN ANSARI MOHAMMAD ANSARIARC WELDER
5ATESRAJA BABU TAHAUWAR HUSSAINARC WELDER

It is throwing me a #Name error. Help me on this. Ur image is the right thing that I m looking for
 
Upvote 0
If you really are using Excel 365, then you could maybe try to update your Office?
 

Attachments

  • 2.png
    2.png
    48.7 KB · Views: 3
Upvote 0
As Excel 2021 does not have BYROW, as an alternative, if it is possible for you to add another column, you could try:

1) use a helper column with the following formula insterted in E2 and copied down:

Excel Formula:
=AGGREGATE(3,5,A2)

2) then use the following formula to filter:

Excel Formula:
=LET(
a,D2:D14,
f,E2:E14,
r,SUM(f)=ROWS(f),
IF(r,"no filter applied",UNIQUE(FILTER(a,f))))

where E2:E14 represents the column where there is the formula ad 1).
 
Upvote 0

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