#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default simple week entry

if in cell A1 date is given, how can i do week entry of the month in
cell B1/B2.


e.g.
A1=2-APR 09 B1=1st Week
A2=28- Mar 09 B2=4th Week
A3=9-Feb 09 B3= 2nd week

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default simple week entry

One way..

=INT(DATEDIF(DATE(YEAR(A1),MONTH(A1),1),A1,"d")/7+1)

If this post helps click Yes
---------------
Jacob Skaria


"aditya" wrote:

if in cell A1 date is given, how can i do week entry of the month in
cell B1/B2.


e.g.
A1=2-APR 09 B1=1st Week
A2=28- Mar 09 B2=4th Week
A3=9-Feb 09 B3= 2nd week

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default simple week entry

Or, presumably, =INT((A1-DATE(YEAR(A1),MONTH(A1),1))/7)+1 ?
Usual questions as to how the OP wanted the week defined. If week 1 runs
from 1st to 8th, Jacob's formula or mine would do the job; if dependent on
day of the week, it would need changing.
--
David Biddulph

"Jacob Skaria" wrote in message
...
One way..

=INT(DATEDIF(DATE(YEAR(A1),MONTH(A1),1),A1,"d")/7+1)

If this post helps click Yes
---------------
Jacob Skaria


"aditya" wrote:

if in cell A1 date is given, how can i do week entry of the month in
cell B1/B2.


e.g.
A1=2-APR 09 B1=1st Week
A2=28- Mar 09 B2=4th Week
A3=9-Feb 09 B3= 2nd week



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default simple week entry

Looking again at Jacob's formula, and at my version removing the DATEDIF, I
realise that they reduce to =INT((DAY(A1)-1)/7)+1
--
David Biddulph

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
Or, presumably, =INT((A1-DATE(YEAR(A1),MONTH(A1),1))/7)+1 ?
Usual questions as to how the OP wanted the week defined. If week 1 runs
from 1st to 8th, Jacob's formula or mine would do the job; if dependent
on day of the week, it would need changing.
--
David Biddulph

"Jacob Skaria" wrote in message
...
One way..

=INT(DATEDIF(DATE(YEAR(A1),MONTH(A1),1),A1,"d")/7+1)

If this post helps click Yes
---------------
Jacob Skaria


"aditya" wrote:

if in cell A1 date is given, how can i do week entry of the month in
cell B1/B2.


e.g.
A1=2-APR 09 B1=1st Week
A2=28- Mar 09 B2=4th Week
A3=9-Feb 09 B3= 2nd week





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
week entry new aditya Excel Discussion (Misc queries) 3 June 5th 09 01:08 PM
week entry aditya Excel Discussion (Misc queries) 1 June 3rd 09 01:21 PM
week entry aditya Excel Discussion (Misc queries) 1 June 1st 09 07:27 AM
Automatically Insert Dates For Week Off One Day Entry CVinje Excel Discussion (Misc queries) 7 March 29th 09 07:37 AM
day of the week entry automatically DennyD Excel Worksheet Functions 3 September 22nd 05 09:56 PM


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