Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default How to exclude dates which equal SUNDAY from a fill series?

I want to fill a series of dates, for example cell A1 = November 1, 2008
through cell A30 = November 30, 2008. BUT I do not want to include any
Sundays, so A1 = Saturday 11/1, cell A2 = Monday 11/3, etc. I also want to
only fill one month, so if the end of the list goes to December, that would
be excluded also. (I think I figured that one out but if it conflicts I will
need help) Thank you so much.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default How to exclude dates which equal SUNDAY from a fill series?

With the date entered into A1, the first of whatever month, type the
following into A2, and copy down to A30:
=IF(A1="","",IF(OR(MONTH(A1+1+(WEEKDAY(A1)=7))<MO NTH($A$1),A1=""),"",A1+1+(WEEKDAY(A1)=7)))
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"Amber" wrote:

I want to fill a series of dates, for example cell A1 = November 1, 2008
through cell A30 = November 30, 2008. BUT I do not want to include any
Sundays, so A1 = Saturday 11/1, cell A2 = Monday 11/3, etc. I also want to
only fill one month, so if the end of the list goes to December, that would
be excluded also. (I think I figured that one out but if it conflicts I will
need help) Thank you so much.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default How to exclude dates which equal SUNDAY from a fill series?

This worked to exclude Sundays AND exclude the following month. Thank you!

"John C" wrote:

With the date entered into A1, the first of whatever month, type the
following into A2, and copy down to A30:
=IF(A1="","",IF(OR(MONTH(A1+1+(WEEKDAY(A1)=7))<MO NTH($A$1),A1=""),"",A1+1+(WEEKDAY(A1)=7)))
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"Amber" wrote:

I want to fill a series of dates, for example cell A1 = November 1, 2008
through cell A30 = November 30, 2008. BUT I do not want to include any
Sundays, so A1 = Saturday 11/1, cell A2 = Monday 11/3, etc. I also want to
only fill one month, so if the end of the list goes to December, that would
be excluded also. (I think I figured that one out but if it conflicts I will
need help) Thank you so much.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default How to exclude dates which equal SUNDAY from a fill series?

Thank you for the feedback. And just as an FYI, you will never need the
entire range of 30 cells from A1:A30 assuming you always want to exclude
Sundays. The most number of days you will ever have in a month excluding
Sundays is 27. So you could just use the formula from A2:A27, and you get 3
extra rows to play with :)
--
** John C **

"Amber" wrote:

This worked to exclude Sundays AND exclude the following month. Thank you!

"John C" wrote:

With the date entered into A1, the first of whatever month, type the
following into A2, and copy down to A30:
=IF(A1="","",IF(OR(MONTH(A1+1+(WEEKDAY(A1)=7))<MO NTH($A$1),A1=""),"",A1+1+(WEEKDAY(A1)=7)))
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"Amber" wrote:

I want to fill a series of dates, for example cell A1 = November 1, 2008
through cell A30 = November 30, 2008. BUT I do not want to include any
Sundays, so A1 = Saturday 11/1, cell A2 = Monday 11/3, etc. I also want to
only fill one month, so if the end of the list goes to December, that would
be excluded also. (I think I figured that one out but if it conflicts I will
need help) Thank you so much.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default How to exclude dates which equal SUNDAY from a fill series?

To skip Sundays: with 11/1/08 in A1, enter this in A2 and copy down

=IF(WEEKDAY(A1)<7,1,2)+A1


"Amber" wrote:

I want to fill a series of dates, for example cell A1 = November 1, 2008
through cell A30 = November 30, 2008. BUT I do not want to include any
Sundays, so A1 = Saturday 11/1, cell A2 = Monday 11/3, etc. I also want to
only fill one month, so if the end of the list goes to December, that would
be excluded also. (I think I figured that one out but if it conflicts I will
need help) Thank you so much.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default How to exclude dates which equal SUNDAY from a fill series?

This worked to exclude Sundays, thank you. The more complicated formula from
John C worked to exclude Sundays AND also excluded dates that went into the
next month.

"Duke Carey" wrote:

To skip Sundays: with 11/1/08 in A1, enter this in A2 and copy down

=IF(WEEKDAY(A1)<7,1,2)+A1


"Amber" wrote:

