Solved

Excel 2010 - Date time to integer

Posted on 2011-03-14
3
197 Views
Last Modified: 2012-05-11
Team,

I have multiple rows with a field, Date which has value like these:

3/1/2011 21:53
3/1/2011 22:39
3/1/2011 22:46

Based on certain criteria, i need to find the difference between two dates.

Assuming, I am finding the difference between 3/1/2011 21:53 & 3/1/2011 22:39

(3/1/2011 22:39) - (3/1/2011 21:53) gives me 0.03181713 as result in Excel 2010. Technically, the difference is 45 Mins & 49 seconds.

Is there anyway, i can use a formula which will give me a int value? ~45

as in,

(3/1/2011 22:39) - (3/1/2011 21:53) should give me 45 as result

Kindly help


0
Comment
Question by:davidi1
  • 2
3 Comments
 
LVL 22

Expert Comment

by:rspahitz
ID: 35132994
Since you're converting days into minutes, you'd get:

=A1*24*60
0
 
LVL 22

Accepted Solution

by:
rspahitz earned 500 total points
ID: 35133003
or I guess:

=(A2-A1) * 24 * 60
0
 

Expert Comment

by:pakachele
ID: 35133171
This should solve your purpose : =MINUTE(A2 - A1)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now