Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5
Default If statement with dates

I'm using Excel2003 with sp2. I want to track expiration dates of memberships

I want to say: If m3 is blank make N3 blank and if M3 has a date, make N3
one year later.

How do I do this?

Thanks in advance,
Vivian
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,688
Default If statement with dates

Enter this formula in N3:

=IF(ISNUMBER(M3),DATE(YEAR(M3)+1,MONTH(M3),DAY(M3) ),"")

Biff

"Vivian H." wrote in message
...
I'm using Excel2003 with sp2. I want to track expiration dates of
memberships

I want to say: If m3 is blank make N3 blank and if M3 has a date, make
N3
one year later.

How do I do this?

Thanks in advance,
Vivian



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5
Default If statement with dates

This works great for incrementing the dates. I either don't know how to read
the formula or it doesn't address the issue of M3 being blank then making N3
blank. I would like the formula to include either/or. Maybe it would be
better if I said, If M3 is blank then make N3 blank OR if M3 has a date make
N3 one year later.

"Biff" wrote:

Enter this formula in N3:

=IF(ISNUMBER(M3),DATE(YEAR(M3)+1,MONTH(M3),DAY(M3) ),"")

Biff

"Vivian H." wrote in message
...
I'm using Excel2003 with sp2. I want to track expiration dates of
memberships

I want to say: If m3 is blank make N3 blank and if M3 has a date, make
N3
one year later.

How do I do this?

Thanks in advance,
Vivian




  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,688
Default If statement with dates

The formula is testing cell M3 to see if it has a true Excel date. That's
what:

=IF(ISNUMBER(M3)

is doing. True Excel dates are just numbers formatted to look like a date.
If you're having problems it may be due to not having a true Excel date but
a TEXT string that looks like a date.

What are ALL of the possible types of entries that can be in cell M3? Just a
date or left empty? No TEXT entries, right? If that's the case the formula
should work if the cell contains a true Excel date.

Test the "date" and make sure it's a real date:

=ISNUMBER(M3) should return TRUE.

Biff

"Vivian H." wrote in message
...
This works great for incrementing the dates. I either don't know how to
read
the formula or it doesn't address the issue of M3 being blank then making
N3
blank. I would like the formula to include either/or. Maybe it would be
better if I said, If M3 is blank then make N3 blank OR if M3 has a date
make
N3 one year later.

"Biff" wrote:

Enter this formula in N3:

=IF(ISNUMBER(M3),DATE(YEAR(M3)+1,MONTH(M3),DAY(M3) ),"")

Biff

"Vivian H." wrote in message
...
I'm using Excel2003 with sp2. I want to track expiration dates of
memberships

I want to say: If m3 is blank make N3 blank and if M3 has a date,
make
N3
one year later.

How do I do this?

Thanks in advance,
Vivian






  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5
Default If statement with dates

Thanks,Biff. I got it to work and it's fine now.
Vivian

"Biff" wrote:

The formula is testing cell M3 to see if it has a true Excel date. That's
what:

=IF(ISNUMBER(M3)

is doing. True Excel dates are just numbers formatted to look like a date.
If you're having problems it may be due to not having a true Excel date but
a TEXT string that looks like a date.

What are ALL of the possible types of entries that can be in cell M3? Just a
date or left empty? No TEXT entries, right? If that's the case the formula
should work if the cell contains a true Excel date.

Test the "date" and make sure it's a real date:

=ISNUMBER(M3) should return TRUE.

Biff

"Vivian H." wrote in message
...
This works great for incrementing the dates. I either don't know how to
read
the formula or it doesn't address the issue of M3 being blank then making
N3
blank. I would like the formula to include either/or. Maybe it would be
better if I said, If M3 is blank then make N3 blank OR if M3 has a date
make
N3 one year later.

"Biff" wrote:

Enter this formula in N3:

=IF(ISNUMBER(M3),DATE(YEAR(M3)+1,MONTH(M3),DAY(M3) ),"")

Biff

"Vivian H." wrote in message
...
I'm using Excel2003 with sp2. I want to track expiration dates of
memberships

I want to say: If m3 is blank make N3 blank and if M3 has a date,
make
N3
one year later.

How do I do this?

Thanks in advance,
Vivian








  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,688
Default If statement with dates

Good deal!

Biff

"Vivian H." wrote in message
...
Thanks,Biff. I got it to work and it's fine now.
Vivian

"Biff" wrote:

The formula is testing cell M3 to see if it has a true Excel date. That's
what:

=IF(ISNUMBER(M3)

is doing. True Excel dates are just numbers formatted to look like a
date.
If you're having problems it may be due to not having a true Excel date
but
a TEXT string that looks like a date.

What are ALL of the possible types of entries that can be in cell M3?
Just a
date or left empty? No TEXT entries, right? If that's the case the
formula
should work if the cell contains a true Excel date.

Test the "date" and make sure it's a real date:

=ISNUMBER(M3) should return TRUE.

Biff

"Vivian H." wrote in message
...
This works great for incrementing the dates. I either don't know how
to
read
the formula or it doesn't address the issue of M3 being blank then
making
N3
blank. I would like the formula to include either/or. Maybe it would
be
better if I said, If M3 is blank then make N3 blank OR if M3 has a date
make
N3 one year later.

"Biff" wrote:

Enter this formula in N3:

=IF(ISNUMBER(M3),DATE(YEAR(M3)+1,MONTH(M3),DAY(M3) ),"")

Biff

"Vivian H." wrote in message
...
I'm using Excel2003 with sp2. I want to track expiration dates of
memberships

I want to say: If m3 is blank make N3 blank and if M3 has a date,
make
N3
one year later.

How do I do this?

Thanks in advance,
Vivian








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
calculating number of three month periods between two dates... neil Excel Discussion (Misc queries) 3 May 21st 06 01:52 PM
working out quarters (three-month periods) between two dates [email protected] Excel Worksheet Functions 1 May 17th 06 10:27 AM
formula to add dates. S S Excel Worksheet Functions 8 April 5th 06 07:53 PM
Pre-1900 dates Richard Gadsden Excel Discussion (Misc queries) 1 March 26th 06 12:46 AM
Formating Dates for production schedule dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 08:43 PM


All times are GMT +1. The time now is 12:04 PM.

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"