+ Reply to Thread
Results 1 to 4 of 4

Holiday Tracker

  1. #1
    Registered User
    Join Date
    01-24-2019
    Location
    Glasgow, Scotland
    MS-Off Ver
    MS Office Pro Plus 2016
    Posts
    2

    Holiday Tracker

    Hi,

    I have created a Holiday Tracker to total the amount of days Holiday I have taken. I have the date 09/02/2019 in cell A4, 11/02/2019 in cell B4. I have tried =sum(a4-b4) and get 2 days... I have also tried =DATEDIF(A4,B4,"D") and get 2 days. How can I get it to calculate 3 days as I will be off on the 9th, 10th and 11th?

    Thanks in advance

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Holiday Tracker

    Hi Wullie

    How about =B4-A4+1 ?

    BSB

  3. #3
    Registered User
    Join Date
    01-24-2019
    Location
    Glasgow, Scotland
    MS-Off Ver
    MS Office Pro Plus 2016
    Posts
    2

    Re: Holiday Tracker

    I have it like that just now but its annoying why it will not calculate b4-a4 and = 3. I have 1's in column c5 downwards which i would prefer to be 0...

    wullie

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Holiday Tracker

    It does it because it's the right answer. Excel sees dates as numbers. 11th Feb 19 would be 43507 and 9th Feb 19 would be 43505. Subtract the latter from the former and 2 is the answer.

    If you have 1's in the column because there are no dates in those rows then maybe =IF(SUM(A4:B4),B4-A4+1,0) will do what you need?
    There are many many ways of doing this. This is just the first that springs to mind without Excel open in front of me.

    BSB

+ 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. [SOLVED] how to link holiday tracker & calendar
    By Harry Basra in forum Excel General
    Replies: 22
    Last Post: 01-30-2017, 08:56 AM
  2. [SOLVED] Holiday Tracker
    By Kris_2999 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-26-2014, 03:34 PM
  3. Holiday planner/tracker
    By ukphoenix in forum Excel General
    Replies: 6
    Last Post: 04-16-2012, 07:37 AM
  4. Holiday Leave Tracker Help
    By subtilty in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-30-2011, 10:39 AM
  5. Holiday Tracker
    By Benjamin2008 in forum Excel General
    Replies: 4
    Last Post: 02-06-2010, 08:38 AM
  6. Employee Holiday Tracker
    By Benjamin2008 in forum Excel General
    Replies: 4
    Last Post: 02-05-2010, 11:07 AM
  7. holiday tracker
    By vikfowler in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2008, 06:27 AM

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