ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Need formula to calculate days between dates or back date (https://www.excelbanter.com/excel-discussion-misc-queries/86667-need-formula-calculate-days-between-dates-back-date.html)

KVN

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

Vito

Need formula to calculate days between dates or back date
 

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?


--
Vito
------------------------------------------------------------------------
Vito's Profile: http://www.excelforum.com/member.php...o&userid=29182
View this thread: http://www.excelforum.com/showthread...hreadid=538638


JMay

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


Jim May

Need formula to calculate days between dates or back date
 
Or try this (modification) - it figures if dates are out-of-order...
=IF(B7A7,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



All times are GMT +1. The time now is 02:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com