View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default What is the formula for calculating the age (Expiry Date)

Dates are just numbers (number of days since 0-Jan-1900) so you can do
simple subtractions. E.g,

=IF(TODAY()-DATE(2010,4,5)=5,"Out Of Spec","OK")

Cordially,
Chip Pearson
Microsoft Most Valuable Professional,
Excel, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com


On Thu, 8 Apr 2010 10:04:01 -0700, Sanjeev
wrote:

If an product is created on 5th of April and after 5 days i.e., on 10th of
April it is considered as out of standard what is the excel based formula i
can use..