#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Counting text

I have a calendar in a worksheet with spaces beside each day of the year to
input peoples initials if they are on leave that day.
So I use the following formula for counting the number of leave days they
have per month =COUNTIF(N2:P38,"CK")

I would also like to include on the calendar, half days leave, e.g. I would
type in CK½ or CK1/2 (either one would be fine), using something like:

=COUNTIF(N2:P38,"CK½") or =COUNTIF(N2:P38,"CK1/2")

But this counts them as full days. is there any way to have the formula sum
up all the occurances of "CK½" in a range, but count them as 0.5 of a day?

e.g. "CK" occurs in the range 3 times, and "CK½" occurs once, the formula
result should be 3.5

Thanks
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Counting text

hi
just devide the half count by 2.

=COUNTIF(N2:P38,"CK1/2")/2

regards
FSt1

"Andy P" wrote:

I have a calendar in a worksheet with spaces beside each day of the year to
input peoples initials if they are on leave that day.
So I use the following formula for counting the number of leave days they
have per month =COUNTIF(N2:P38,"CK")

I would also like to include on the calendar, half days leave, e.g. I would
type in CK½ or CK1/2 (either one would be fine), using something like:

=COUNTIF(N2:P38,"CK½") or =COUNTIF(N2:P38,"CK1/2")

But this counts them as full days. is there any way to have the formula sum
up all the occurances of "CK½" in a range, but count them as 0.5 of a day?

e.g. "CK" occurs in the range 3 times, and "CK½" occurs once, the formula
result should be 3.5

Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting text mariekek5 Excel Discussion (Misc queries) 3 February 17th 10 05:30 PM
Countif - problem counting text, other text gmoore3055 Excel Worksheet Functions 1 February 4th 10 11:30 PM
counting a text value based on another text value. Rob K. Excel Discussion (Misc queries) 2 February 19th 09 05:26 AM
Counting a mixed text/number column based on text in another colum Sierra Vista Steve Excel Discussion (Misc queries) 3 December 17th 06 06:30 PM
Counting Occurrence of Text within Text in Cells in Range. Jeremy N. Excel Worksheet Functions 1 September 8th 05 06:16 AM


All times are GMT +1. The time now is 02:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"