I am trying to fill in weekly dates from entering the first Monday in April,
which I can do by A1 7....but I have the months arranged in blocks of 5 and
want the cell to remain blank if there is only 4 weeks in that month and put
the date in the box below it.
Any ideas please?
Regards,
Lisa
in the 5th week (A5)
=IF(MONTH(A4 7)=MONTH(A4),A4 7,quot;quot;)
in the next first week
=IF(A5=quot;quot;,A4 7,A5 7)
Hope this helps
--
Lisa Wrote:
gt; I am trying to fill in weekly dates from entering the first Monday in
gt; April,
gt; which I can do by A1 7....but I have the months arranged in blocks of 5
gt; and
gt; want the cell to remain blank if there is only 4 weeks in that month
gt; and put
gt; the date in the box below it.
gt;
gt; Any ideas please?
gt;
gt; Regards,
gt; Lisa--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: www.excelforum.com/member.php...oamp;userid=21059
View this thread: www.excelforum.com/showthread...hreadid=535305
A further thought, if your dates run down the A column in sequence,
use,
in A2=IF(MOD(ROW(),5)=0,IF(MONTH(A1 7)=MONTH(A1),A1 7,quot; quot;),IF(MOD(ROW(),5)=1,IF(A1=quot;quot;,H0 7,A1 7),A1 7) )
and in A3=IF(MOD(ROW(),5)=0,IF(MONTH(A2 7)=MONTH(A2),A2 7,quot; quot;),IF(MOD(ROW(),5)=1,IF(A2=quot;quot;,A1 7,A2 7),A2 7) )and formula copy that as far as you want dates.
(yes, I know that H0 is not valid)
Hope this helps
--
Bryan Hessey Wrote:
gt; in the 5th week (A5)
gt;
gt; =IF(MONTH(A4 7)=MONTH(A4),A4 7,quot;quot;)
gt;
gt; in the next first week
gt;
gt; =IF(A5=quot;quot;,A4 7,A5 7)
gt;
gt; Hope this helps
gt;
gt; ----
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: www.excelforum.com/member.php...oamp;userid=21059
View this thread: www.excelforum.com/showthread...hreadid=535305quot;Bryan Hesseyquot; gt;
wrote in message
...
gt;
gt; in the 5th week (A5)
gt;
gt; =IF(MONTH(A4 7)=MONTH(A4),A4 7,quot;quot;)
gt;
gt; in the next first week
gt;
gt; =IF(A5=quot;quot;,A4 7,A5 7)
gt;
gt; Hope this helps
That's fabulous, Thanks!!
I was nearly there - just hadn't worked out the MONTH bit.
Lisa
Good to see, and thanks for the response, but check that you picked up
the amendment to the original post.
The formula for A3 should refer back mainly to A2, with one reference
to A1 (replacing the reference to H0 in formula for A2)
--
Lisa Wrote:
gt; quot;Bryan Hesseyquot;
gt; gt;
gt; wrote in message
gt; ...
gt; gt;
gt; gt; in the 5th week (A5)
gt; gt;
gt; gt; =IF(MONTH(A4 7)=MONTH(A4),A4 7,quot;quot;)
gt; gt;
gt; gt; in the next first week
gt; gt;
gt; gt; =IF(A5=quot;quot;,A4 7,A5 7)
gt; gt;
gt; gt; Hope this helps
gt;
gt; That's fabulous, Thanks!!
gt;
gt; I was nearly there - just hadn't worked out the MONTH bit.
gt;
gt; Lisa--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: www.excelforum.com/member.php...oamp;userid=21059
View this thread: www.excelforum.com/showthread...hreadid=535305
- Sep 29 Fri 2006 20:09
Fill in Date problem
close
全站熱搜
留言列表
發表留言