Return Unique Values based on certain cell & column

edins425

New Member
Joined
Aug 26, 2024
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm hoping there's a way to display unique values from a column based on a certain cell and column. Looking at the attached image, I'd like to build a formula that lists all 'BSLs' in Column A (just once), based on what's displayed in cell H1. Ideally, all I'd have to do is type in any department name in H1, and columns A3:A23 will populate with a unique list of BSL's (column J), based on criteria in columns H and I. I'd like to avoid column A listing any BSL twice if possible.


1724869073685.png
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
How about
Excel Formula:
=UNIQUE(FILTER(J2:J100,I2:I100=H1))
 
Upvote 1
Solution
Thank you, this works! D
How about
Excel Formula:
=UNIQUE(FILTER(J2:J100,I2:I100=H1))
This works, thank you!! Is it possible to filter on more than one cell? For example, if in column K I had Operating and Capital, and only wanted it to return Operating, can that be added to this formula?
 
Upvote 0
How about
Excel Formula:
=UNIQUE(FILTER(J2:J100,(I2:I100=H1)*(K2:K100="Operating")))
 
Upvote 0
How about
Excel Formula:
=UNIQUE(FILTER(J2:J100,I2:I100=H1))

Thank you, this works! D

This works, thank you!! Is it possible to filter on more than one cell? For example, if in column K I had Operating and Capital, and only wanted it to return Operating, can that be added to this formula?
I got it sorted, thanks again! I realized you can do and/or to add multiple criteria and it works great.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,157
Members
452,615
Latest member
bogeys2birdies

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