Extracting unique values

CookieMonster76

Board Regular
Joined
Apr 30, 2015
Messages
195
Hi

I have a report that comes out like this:
1679584925384.png


It shows employees hand training courses they need to do.

I need to summarise it to tell me how many unique employees there are, which i have done like this:

IFERROR(ROWS(UNIQUE(FILTER(M:M,O:O="Sales"))),0)

However, I would then like to exclude anyone who is marked as "Yes" in Col J.

So the end result should be

Sales 0
Finance 1
IT 1

Can the above formula be amended to do this?

Thanks

Paul
 

Attachments

  • 1679584474898.png
    1679584474898.png
    16.4 KB · Views: 4
  • 1679584866857.png
    1679584866857.png
    16 KB · Views: 3

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
something like

=IFERROR(ROWS(UNIQUE(FILTER(M:M,(( O:O="Sales") * (J:J<>"yes") )) )),0)

Book4
ABCDEFGHIJKLMNO
12
2
3yesasales
4
5bsales
6
7csales
8
Sheet1
Cell Formulas
RangeFormula
A1A1=IFERROR(ROWS(UNIQUE(FILTER(M:M,(( O:O="Sales") * (J:J<>"yes") )) )),0)


BUT , probably not good to reference the full column - choose a range

Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone

---
 
Upvote 0
Maybe update your avatar to include your office version as solutions are quite often based on office version.
 
Upvote 0
you are welcome , did that formula - and my example in xl2bb solve your problem
 
Upvote 0

Forum statistics

Threads
1,214,959
Messages
6,122,476
Members
449,087
Latest member
RExcelSearch

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