Count unique IDs with a wildcard criteria for another column

ausswe

New Member
Joined
Feb 19, 2013
Messages
46
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi,
I'm trying to count unique IDs in a table with ID and Resource as two separate columns. In this case I need to count any resources that contain "land" in the resource name (can be anywhere in the resource name).

I have been searching around and came across the UNIQUE and FILTER function for O365 and have tried the following but it shows as an empty result:
Excel Formula:
=COUNT(UNIQUE(FILTER(SOL[ID];ISNUMBER(SEARCH("land";SOL[Resource])))))

I have also tried:
Excel Formula:
=COUNT(UNIQUE(FILTER(SOL[ID];ISNUMBER(SEARCH("land";SOL[Resource];1)))))

Any thoughts on where the formula is wrong?

Thanks in advance!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Try change COUNT to ROWS:

Excel Formula:
=ROWS(UNIQUE(FILTER(SOL[ID];ISNUMBER(SEARCH("land";SOL[Resource])))))
 
Upvote 0
Solution

Forum statistics

Threads
1,224,271
Messages
6,177,619
Members
452,786
Latest member
k3calloway

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