+ Reply to Thread
Results 1 to 8 of 8

Show how many days holiday

  1. #1
    Registered User
    Join Date
    10-27-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Show how many days holiday

    Hello

    I am trying to find a formula to make excel show how many days holiday have been taken

    The spreadsheet shows three months on one row, It uses L for full days off, and H for half days off. I want excel to add these up in a cell,

    i tried =SUMIF(E4:CQ4,L,+1)(E4:CQ4,H,+0.5)

    this doesn't seem to work,

    could anyone help?

    Thanks

    Andrew

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Show how many days holiday

    Perhaps?

    =SUMIF(E4:CQ4,"L")+0.5*SUMIF(E4:CQ4,"H")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-27-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Show how many days holiday

    Thanks, i tried that one,

    It still shows a value of 0, even though i've got the letter L in all teh relevant cells,

    do i need another cell with an initial sum in it?

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Show how many days holiday

    Do the cells with "L" (or "H") contain anything else?

  5. #5
    Registered User
    Join Date
    10-27-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Show how many days holiday

    Hello

    No they don't, literally just the letters L and H

    Thanks

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Show how many days holiday

    Should be


    =COUNTIF(E4:CQ4,"L")+0.5*COUNTIF(E4:CQ4,"H")

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Show how many days holiday

    you could try
    =(COUNTIF(E4:CQ4,"h")*0.5)+(COUNTIF(E4:CQ4,"l")*1)

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Show how many days holiday

    D'oh!

    Lucky somebody's paying attention.......

+ 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