+ Reply to Thread
Results 1 to 4 of 4

Need formula to calculate days between dates or back date

  1. #1
    KVN
    Guest

    Need formula to calculate days between dates or back date

    I need a formula to calculate days between dates if before each other i.e.

    18 Apr & 9 Apr = - 9 days

    I can calculate the difference for say
    13 Mar & 18 Apr = 36 days
    but need a formulae to calculate both in a list
    Col 1 col 2 col 3
    13 Mar 18 Apr 36
    18 Apr 9 Apr ?
    3 Mar 30 Mar 27

    Thanks any help would be appreciated

  2. #2
    Forum Contributor
    Join Date
    11-29-2005
    Posts
    142
    Why doesn't =B1-A1 work, where B1 contains Apr-9 and A1 contains Apr-18?

    Are your dates formatted as Dates? Or are they just text?

  3. #3
    JMay
    Guest

    RE: Need formula to calculate days between dates or back date


    Try =DATEDIF(A7,B7,"d") - where A7 is your earlier date cell and
    B7 is your later dates cell - First date must always be first (in order).
    HTH


    "KVN" wrote:

    > I need a formula to calculate days between dates if before each other i.e.
    >
    > 18 Apr & 9 Apr = - 9 days
    >
    > I can calculate the difference for say
    > 13 Mar & 18 Apr = 36 days
    > but need a formulae to calculate both in a list
    > Col 1 col 2 col 3
    > 13 Mar 18 Apr 36
    > 18 Apr 9 Apr ?
    > 3 Mar 30 Mar 27
    >
    > Thanks any help would be appreciated


  4. #4
    Jim May
    Guest

    RE: Need formula to calculate days between dates or back date

    Or try this (modification) - it figures if dates are out-of-order...
    =IF(B7>A7,DATEDIF(A7,B7,"d"),DATEDIF(B7,A7,"d"))


    "JMay" wrote:

    >
    > Try =DATEDIF(A7,B7,"d") - where A7 is your earlier date cell and
    > B7 is your later dates cell - First date must always be first (in order).
    > HTH
    >
    >
    > "KVN" wrote:
    >
    > > I need a formula to calculate days between dates if before each other i.e.
    > >
    > > 18 Apr & 9 Apr = - 9 days
    > >
    > > I can calculate the difference for say
    > > 13 Mar & 18 Apr = 36 days
    > > but need a formulae to calculate both in a list
    > > Col 1 col 2 col 3
    > > 13 Mar 18 Apr 36
    > > 18 Apr 9 Apr ?
    > > 3 Mar 30 Mar 27
    > >
    > > Thanks any help would be appreciated


+ 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