#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 44
Default date formulas

Hi, I have two problems that need help.

Cell A1 has a date of birth. Cell A2 calculates the age. If there isn't a
dob of birth, cell A2 returns 110.

Another one is having cell C1 with a date or NA. C2 is based on cell C1 and
adds 3 months to the date in C1 but if C1 has NA, the return is #value!.

Kathleen
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default date formulas

Describing the problem is only the first step, Kathleen. You also need to
identify the solution you are looking for.

As a guess, for #1 try,
=if(a1="","",datedif(a1,today(),"y"))

For #2,
=if(c1="NA","",date(year(c1),month(c1)+3,day(c1))

Regards,
Fred

"Kathleen" wrote in message
...
Hi, I have two problems that need help.

Cell A1 has a date of birth. Cell A2 calculates the age. If there isn't
a
dob of birth, cell A2 returns 110.

Another one is having cell C1 with a date or NA. C2 is based on cell C1
and
adds 3 months to the date in C1 but if C1 has NA, the return is #value!.

Kathleen


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 44
Default date formulas

Hi Fred, Sorry about that...and thank you for trying. I'm using Exel 2003.

What I am trying to do is get the age or the return of na. AR5 has the date
of birth. AR1 has the formula to calculate the age based on the date of
birth.

AR5 = 07/29/1965
AR1 = 44

but if AR5 is blank, AR1 is returning 110. Is it possible to have a return
of na instead? Here's the formula I'm using =DATEDIF(AR5,NOW(),"y")


In problem two, I am using this formula in HA6 to add three months to a the
date in HA5. Problem is that HA5 could have a date or be marked NA. If HA5
is na, the return is #value!. Is it possible to have it return na?
=MIN(DATE(YEAR(HA5),MONTH(HA5)+3+{0,1},DAY(HA5)*{0 ,0}))



"Fred Smith" wrote:

Describing the problem is only the first step, Kathleen. You also need to
identify the solution you are looking for.

As a guess, for #1 try,
=if(a1="","",datedif(a1,today(),"y"))

For #2,
=if(c1="NA","",date(year(c1),month(c1)+3,day(c1))

Regards,
Fred

"Kathleen" wrote in message
...
Hi, I have two problems that need help.

Cell A1 has a date of birth. Cell A2 calculates the age. If there isn't
a
dob of birth, cell A2 returns 110.

Another one is having cell C1 with a date or NA. C2 is based on cell C1
and
adds 3 months to the date in C1 but if C1 has NA, the return is #value!.

Kathleen


.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default date formulas

So my guess for #1 was correct. You want:
=if(ar5="","na",datedif(ar5,today(),"y"))

And my guess for #2 was correct. You want:
=if(ha5="na","na",date(year(ha5),month(ha5)+3,day( ha5))

Regards,
Fred

"Kathleen" wrote in message
...
Hi Fred, Sorry about that...and thank you for trying. I'm using Exel
2003.

What I am trying to do is get the age or the return of na. AR5 has the
date
of birth. AR1 has the formula to calculate the age based on the date of
birth.

AR5 = 07/29/1965
AR1 = 44

but if AR5 is blank, AR1 is returning 110. Is it possible to have a
return
of na instead? Here's the formula I'm using =DATEDIF(AR5,NOW(),"y")


In problem two, I am using this formula in HA6 to add three months to a
the
date in HA5. Problem is that HA5 could have a date or be marked NA. If
HA5
is na, the return is #value!. Is it possible to have it return na?
=MIN(DATE(YEAR(HA5),MONTH(HA5)+3+{0,1},DAY(HA5)*{0 ,0}))



"Fred Smith" wrote:

Describing the problem is only the first step, Kathleen. You also need to
identify the solution you are looking for.

As a guess, for #1 try,
=if(a1="","",datedif(a1,today(),"y"))

For #2,
=if(c1="NA","",date(year(c1),month(c1)+3,day(c1))

Regards,
Fred

"Kathleen" wrote in message
...
Hi, I have two problems that need help.

Cell A1 has a date of birth. Cell A2 calculates the age. If there
isn't
a
dob of birth, cell A2 returns 110.

Another one is having cell C1 with a date or NA. C2 is based on cell
C1
and
adds 3 months to the date in C1 but if C1 has NA, the return is
#value!.

Kathleen


.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 44
Default date formulas

Fred your the best!! Thank you! This helps to make the file look a lot less
confusing to the users.

"Fred Smith" wrote:

So my guess for #1 was correct. You want:
=if(ar5="","na",datedif(ar5,today(),"y"))

And my guess for #2 was correct. You want:
=if(ha5="na","na",date(year(ha5),month(ha5)+3,day( ha5))

Regards,
Fred

"Kathleen" wrote in message
...
Hi Fred, Sorry about that...and thank you for trying. I'm using Exel
2003.

What I am trying to do is get the age or the return of na. AR5 has the
date
of birth. AR1 has the formula to calculate the age based on the date of
birth.

AR5 = 07/29/1965
AR1 = 44

but if AR5 is blank, AR1 is returning 110. Is it possible to have a
return
of na instead? Here's the formula I'm using =DATEDIF(AR5,NOW(),"y")


In problem two, I am using this formula in HA6 to add three months to a
the
date in HA5. Problem is that HA5 could have a date or be marked NA. If
HA5
is na, the return is #value!. Is it possible to have it return na?
=MIN(DATE(YEAR(HA5),MONTH(HA5)+3+{0,1},DAY(HA5)*{0 ,0}))



"Fred Smith" wrote:

Describing the problem is only the first step, Kathleen. You also need to
identify the solution you are looking for.

As a guess, for #1 try,
=if(a1="","",datedif(a1,today(),"y"))

For #2,
=if(c1="NA","",date(year(c1),month(c1)+3,day(c1))

Regards,
Fred

"Kathleen" wrote in message
...
Hi, I have two problems that need help.

Cell A1 has a date of birth. Cell A2 calculates the age. If there
isn't
a
dob of birth, cell A2 returns 110.

Another one is having cell C1 with a date or NA. C2 is based on cell
C1
and
adds 3 months to the date in C1 but if C1 has NA, the return is
#value!.

Kathleen

.


.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default date formulas

Glad to help. Thanks for the feedback.

Regards,
Fred

"Kathleen" wrote in message
...
Fred your the best!! Thank you! This helps to make the file look a lot
less
confusing to the users.

"Fred Smith" wrote:

So my guess for #1 was correct. You want:
=if(ar5="","na",datedif(ar5,today(),"y"))

And my guess for #2 was correct. You want:
=if(ha5="na","na",date(year(ha5),month(ha5)+3,day( ha5))

Regards,
Fred

"Kathleen" wrote in message
...
Hi Fred, Sorry about that...and thank you for trying. I'm using Exel
2003.

What I am trying to do is get the age or the return of na. AR5 has the
date
of birth. AR1 has the formula to calculate the age based on the date
of
birth.

AR5 = 07/29/1965
AR1 = 44

but if AR5 is blank, AR1 is returning 110. Is it possible to have a
return
of na instead? Here's the formula I'm using =DATEDIF(AR5,NOW(),"y")


In problem two, I am using this formula in HA6 to add three months to a
the
date in HA5. Problem is that HA5 could have a date or be marked NA.
If
HA5
is na, the return is #value!. Is it possible to have it return na?
=MIN(DATE(YEAR(HA5),MONTH(HA5)+3+{0,1},DAY(HA5)*{0 ,0}))



"Fred Smith" wrote:

Describing the problem is only the first step, Kathleen. You also need
to
identify the solution you are looking for.

As a guess, for #1 try,
=if(a1="","",datedif(a1,today(),"y"))

For #2,
=if(c1="NA","",date(year(c1),month(c1)+3,day(c1))

Regards,
Fred

"Kathleen" wrote in message
...
Hi, I have two problems that need help.

Cell A1 has a date of birth. Cell A2 calculates the age. If there
isn't
a
dob of birth, cell A2 returns 110.

Another one is having cell C1 with a date or NA. C2 is based on
cell
C1
and
adds 3 months to the date in C1 but if C1 has NA, the return is
#value!.

Kathleen

.


.


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
date formulas rwpatter1 Excel Worksheet Functions 3 March 26th 09 02:09 PM
Date Formulas PhooPhan Excel Worksheet Functions 2 January 28th 07 01:42 AM
date formulas sunderland27 Excel Discussion (Misc queries) 2 April 24th 06 08:59 PM
Date formulas Cachod1 New Users to Excel 1 March 28th 05 08:02 PM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM


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

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

About Us

"It's about Microsoft Excel"