Free Lessons
Fast Tips
Topic Index
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
Home > TechHelp > Directory > Access > Age, Part 2 < Accounts Receivable | Volume >
Back to Age, Part 2    Comments List
Calculating Age Upload Images   Link   Email  
Ina van Rooyen 
3 years ago
Hi Richard, using your code for calculating age, is it possible to include months and days as well, and not just the year?
Adam Schwanz             
3 years ago
You can get the TOTAL months or days by using the same formula with m or d instead of yyyy. I'm guessing what you want isn't that simple though, you want to see the leftovers right?

I was able to get leftover months by doing the month calculation - (yearcalculation*12).

Leftover days on the other hand.... I'm lost, maybe Richard has an idea.
Scott Axton            
3 years ago
Ina -
Calculating days is easy.  Just D1 - D2
Months a little more difficult because of February.  If you are not real concerned about that just multiply years from the age calc x 12.
Richard Rost             
3 years ago
Code Vault: How Long Function. Will give you responses like:

2 years, 22 days, 15 hours, 39 minutes
2 yr, 2 mo
22 days ago
in 4 years, 4 months

That function ALONE is worth the cost of Gold Membership. Took me a while to write.

Ina van Rooyen 
3 years ago
You are a genius, Richard.  That is exactly what I need, however, not right to the minutes though. When you work with puppies you work with days, weeks and months.
Richard Rost             
3 years ago
Are you saying the function is wrong to the minutes, or you don't NEED that level of accuracy? You can pick whatever units you want. You can get years, months, days, down to the seconds if you want.
Richard Rost             
3 years ago

Richard Rost             
3 years ago
Oh, and did someone say PUPPIES!? My little guy says hi.
Ina van Rooyen 
3 years ago
This function is indeed very handy for my purposes.  I can also use it to calculate the exact interval between heat seasons.
Ina van Rooyen 
3 years ago
How cute, Richard.  What's the little fella's name?
Ina van Rooyen 
3 years ago
I'm not saying your code is wrong.  I just won't need it to the minute and second.
Richard Rost             
3 years ago
That's Carter. He's 8 months old. That pic is actually from when he was a puppy. Here he is today... too big for that cubby I made for him at the bottom of one of the bookshelves in my office, but he still crawls in there. LOL
Richard Rost             
3 years ago

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Age, Part 2.


The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
My Account
My Courses
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/19/2024 10:12:28 PM. PLT: 1s