Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Kane
 
Posts: n/a
Default Expiration date based on 5 years and Birth month,day ...

B5 Birthdate ( MM/dd/yy format )
D5 Issue Date ( MM/dd/yy format )
F5 Expiration Date ( MM/dd/yy format )

A particular licence is issued for a time period of 5 years, expiring on the
Birth month, and Birth day, five years from the Issue date.
Any thoughts would be appreciated.
Thanks...
  #2   Report Post  
Posted to microsoft.public.excel.newusers
wjohnson
 
Posts: n/a
Default Expiration date based on 5 years and Birth month,day ...


For the following formula format your cells as follows:
Column A - Birthdate - Format as Text
Column B - Issue Date - Format as Text
Column C - Is the Experiation Date - Format as General (or the formual
will not work if it is formated as "Text" - don't need to use the date
function).
In column C - use the following formula:
=CONCATENATE(MID(A2,1,6),MID(B2,7,2)+5)
A______________B____________C
Birth date______Issue Date____Expires
05/01/47_______06/20/05_____05/01/10

If you want to "add" more "time" to the expire date - just change "+5"


--
wjohnson
------------------------------------------------------------------------
wjohnson's Profile: http://www.excelforum.com/member.php...o&userid=29640
View this thread: http://www.excelforum.com/showthread...hreadid=505234

  #3   Report Post  
Posted to microsoft.public.excel.newusers
Kane
 
Posts: n/a
Default Expiration date based on 5 years and Birth month,day ...

Hi.. Thanks for the input. Can we change the cells to read AB, BD, and
CF...
I require that the birthdate cell (B5) be MM/dd/yy format, "October 01,
1947". Could another cell (ie; B10) read (B5), and then B10 is used in the
formula?
I would really prefer to have the results printed as MM/dd/yyyy in F5. Can
we do the calculation elsewhere and read/copy the result back t o F5?

"wjohnson" wrote:


For the following formula format your cells as follows:
Column A - Birthdate - Format as Text
Column B - Issue Date - Format as Text
Column C - Is the Experiation Date - Format as General (or the formual
will not work if it is formated as "Text" - don't need to use the date
function).
In column C - use the following formula:
=CONCATENATE(MID(A2,1,6),MID(B2,7,2)+5)
A______________B____________C
Birth date______Issue Date____Expires
05/01/47_______06/20/05_____05/01/10

If you want to "add" more "time" to the expire date - just change "+5"


--
wjohnson
------------------------------------------------------------------------
wjohnson's Profile: http://www.excelforum.com/member.php...o&userid=29640
View this thread: http://www.excelforum.com/showthread...hreadid=505234


  #4   Report Post  
Posted to microsoft.public.excel.newusers
wjohnson
 
Posts: n/a
Default Expiration date based on 5 years and Birth month,day ...


Not sure what you want with MM/DD/yyyy
Is the MM for January "JA or 01," but if you change the "MID" numbers
you can get anything you want.
Example: If cell A1 has January and you want to see Jan in Cell B1
using the MID Function
it would be MID(B5,1,3), it reads as follows: B5 is the Cell, 1 is the
position of the first character you want to read, 3 is how many.
Just "play around" with the set of numbers following the MID and it
will give you an idea of how it works.
=CONCATENATE(MID(B5,1,6),MID(D5,7,4)+5)
B______________D____________F
Birth date________Issue Date____Expires
05/01/1947_______06/20/2005_____05/01/2010

For the AB, BD, and CF... - you can create a "AND" statement in a
Cell say "G" which will give you a TRUE or False and would look
something like:
=AND(A1B1,B1D1,C1F1)


--
wjohnson
------------------------------------------------------------------------
wjohnson's Profile: http://www.excelforum.com/member.php...o&userid=29640
View this thread: http://www.excelforum.com/showthread...hreadid=505234

  #5   Report Post  
Posted to microsoft.public.excel.newusers
Cutter
 
Posts: n/a
Default Expiration date based on 5 years and Birth month,day ...


Using the cells from your example simply use this in F5:

=DATE(YEAR(D5)+5,MONTH(B5),DAY(B5))

Format it to your liking


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=505234

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Producing Age Based on Date of Birth MPuser Excel Worksheet Functions 1 November 30th 05 10:21 PM
calculate no. of years between a date and today's date Sue Excel Worksheet Functions 10 June 14th 05 02:56 AM
Converting sum of time Tanya Excel Worksheet Functions 4 April 22nd 05 04:32 AM
How do I create a timeline using people and their years of birth . KCH Charts and Charting in Excel 0 April 11th 05 05:07 AM


All times are GMT +1. The time now is 04:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"