+ Reply to Thread
Results 1 to 7 of 7

Excel Sick Days / Half Days

  1. #1
    Registered User
    Join Date
    02-28-2007
    Posts
    3

    Excel Sick Days / Half Days

    Hiya

    I've been working on the attached spreadsheet and have it working almost perfectly, problem is that I need to be able to do half day E.g 0.5 and 0.5 makes 1 day. (:P)

    I have no idea how to do this

    Could someone help me by having a look at the spreadsheet and lettin me know?

    Thanks in Advance

    Pixie
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-28-2007
    Posts
    3
    I got around that by using H for full days leave and HM for a morning and HA for an afternoon. I then used coutif for the three codes and added the results.

  3. #3
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by Pixie_1
    Hiya

    I've been working on the attached spreadsheet and have it working almost perfectly, problem is that I need to be able to do half day E.g 0.5 and 0.5 makes 1 day. (:P)

    I have no idea how to do this

    Could someone help me by having a look at the spreadsheet and lettin me know?

    Thanks in Advance

    Pixie
    you can simply add them like this
    =A1+B1
    or for a range
    =SUM(A1:G1)

    from attached file, its not clear that where are the numbers and where you want to add them up.
    however according my understanding of your problem I have made a formula in cell C6 of 1st Qrt.
    you can use it to add 0.5+0.5 (H, P or S) to one.

    hope this would help you.
    Attached Files Attached Files

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Among many possibilities, my suggestion would be to use Upper case for full days and Lower case for half days ...
    Attached Files Attached Files
    HTH
    Carim


    Top Excel Links

  5. #5
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    You will need to use a different code to denote full or half days

    For example instead of using just H use Hf (full day) & Hh (half day)
    You could use sinle letter codes as long as you had 1 for full days & a different one for half days

    Formula for C6 would look like this

    =COUNTIF($F6:$BS6, "Hf")+(COUNTIF($F6:$BS6, "Hh")/2)
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  6. #6
    Registered User
    Join Date
    02-28-2007
    Posts
    3
    Thank you very much

    I've got it working now.

    Thanks for the quick reply :D

  7. #7
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by Pixie_1
    Thank you very much

    I've got it working now.

    Thanks for the quick reply :D
    you're welcome in Excel Forum.

+ 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