Need Formula for Returning Unique Count from Partial Criteria

bananney

New Member
Joined
Jan 18, 2013
Messages
5
[TABLE="width: 335"]
<tbody>[TR]
[TD]
I am trying to get a formula that will return the following result. If column B shows "Out-of-Town" any where in the cell, then I want to count the number of unique employees that are out-of-town at any time during that week. For this particular week there should be 2. The problem I have is that the words "Out-of-Town" are only a portion of the cell and using the wildcard asterick doesn't give the correct answer.


[TABLE="width: 400"]
<tbody>[TR]
[TD]Employee
[/TD]
[TD]Location
[/TD]
[/TR]
[TR]
[TD]135
[/TD]
[TD]Out-of-Town Monday
[/TD]
[/TR]
[TR]
[TD]201
[/TD]
[TD]At Work
[/TD]
[/TR]
[TR]
[TD]344
[/TD]
[TD]At Work
[/TD]
[/TR]
[TR]
[TD]135
[/TD]
[TD]Out-of-Town Friday
[/TD]
[/TR]
[TR]
[TD]344
[/TD]
[TD]Out-of-Town Wednesday
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Thanks but that is not what I am looking for. I want to know how many employees are out of town this week. I should be able to see that 2 employees are out of town.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

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