I was wanting to format a date that would look like this Mon-20th. If
any one could help i would greatly appreciate it.=TEXT(A1,quot;ddd
ddquot;)amp;CHOOSE(MOD(DAY(A1),10) 1,quot;thquot;,quot;stquot;,quot;ndquot;,quot;rdquot;, quot;thquot;,quot;thquot;,quot;thquot;,quot;thquot;,quot;thquot;,quot;
thquot;)
--
HTH
Bob Phillips
(remove nothere from email address if mailing direct)
quot;slvtennquot; gt; wrote in message oups.com...
gt; I was wanting to format a date that would look like this Mon-20th. If
gt; any one could help i would greatly appreciate it.
gt;
Correction, it mis-handles some days
=TEXT(A1,quot;ddd ddquot;)amp;IF(AND(DAY(A1)gt;=10,DAY(A1)lt;=14),quot;thquot;,
CHOOSE(MOD(DAY(A1),10) 1,quot;thquot;,quot;stquot;,quot;ndquot;,quot;rdquot;,quot;thquot;, quot;thquot;,quot;thquot;,quot;thquot;,quot;thquot;,quot;thquot;))
--
HTH
Bob Phillips
(remove nothere from email address if mailing direct)
quot;slvtennquot; gt; wrote in message oups.com...
gt; I was wanting to format a date that would look like this Mon-20th. If
gt; any one could help i would greatly appreciate it.
gt;
ok that was great and thanks for quick reply, but what if i need the
st, nd, or rd example......1st, 2nd, 3rd, or 21st, 22nd, 23rd ?? by the
way that worked for me just need to make change when the st, nd, rd are
used.well i didn't put everything i needed to so heres the rest...i have
cell L1 formatted with =NOW() 5 which creates what todays date is plus
5 days. that will setup a work week date, now in verious cell in the
work sheet for example if L1=NOW() 5 then it looks like this 2/25/2006
now in cell b15 i want the date to be Mon 20th, cell b23 would be Tue
21st all the way down to Friday taking away a day from L1 each time. my
work week starts on Monday and ends on Saturday, so for this week L1 is
2/25/2006 because today is the 20th and if i add 5 days to that i get
2/25/2006. i am using cell L1 as the primary date and want to
distribute that five day work period over other cells kinda like a
schedule.In B15
=TEXT($L$1-(6-ROW(A1)),quot;ddd
ddquot;)amp;IF(AND(DAY($L$1-(6-ROW(A1)))gt;=10,DAY($L$1-(6-ROW(A1)))lt;=14),quot;thquot;,
CHOOSE(MOD(DAY($L$1-(6-ROW(A1))),10) 1,quot;thquot;,quot;stquot;,quot;ndquot;,quot;rdquot;,quot;thquot;,quot;thquot;,quot;thquot; ,quot;t
hquot;,quot;thquot;,quot;thquot;))
copy down to B19
--
HTH
Bob Phillips
(remove nothere from email address if mailing direct)
quot;slvtennquot; gt; wrote in message oups.com...
gt; well i didn't put everything i needed to so heres the rest...i have
gt; cell L1 formatted with =NOW() 5 which creates what todays date is plus
gt; 5 days. that will setup a work week date, now in verious cell in the
gt; work sheet for example if L1=NOW() 5 then it looks like this 2/25/2006
gt; now in cell b15 i want the date to be Mon 20th, cell b23 would be Tue
gt; 21st all the way down to Friday taking away a day from L1 each time. my
gt; work week starts on Monday and ends on Saturday, so for this week L1 is
gt; 2/25/2006 because today is the 20th and if i add 5 days to that i get
gt; 2/25/2006. i am using cell L1 as the primary date and want to
gt; distribute that five day work period over other cells kinda like a
gt; schedule.
gt;
the formula above formats the cells in a row like A1, B1, C1, but what
if i wanted to skip some rows for example start with A2 for 1st date
then skip down to A15 for the next date which would look something like
this
(CellA2) Mon 20th
(CellA15) Tue 21st
all the way to Friday. if i use the formula like it is it doesn't work
right if you copy cell A2 after the formula is inserted, into Cell A15.
the 1st cell i copy this formula to works but when you skip down to
Cell A15 after coping Cell A2 and paste the resaults are like this Sun
05th, which i would like it to say Tue 21st.the formula above formats the cells in a row like A1, B1, C1, but what
if i wanted to skip some rows for example start with A2 for 1st date
then skip down to A15 for the next date which would look something like
this
(CellA2) Mon 20th
(CellA15) Tue 21st
all the way to Friday. if i use the formula like it is it doesn't work
right if you copy cell A2 after the formula is inserted, into Cell A15.
the 1st cell i copy this formula to works but when you skip down to
Cell A15 after coping Cell A2 and paste the resaults are like this Sun
05th, which i would like it to say Tue 21st.You are chopping and changing every suggestion, so I think there is no more
I can do to help.
--
HTH
Bob Phillips
(remove nothere from email address if mailing direct)
quot;slvtennquot; gt; wrote in message oups.com...
gt; the formula above formats the cells in a row like A1, B1, C1, but what
gt; if i wanted to skip some rows for example start with A2 for 1st date
gt; then skip down to A15 for the next date which would look something like
gt; this
gt; (CellA2) Mon 20th
gt;
gt;
gt;
gt;
gt; (CellA15) Tue 21st
gt; all the way to Friday. if i use the formula like it is it doesn't work
gt; right if you copy cell A2 after the formula is inserted, into Cell A15.
gt; the 1st cell i copy this formula to works but when you skip down to
gt; Cell A15 after coping Cell A2 and paste the resaults are like this Sun
gt; 05th, which i would like it to say Tue 21st.
gt;
well the last reply i posted is the last one, but you know as well as i
do that when programming in excel there are lots of changes done before
the end product is complete. the replys you have given me are great and
i have learned a lot from them i just need this one last thing to
finish doing the things i need the excel program to do, but thanks a
lot for the help you have given me.
- Oct 05 Fri 2007 20:40
Excel Date??
close
全站熱搜
留言列表
發表留言