#1   Report Post  
cummingse
 
Posts: n/a
Default A little more help


I ask for help on a date formula and got answer that does what I wanted
it to.
This is it:

A1: start date
B1: =IF(MONTH(A1+1)=MONTH(A1),A1+1,"")
C1: =IF(MONTH(A1+2)=MONTH(A1),A1+2,"")
and so on.
The only problem is that when cell A1: start date is empty cell B1
shows 1 and cell C1 shows 2.

I would like these Cells to be blank if cell A1 is blank and if there
is a date in cell A1 then fill in the cells B1 and C1.
Thanks for any and all help.


--
cummingse
------------------------------------------------------------------------
cummingse's Profile: http://www.excelforum.com/member.php...o&userid=25611
View this thread: http://www.excelforum.com/showthread...hreadid=394421

  #2   Report Post  
Roy Wagner
 
Posts: n/a
Default

Give this a shot

B1=: =IF(A1="","",IF(MONTH(A1+1)=MONTH(A1),A1+1,""))
C1=: =IF(A1="","",IF(MONTH(A1+2)=MONTH(A1),A1+2,""))

You can click cell A1 and then select DATA/VALIDATION to make sure they
enter a date meeting your criteria and allow it to be blank as well.

Roy
--





"cummingse" wrote:


I ask for help on a date formula and got answer that does what I wanted
it to.
This is it:

A1: start date
B1: =IF(MONTH(A1+1)=MONTH(A1),A1+1,"")
C1: =IF(MONTH(A1+2)=MONTH(A1),A1+2,"")
and so on.
The only problem is that when cell A1: start date is empty cell B1
shows 1 and cell C1 shows 2.

I would like these Cells to be blank if cell A1 is blank and if there
is a date in cell A1 then fill in the cells B1 and C1.
Thanks for any and all help.


--
cummingse
------------------------------------------------------------------------
cummingse's Profile: http://www.excelforum.com/member.php...o&userid=25611
View this thread: http://www.excelforum.com/showthread...hreadid=394421


  #3   Report Post  
Earl Kiosterud
 
Posts: n/a
Default

Cummings,

=IF(ISBLANK(A2),"",IF(MONTH(A2+1)=MONTH(A2),A2+1," "))
=IF(ISBLANK(A2),"",IF(MONTH(A2+1)=MONTH(A2),A2+2," "))

It helps if you use a subject line that's more descriptive. Perhaps
"Checking end of month date"
--
Earl Kiosterud
www.smokeylake.com

"cummingse" wrote
in message ...

I ask for help on a date formula and got answer that does what I wanted
it to.
This is it:

A1: start date
B1: =IF(MONTH(A1+1)=MONTH(A1),A1+1,"")
C1: =IF(MONTH(A1+2)=MONTH(A1),A1+2,"")
and so on.
The only problem is that when cell A1: start date is empty cell B1
shows 1 and cell C1 shows 2.

I would like these Cells to be blank if cell A1 is blank and if there
is a date in cell A1 then fill in the cells B1 and C1.
Thanks for any and all help.


--
cummingse
------------------------------------------------------------------------
cummingse's Profile:
http://www.excelforum.com/member.php...o&userid=25611
View this thread: http://www.excelforum.com/showthread...hreadid=394421



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



All times are GMT +1. The time now is 07:12 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"