+ Reply to Thread
Results 1 to 6 of 6

Count Days Formula Not Working

Hybrid View

  1. #1
    Registered User
    Join Date
    06-17-2014
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    16

    Count Days Formula Not Working

    Hello

    I would like to count the days between 2 dates and have tried various formulas like:

    1. (B2 - A1) = 4
    2. DATEDIF (B2, A1, "d") = 4

    Date range is : Cell A1 = Mon 6/01/2025 Cell B2 = Fri 10/01/2025

    And I get 4 days, but I want to include Monday (?) or Friday (?) as a day so the answer should in theory be 5 days.

    Is there a different formula I should use?

    Regards
    Andrew
    Last edited by aig_s; 09-25-2023 at 08:51 AM.

  2. #2
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2503
    Posts
    1,485

    Re: Count Days Formula Not Working

    You could simply add +1 onto the end of the formula.
    If things don't change they stay the same

  3. #3
    Registered User
    Join Date
    06-17-2014
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    16

    Re: Count Days Formula Not Working

    Thank you, which formula should I use to add +1
    DATEDIF or B2 + A1?

  4. #4
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2503
    Posts
    1,485

    Re: Count Days Formula Not Working

    I would use:

    =B2-A1+1

    But you could also use:

    =DATEDIF(A1,B2,"d")+1

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Count Days Formula Not Working

    That doesn't matter.

    You have 3 options: =B2-A1+1 or =DAYS(B2,A1)+1 or =DATEDIF(B2,A1,"d")+1

  6. #6
    Registered User
    Join Date
    06-17-2014
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    16

    Re: Count Days Formula Not Working

    Thank you all I will close the thread as solved

+ 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] Count only working days between a specific time frame not working on new workbooks
    By dsrt16 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-13-2023, 01:14 PM
  2. Count if working days exceed 6 days (2-weeks)
    By adamson.tauro in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-02-2020, 04:17 PM
  3. [SOLVED] formula to count number of storage days not working
    By steve400243 in forum Excel General
    Replies: 5
    Last Post: 06-06-2019, 02:20 PM
  4. [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
  5. Help me! I want to count the working days of worker with count and if array.
    By tuyetngapt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-03-2013, 12:52 AM
  6. [SOLVED] Count net working days
    By mukeshbaviskar in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-29-2013, 07:40 PM
  7. Count working days.
    By bangor_boy in forum Excel General
    Replies: 5
    Last Post: 06-06-2012, 05:55 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