ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Computing days between TODAY() and older date in a cell (https://www.excelbanter.com/excel-discussion-misc-queries/118774-computing-days-between-today-older-date-cell.html)

Big UT Fan

Computing days between TODAY() and older date in a cell
 
Trying to compute an "age" based off of a date in a cell, where age should be
equal to TODAY-G14. The contents of G14 would be 07/04/2006 (a past date)
for instance.
Tried this and various permutations =(TODAY())-(G14)); =(TODAY()-G14), ...

Also, if you are aware of a good source for examples of using functions in
useful ways that would be much appreciated?

Thanks for your help.

Niek Otten

Computing days between TODAY() and older date in a cell
 
=TODAY()-G14, then format as General or Number

Look he

http://www.cpearson.com/excel/datetime.htm#AddingDates

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Big UT Fan" wrote in message ...
| Trying to compute an "age" based off of a date in a cell, where age should be
| equal to TODAY-G14. The contents of G14 would be 07/04/2006 (a past date)
| for instance.
| Tried this and various permutations =(TODAY())-(G14)); =(TODAY()-G14), ...
|
| Also, if you are aware of a good source for examples of using functions in
| useful ways that would be much appreciated?
|
| Thanks for your help.



Gary''s Student

Computing days between TODAY() and older date in a cell
 
=DATEDIF(G14,TODAY(),"y") & " years, " & DATEDIF(G14,TODAY(),"ym") & "
months, " & DATEDIF(G14,TODAY(),"md") & " days"
--
Gary's Student


"Big UT Fan" wrote:

Trying to compute an "age" based off of a date in a cell, where age should be
equal to TODAY-G14. The contents of G14 would be 07/04/2006 (a past date)
for instance.
Tried this and various permutations =(TODAY())-(G14)); =(TODAY()-G14), ...

Also, if you are aware of a good source for examples of using functions in
useful ways that would be much appreciated?

Thanks for your help.


Big UT Fan

Computing days between TODAY() and older date in a cell
 
Got it! DATEDIF() at cpearson.com/excel... DATEDIF(G14,TODAY(),"d") does
exactly what I need. I'll definitely bookmark this website looks like it
could be very helpful.

THANKS!

"Big UT Fan" wrote:

Trying to compute an "age" based off of a date in a cell, where age should be
equal to TODAY-G14. The contents of G14 would be 07/04/2006 (a past date)
for instance.
Tried this and various permutations =(TODAY())-(G14)); =(TODAY()-G14), ...

Also, if you are aware of a good source for examples of using functions in
useful ways that would be much appreciated?

Thanks for your help.



All times are GMT +1. The time now is 08:59 PM.

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