#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Get all Sundays

Hello All,

what I want to do is put a year in A1 and return the first Sunday day date
in cell A2. The second Sunday day date in A3. The third Sunday day date in
A4 and so on. Then all I need to do is change the year and the cells will
reload to the correct day dates. Is this possible? I am trying to make a
Sunday school attendance book.

Dunnie


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Get all Sundays

On Tue, 4 Sep 2007 19:42:56 -0400, "Rick" wrote:

Hello All,

what I want to do is put a year in A1 and return the first Sunday day date
in cell A2. The second Sunday day date in A3. The third Sunday day date in
A4 and so on. Then all I need to do is change the year and the cells will
reload to the correct day dates. Is this possible? I am trying to make a
Sunday school attendance book.

Dunnie



A2: =DATE(A1,1,8)-WEEKDAY(DATE(A1,1,7))
A3: =IF(YEAR(A2+7)=A$1,A2+7,"")

Fill down to A54.
--ron
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,510
Default Get all Sundays

Hi Rick,

If you put the actual date in Cell A1 as 1/1/2007 then you could do the
following.

In cell B1 =A1+7-WEEKDAY(A1,2)
In cell B2 =B1+7
Copy cell B2 down to produce entire year.

Tip: Did you know that you can custom format column B to show the day of the
week. Use ddd dd mmm yyyy to show date as Sun 07 Jan 2007.

Use this dddd dd mmmm yyyy to display without abbreviation like this:-
Sunday 07 January 2007


Regards,

OssieMac

"Rick" wrote:

Hello All,

what I want to do is put a year in A1 and return the first Sunday day date
in cell A2. The second Sunday day date in A3. The third Sunday day date in
A4 and so on. Then all I need to do is change the year and the cells will
reload to the correct day dates. Is this possible? I am trying to make a
Sunday school attendance book.

Dunnie



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Get all Sundays

Year in A1
In A2: =DATE($A$1,1,1)-MOD(DATE($A$1,1,1)-1,7)+7*ROWS($1:1)

copy down as far as needed



"Rick" wrote:

Hello All,

what I want to do is put a year in A1 and return the first Sunday day date
in cell A2. The second Sunday day date in A3. The third Sunday day date in
A4 and so on. Then all I need to do is change the year and the cells will
reload to the correct day dates. Is this possible? I am trying to make a
Sunday school attendance book.

Dunnie



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Get all Sundays

Thanks everyone,

Thats what I needed.


"Rick" wrote in message
...
Hello All,

what I want to do is put a year in A1 and return the first Sunday day date
in cell A2. The second Sunday day date in A3. The third Sunday day date in
A4 and so on. Then all I need to do is change the year and the cells will
reload to the correct day dates. Is this possible? I am trying to make a
Sunday school attendance book.

Dunnie



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
Networkdays plus Sundays Kurt Levitan Excel Worksheet Functions 4 September 11th 06 07:53 PM
Number of sundays between two dates Carianne72 Excel Worksheet Functions 4 August 9th 06 02:58 AM
# of Sundays in a year lsmft Excel Discussion (Misc queries) 18 April 27th 06 02:26 PM
No Sat & Sundays lsmft Excel Discussion (Misc queries) 5 April 12th 06 05:52 PM
calculation sundays between two dates jeff thinkin Excel Discussion (Misc queries) 3 September 15th 05 02:07 AM


All times are GMT +1. The time now is 09:54 PM.

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"