Countif(Text within Text)

Katana_kid

New Member
Joined
Dec 15, 2005
Messages
2
Hello all,

I have a problem with figuring out a formula.

What I have:
I have a vacation calendar. On the Calendar I can input the names of the person taking a day off work, by entering his/her name into the cell for the day (e.g. For Jan 3rd I can put in the name Bob).

The count if formula I have is
=20-COUNTIF('2006 Calendar'!$B$5:$H$111, "Bob")

20 = is the number of maximum days allowed for vacation
'2006 Calendar'!$B$5:$H$111 = is the page and cell range of the calendar
"Bob" = is the employee

Problem:
If I type in
Bob Steve
into cell Jan 3rd, the count if formula does not recognize either Bob or Steve. People will have overlapping vacations, and I can't figure out how to have this work....

Can someone give me direction?
(I've tried the find, findb, and search, but I get a number reference.. I want to count how many times the word "Bob" appears in the whole range, regardless of where in teh cell it is.....)


Thanks in advance,
Tom
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,214,585
Messages
6,120,391
Members
448,957
Latest member
Hat4Life

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