Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by Beeee View Post
Hi,

I'm working on a s/sheet (excel 2003) for holidays where I have entered H or C on some cells where holidays have been taken.

I want to calculate anywhere I have a H or C, I used =COUNTIF(C20:CM28,"H*") but that only gives me the H value :( but not sure how to get the value for more than one letter

Can anyone help me please….?

Thanks
Hi, without an example workbook it's hard to tell exactly what you're trying to do. But perhaps the below formula will help....

=COUNTIF(C20:CM28,"C")+COUNTIF(C20:CM28,"C")

Let us know if that's what you meant or not.
  #2   Report Post  
Junior Member
 
Posts: 4
Default

Quote:
Originally Posted by Spencer101 View Post
Hi, without an example workbook it's hard to tell exactly what you're trying to do. But perhaps the below formula will help....

=COUNTIF(C20:CM28,"C")+COUNTIF(C20:CM28,"C")

Let us know if that's what you meant or not.

Thanks for you replies back but for some reason it's not giving me the correct information :(

I have attached an example of s/sheet i'm working on.
What I want to do is culculate the number of holidays (H & C's) for each person to give me a total on the end of each person's row.
I hope this make more sense.

Thanks again :)
Attached Images
 
  #3   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by Beeee View Post
Thanks for you replies back but for some reason it's not giving me the correct information :(

I have attached an example of s/sheet i'm working on.
What I want to do is culculate the number of holidays (H & C's) for each person to give me a total on the end of each person's row.
I hope this make more sense.

Thanks again :)
Sorry, the last "C" in the formula I have should have been "H"... My bad. :(

=COUNTIF(C20:CM28,"C")+COUNTIF(C20:CM28,"H")
  #4   Report Post  
Junior Member
 
Posts: 4
Default

Quote:
Originally Posted by Spencer101 View Post
Sorry, the last "C" in the formula I have should have been "H"... My bad. :(

=COUNTIF(C20:CM28,"C")+COUNTIF(C20:CM28,"H")
No worries Spencer - Thanks :)
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Formula Help Please

Hi Beeee,

Am Fri, 15 Jun 2012 11:23:57 +0000 schrieb Beeee:

I have attached an example of s/sheet i'm working on.
What I want to do is culculate the number of holidays (H & C's) for each
person to give me a total on the end of each person's row.
I hope this make more sense.


each person has a own row:
=SUM(COUNTIF(C7:CM7,{"H","C"}))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2


  #6   Report Post  
Junior Member
 
Posts: 4
Default

Quote:
Originally Posted by Claus Busch View Post
Hi Beeee,

Am Fri, 15 Jun 2012 11:23:57 +0000 schrieb Beeee:

I have attached an example of s/sheet i'm working on.
What I want to do is culculate the number of holidays (H & C's) for each
person to give me a total on the end of each person's row.
I hope this make more sense.


each person has a own row:
=SUM(COUNTIF(C7:CM7,{"H","C"}))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

This seems to have worked!!!

Thank you very much
:) ;)
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
Build formula using field values as text in the formula referencing another workbook solardirect Links and Linking in Excel 6 June 4th 12 10:47 PM
Regression Leverage Formula (Jerry W. Lewis or Mike Middleton)already have DFITS formula PJ[_3_] Excel Worksheet Functions 2 June 2nd 10 03:45 PM
copy formula down a column and have cell references change within formula brad New Users to Excel 5 May 13th 07 04:38 PM
Formula expected end of statement error, typing formula into cell as part of VBA macro [email protected] Excel Programming 1 July 20th 06 07:58 PM
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


All times are GMT +1. The time now is 08:21 AM.

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"