I want to fill a series of dates, for example cell A1 = November 1, 2008
through cell A30 = November 30, 2008. BUT I do not want to include any
Sundays, so A1 = Saturday 11/1, cell A2 = Monday 11/3, etc. I also want to
only fill one month, so if the end of the list goes to December, that would
be excluded also. (I think I figured that one out but if it conflicts I will
need help) Thank you so much.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default How to exclude dates which equal SUNDAY from a fill series?

What value do you get in A26?
--
** John C **


"Duke Carey" wrote:

To skip Sundays: with 11/1/08 in A1, enter this in A2 and copy down

=IF(WEEKDAY(A1)<7,1,2)+A1


"Amber" wrote:

I want to fill a series of dates, for example cell A1 = November 1, 2008
through cell A30 = November 30, 2008. BUT I do not want to include any
Sundays, so A1 = Saturday 11/1, cell A2 = Monday 11/3, etc. I also want to
only fill one month, so if the end of the list goes to December, that would
be excluded also. (I think I figured that one out but if it conflicts I will
need help) Thank you so much.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default How to exclude dates which equal SUNDAY from a fill series?

Pls Try this:

=IF(LEN(A1)=0,"",IF(MOD(A1,7)=0,IF(DAY(A1)<DATE(20 08,MONTH($A$1)+1,1)-DATE(2008,MONTH($A$1),1)-1,A1+2,""),IF(DAY(A1)<DATE(2008,MONTH($A$1)+1,1)-DATE(2008,MONTH($A$1),1),A1+1,"")))

It will work for all months..
--
Kind Regards,
Satti Charvak
Only an Excel Enthusiast


"John C" wrote:

What value do you get in A26?
--
** John C **


"Duke Carey" wrote:

To skip Sundays: with 11/1/08 in A1, enter this in A2 and copy down

=IF(WEEKDAY(A1)<7,1,2)+A1


"Amber" wrote:

I want to fill a series of dates, for example cell A1 = November 1, 2008
through cell A30 = November 30, 2008. BUT I do not want to include any
Sundays, so A1 = Saturday 11/1, cell A2 = Monday 11/3, etc. I also want to
only fill one month, so if the end of the list goes to December, that would
be excluded also. (I think I figured that one out but if it conflicts I will
need help) Thank you so much.

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default How to exclude dates which equal SUNDAY from a fill series?

My formula already worked in an earlier post, and is quite a bit shorter. I
was asking Duke about his value in A26, because his formula did not omit
dates for the 'next' month.
--
** John C **

"Satti Charvak" wrote:

Pls Try this:

=IF(LEN(A1)=0,"",IF(MOD(A1,7)=0,IF(DAY(A1)<DATE(20 08,MONTH($A$1)+1,1)-DATE(2008,MONTH($A$1),1)-1,A1+2,""),IF(DAY(A1)<DATE(2008,MONTH($A$1)+1,1)-DATE(2008,MONTH($A$1),1),A1+1,"")))

It will work for all months..
--
Kind Regards,
Satti Charvak
Only an Excel Enthusiast


"John C" wrote:

What value do you get in A26?
--
** John C **


"Duke Carey" wrote:

To skip Sundays: with 11/1/08 in A1, enter this in A2 and copy down

=IF(WEEKDAY(A1)<7,1,2)+A1


"Amber" wrote:

I want to fill a series of dates, for example cell A1 = November 1, 2008
through cell A30 = November 30, 2008. BUT I do not want to include any
Sundays, so A1 = Saturday 11/1, cell A2 = Monday 11/3, etc. I also want to
only fill one month, so if the end of the list goes to December, that would
be excluded also. (I think I figured that one out but if it conflicts I will
need help) Thank you so much.

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
Fill Series Dates: not letting me change the series from year to m Mike Excel Discussion (Misc queries) 1 January 24th 08 05:08 PM
I want to use a fill series to copy down a pattern of dates. DEQhl Excel Discussion (Misc queries) 1 December 20th 07 09:18 AM
Exclude zeros from series Arch Stanton Charts and Charting in Excel 2 October 13th 07 10:21 PM
How do I create a custom fill series for dates? Jeff Excel Discussion (Misc queries) 1 December 18th 06 03:28 AM
fill a series of dates excluding holidays gsh20 Excel Worksheet Functions 1 August 25th 05 12:33 AM


All times are GMT +1. The time now is 03:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"