Excel 2010-2019 Excel 2007 Excel 2003 Tips & Tricks Excel Forum Course Index CIG Excel Book

 Home   Courses   Seminars   Templates   Help   TechHelp   Forums   Contact   Join   Order   Logon More... What's New? Popular Links ------------ Access Courses Access Index Access TechHelp Access Forum ------------ Excel Courses Excel Index ------------ Code Vault Testimonials

Excel: Days Between Dates
By Richard Rost     13 years ago

Q: Hi Richard. I need some help. I'm no excel pro! This is what I need: I want to know the average the product is being bought within Excel. eg: product X is being bought every X months

Product# Date Purchased Date Purchased Date Purchased
100.0 2007-08-22 2007-11-20 2008-04-13
602A.0 2007-06-25 2007-10-15 2008-01-05

THANKS FOR YOUR HELP. Joey

A: Good question.

If you have two dates, let's say 1/1/2008 and 2/1/2008, those days are 31 days apart. You can find this by simple subtraction. For example, if you put those values in cells A1 and B1, respectively, then you can just put this in C1:

=B1-A1

Now the result is going to say 1/31/1900, but that's OK. Just right-click on the cell and go to FORMAT CELLS and reformat that value to NUMBER, and now it's represented in the "number of days" between those two dates.

Knowing how to do that, now the rest of your problem is just mathematics... add up the total number of days, and divide by the number of sales, and you have the average sales per day (or month, just divide by 30 or 31).

I cover this topic in my Excel 232 class: /site/courselist/excel/excel232

Hope this helps

Kirk
13 years ago
I really learned something from this!!
Thanks!!  I will examine more and will probably send some of my own in.

Start a NEW Conversation
 Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

 You may want to read these articles from the 599CD News:
 11/30/2021 Import Multiline Cells 11/11/2021 Link to Excel 11/11/2021 Read Write Excel Data 11/10/2021 Excel Moving Average 9/11/2021 Circular References 8/25/2021 Stock History 8/23/2021 Concatenation 8/17/2021 Flash Fill 8/5/2021 Stock Portfolio 8/4/2021 Stock Portfolio

 Learn  Access - index Excel - index Word - index Windows - index PowerPoint - index Photoshop - index Visual Basic - index ASP - index Seminars More... Customers  Account Login Online Theater Downloads Lost Password Memberships Student Databases Change Email Info  Latest News New Releases User Forums Topic Glossary Tips & Tricks Search The Site Code Vault Collapse Menus Help  Customer Support Web Site Tour FAQs TechHelp Consulting Services About  Background Testimonials Jobs Affiliate Program Richard Rost Free Lessons Mailing List Order  Video Tutorials Handbooks Memberships Learning Connection Idiot's Guide to Excel Volume Discounts Payment Info Shipping Terms of Sale Contact  Contact Info Support Policy Email Richard Mailing Address Phone Number Fax Number Course Survey
Keywords: excel difference between two dates tips  PermaLink