+ Reply to Thread
Results 1 to 13 of 13

Calculating half days in attendance spreadsheet

  1. #1
    Registered User
    Join Date
    12-30-2015
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Calculating half days in attendance spreadsheet

    Hi
    I am using the excel spreadsheet template and would like to assign a value for a half day, this is the formula I have now in the vacation column

    =COUNTIF($B6:$AF6,"V")

    I would like V to be designated as 1 and v as 1/2

    Can anyone please help?

    Thank you

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Calculating half days in attendance spreadsheet

    The following formula must be entered as an array formula. After typing the formula, instead of pressing ENTER to enter the formula, press CTRL+SHIFT+ENTER.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    12-30-2015
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Calculating half days in attendance spreadsheet

    I tried that. it stated array formulas are not valid in merged cells.
    Thanks

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Calculating half days in attendance spreadsheet

    Can you unmerge cells (as they more often than not cause the problem you experienced)?

    Try

    =SUMPRODUCT(--(ISNUMBER(FIND("v",A6:AF6)))*0.5+--(ISNUMBER(FIND("V",A6:AF6))))

  5. #5
    Registered User
    Join Date
    12-30-2015
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Calculating half days in attendance spreadsheet

    Ok, so I unmerged the cells, and the formula worked however, it is not counting v as .50 a day, both v & V are counting as 1.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Calculating half days in attendance spreadsheet

    Note that your range is $B6:$AF6 but JohnTopley's range is A6:AF6. Could that be the problem?

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Calculating half days in attendance spreadsheet

    Works OK for me as does "6StringJazzer" formula with range B6:AF6 (or any range!). If you are still having problems, post a sample file.

  8. #8
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Calculating half days in attendance spreadsheet

    Both formulae work for me too.
    Count upper V and lower v _ test for TW33.xls
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  9. #9
    Registered User
    Join Date
    12-30-2015
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Calculating half days in attendance spreadsheet

    Grrr! why isn't this working for me. I tried both, fixing the cell range.
    I have tried both formulas in the attached and they are still counting both V & v as 1
    I tried attaching the spreadsheet but it just keeps spinning
    Feeling frustrated

    I tried this
    =SUMPRODUCT(--(ISNUMBER(FIND("v",B6:AF6)))*0.5+--(ISNUMBER(FIND("V",B6:AF6))))

    and this in another cell

    =SUM(IF(EXACT("V",$B8:$AF8),1,0))+0.5*SUM(IF(EXACT("v",$B8:$AF8),1,0))

    I didn't press enter, but Ctlr sft enter

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Calculating half days in attendance spreadsheet

    Need the attachment

    Click "Go Advanced" then Paper Clip Icon , then Add files, Browse, Upload, Done.

    SUMPRODUCT does not require CSE
    Last edited by JohnTopley; 12-31-2015 at 02:50 PM.

  11. #11
    Registered User
    Join Date
    12-30-2015
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Calculating half days in attendance spreadsheet

    I tried adding the attachment but when I tried adding it, it just kept spinning and spinning.
    I also tried the sumproduct one with just enter and it didn't work either.

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Calculating half days in attendance spreadsheet

    Put your data into file from post #8 and see what results you get.

    I have re-attached said file with no problem so don't understand the "Spinning"
    Attached Files Attached Files

  13. #13
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Calculating half days in attendance spreadsheet

    TW33 here are detailed instructions for attaching. It is a bit clunky compared to other sites. Last line is a link to screen shots.

    To attach a file:
    1. Under the text box where you type your reply click the Go Advanced button.
    2. In the next screen look above the reply box and click the "paper clip" icon. You will get a pop-up screen.
    3. In the pop-up, click Add then Select to select a file from your local drive
    4. Click the Upload button to upload the file
    5. Click Done to attach it.

    It will be displayed as an attachment underneath your post text. Alternatively as the last step you can click the Insert Inline button and a hyperlink to the file will be inserted directly into your post text in the spot where your cursor is set at the moment you click the button.

    Here are step-by-step instructions with screen shots

+ 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. Calculating Half Days in Attendance
    By EphraimD in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 12-07-2018, 08:09 AM
  2. Calculating Number of Workers per Half Hour
    By vioravis in forum Excel General
    Replies: 1
    Last Post: 10-14-2015, 09:55 PM
  3. [SOLVED] Count 6 working days (excluding Sunday, Holidays & half days)
    By eve_star1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2015, 08:00 AM
  4. counting half days
    By chanman008 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-11-2014, 03:23 PM
  5. 30 Days Perfect Attendance
    By ForumShy in forum Excel General
    Replies: 6
    Last Post: 02-07-2012, 06:28 PM
  6. Excel Sick Days / Half Days
    By Pixie_1 in forum Excel General
    Replies: 6
    Last Post: 02-28-2007, 08:28 AM
  7. [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