+ Reply to Thread
Results 1 to 4 of 4

COUNTIF Problem

  1. #1
    Registered User
    Join Date
    07-28-2004
    Posts
    2

    COUNTIF Problem

    Hi
    I'm setting up a spreadsheet to calculate people's holidays. So far for each person I have a formula for counting the number of days a 'H' is input for holiday which is =COUNTIF(B2:AF2,"H") which is fine for counting full days, but I need a formula for counting half days so that if HH is input it will count the number of times it is input but add half each time.
    I hope this makes sense.
    Please help!!!
    Thanks
    Jackie

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475
    =COUNTIF(B2:AF2,B1)

    this example has B1 as the criteria you want to count

  3. #3
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Jackster
    Hi
    I'm setting up a spreadsheet to calculate people's holidays. So far for each person I have a formula for counting the number of days a 'H' is input for holiday which is =COUNTIF(B2:AF2,"H") which is fine for counting full days, but I need a formula for counting half days so that if HH is input it will count the number of times it is input but add half each time.
    I hope this makes sense.
    Please help!!!
    Thanks
    Jackie
    =COUNTIF(B2:AF2,"H")+(COUNTIF(B2:AF2,"HH"))/2

    should work
    ---
    Si fractum non sit, noli id reficere.

  4. #4
    Registered User
    Join Date
    07-28-2004
    Posts
    2
    Bryan You Star that's great!!! Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1