UNIQUE list based on crieria

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
1,015
Office Version
  1. 365
Platform
  1. Windows
How can I create a formula that would give me the unique values in column W, based on column U being equal to anything EXCEPT "Materials," or "Rental"??

Many thanks in advance!

v2023.8 - Copy - Copy.xlsm
UVWXYZ
2ECMECM SubCategoryQTY (fixture)Add. LaborInstall Note
3LampBR LampHALCO 8W LED BR30 Lamp 27K1
4AccessoryHALCO Joiner Bracket for LWA Wrap1
5AccessoryKEYSTONE Constant Wattage LED Emergency Backup1
6MaterialsTBD 2-Screw EMT Set Screw Coupling 3/4-Inch1
7MaterialsTBD Tan Wirenuts1
8RentalUNITEDRENTALS Boom, Articulated, 30-39' Diesel Day1
9ControlMAXLITE Network Node -Round, White1
10FixtureAreaMAXLITE 53W LED PostTop Area Light [3K]1
11AccessoryHALCO Joiner Bracket for LWA Wrap1
12AccessoryKEYSTONE Constant Wattage LED Emergency Backup1
13MaterialsTBD 2-Screw EMT Set Screw Coupling 3/4-Inch1
14MaterialsTBD Tan Wirenuts1
15RentalUNITEDRENTALS Boom, Articulated, 30-39' Diesel Day1
16ControlMAXLITE Network Node -Round, White1
Input
 

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.
I'm a little confused by your request that you want "unique" values from Column W when, especially based on the column's title, they all seem to be unique from each other already. With that said, this might do what you want...
Excel Formula:
=FILTER(W3:W16,(U3:U16<>"Materials")*(U3:U16<>"Rental"))
 
Upvote 1
Solution
Rick - thank you again; this worked perfectly. Column W has many repeated values so I am trying to pull the unique values out, which will in turn give me the products being utilized on each project. I am trying to exclude certain values and your formula did just that. Many thanks!

*Edit - would you mind showing me how to do the same thing but INCLUDING ONLY the 2 criteria above ("Materials" and "Rental"?
 
Upvote 0
Okay, to make sure your list is unique, just wrap a UNIQUE function call around my formula...
Excel Formula:
=UNIQUE(FILTER(W3:W16,(U3:U16<>"Materials")*(U3:U16<>"Rental")))
As for returning only Column W values for Materials or Rental, use this formula...
Excel Formula:
=UNIQUE(FILTER(W3:W16,(U3:U16="Materials")+(U3:U16="Rental")))
 
Upvote 1

Similar threads

Forum statistics

Threads
1,223,884
Messages
6,175,174
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