+ Reply to Thread
Results 1 to 8 of 8

DateDif vairation

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    DateDif vairation

    A formula of =DateDif(Q3,Today(),"D") returns the number of days between Q3 and todays date. I need to return the numbers of days between the 2 dates on a weekly basis not a daily basis.

    Jim O
    Last edited by JO505; 08-12-2015 at 03:01 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,640

    Re: DateDif vairation

    what do you mean by days(?) on a weekly basis? Do you want the # of weeks or the number of days?
    Last edited by protonLeah; 08-12-2015 at 02:05 PM.
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: DateDif vairation

    Instead of counting every day between the 2 dates I want to count on a weekly (7 day) basis. A unit of 1 for every week between the dates instead of 1 unit for every day.

    Hope this helps.

    Jim O

  4. #4
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: DateDif vairation

    Here is a sample of my data.

    Jim O
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: DateDif vairation

    JO505, Good afternoon.

    Using your example as reference, try to use:

    E2 --> =TRUNC(D2/7,0)

    Is that what you're looking for?
    I hope it helps.
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  6. #6
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: DateDif vairation

    Marcilio,

    Thanks for the response. I think that is a workable solution. I have nested both formulas as below.

    =TRUNC(DATEDIF(C2,TODAY(),"D")/7,0)
    Jim O

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,640

    Re: DateDif vairation

    E2:
    =int((today()-c2)/7)

  8. #8
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: DateDif vairation

    protonLeah,

    I like it.

    Thanks.

    Jim O

+ 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. DATEDIF fx
    By aperfectalibi in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-17-2015, 08:59 AM
  2. [SOLVED] Datedif
    By starksky in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-21-2014, 06:20 PM
  3. DateDif Average? Damn DateDif
    By UTCHELP in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-10-2012, 08:53 AM
  4. Excel 2007 : Datedif
    By mick2 in forum Excel General
    Replies: 3
    Last Post: 07-28-2010, 01:06 AM
  5. DateDif
    By vandanavai in forum Excel General
    Replies: 4
    Last Post: 01-30-2007, 12:42 PM
  6. Help with datedif
    By nickbelmont in forum Excel General
    Replies: 3
    Last Post: 11-27-2006, 01:03 PM
  7. [SOLVED] DateDIF
    By Paul Breslin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-24-2005, 02:40 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