+ Reply to Thread
Results 1 to 8 of 8

counting half days

  1. #1
    Registered User
    Join Date
    09-05-2014
    Location
    vancity
    MS-Off Ver
    2010
    Posts
    4

    counting half days

    Hi All,

    I'm helping out my team in putting together a vacation schedule.

    I have a spreadsheet counting Vacation (AV) days and Sick (S) days.

    I know how to setup the formula for full days but how about partial days. We have them writing down their partial days as

    AV/3.5 = this meaning 3.5 hours off
    S/2 = 2 hours sick.

    For full days its just AV or S

    formula I'm using
    =countif(A1:Z1,"AV") - count full days.

    thanks in advance!!!

    Ray

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: counting half days

    You can use a conversion table that converts each of your known text strings into a specific number of hours. Then an array formula can count each of those entries and sum the hours, then divide by 8 to get the "day count".
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-05-2014
    Location
    vancity
    MS-Off Ver
    2010
    Posts
    4

    Re: counting half days

    Thanks JBeaucaire! you rock!

    There's been some slight adjustments to the spreadsheet but I can't seem to work the kinks out.

    The layout of the entries is Horizontal and for the life of me can't seem to figure out.

    Here is how it would look like.

    vacay.jpg

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: counting half days

    You have a workbook for me to look at showing this problem?

  5. #5
    Registered User
    Join Date
    09-05-2014
    Location
    vancity
    MS-Off Ver
    2010
    Posts
    4

    Re: counting half days

    Here you go.

    Once again much appreciated!
    Attached Files Attached Files

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: counting half days

    1) That workbook is missing the reference table I showed you.

    2) That workbook is missing your attempt to edit the formula from a column to a row.

    I'm trying to see what you misunderstood about the formula by seeing how you've tried to edit it.

  7. #7
    Registered User
    Join Date
    09-05-2014
    Location
    vancity
    MS-Off Ver
    2010
    Posts
    4

    Re: counting half days

    here you go.
    Attached Files Attached Files

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: counting half days

    Array formulas are confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.


    So, click on AH6, press F2 to edit the formula, then CTRL+SHIFT+ENTER confirm the formula and activate the array.

    The formula should actually be: =SUM(SUMIF($AM$6:$AM$23, $C6:$AG6, $AN$6:$AN$23))/7.5

    Then copy AH6 down as needed.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Counting the number of calls within a half-hour period
    By JonathanMoore in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-06-2012, 06:45 AM
  2. Replies: 1
    Last Post: 08-10-2010, 02:13 AM
  3. Replies: 9
    Last Post: 09-03-2007, 08:26 PM
  4. Excel Sick Days / Half Days
    By Pixie_1 in forum Excel General
    Replies: 6
    Last Post: 02-28-2007, 08:28 AM
  5. [SOLVED] How do I track half days in the attendance tracking template?
    By Business Manager in forum Excel General
    Replies: 1
    Last Post: 10-20-2005, 03:05 PM

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