PC Review


Reply
Thread Tools Rate Thread

Auto Fill days of the month (not including weekends)

 
 
=?Utf-8?B?Sm9obiBLcnN1bGlj?=
Guest
Posts: n/a
 
      2nd Jul 2007
I need to create a sheet where the days of the month show accross the top of
the columns. I have been starting with the first day of the month and auto
filling to the last day and then manually going in and deleting out the
weekends. Is there a way to create a formula where I can auto fill but not
have it include the weekends.

My heading should be July 2 July 3 July 4 July 5 July 6 July 9
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VGVldGhsZXNzIG1hbWE=?=
Guest
Posts: n/a
 
      2nd Jul 2007
Enter date in A1
In B1: =WORKDAY(A1,1)
copy across


"John Krsulic" wrote:

> I need to create a sheet where the days of the month show accross the top of
> the columns. I have been starting with the first day of the month and auto
> filling to the last day and then manually going in and deleting out the
> weekends. Is there a way to create a formula where I can auto fill but not
> have it include the weekends.
>
> My heading should be July 2 July 3 July 4 July 5 July 6 July 9

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      2nd Jul 2007
put the date of the last day of the previous month in A1, and in B1 enter

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

in C1 enter

=IF(MONTH(B1+1)<>MONTH(B1),"",IF(WEEKDAY(B1)=7,2,1)+B1)

and copy across

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"John Krsulic" <(E-Mail Removed)> wrote in message
news:82AD7C1C-0FC4-4DDD-A099-(E-Mail Removed)...
>I need to create a sheet where the days of the month show accross the top
>of
> the columns. I have been starting with the first day of the month and auto
> filling to the last day and then manually going in and deleting out the
> weekends. Is there a way to create a formula where I can auto fill but not
> have it include the weekends.
>
> My heading should be July 2 July 3 July 4 July 5 July 6 July 9



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      2nd Jul 2007
oops, C1 and across should be

=IF(MONTH(B1+1)<>MONTH(B1),"",IF(WEEKDAY(B1)=6,3,1)+B1)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"John Krsulic" <(E-Mail Removed)> wrote in message
news:82AD7C1C-0FC4-4DDD-A099-(E-Mail Removed)...
>I need to create a sheet where the days of the month show accross the top
>of
> the columns. I have been starting with the first day of the month and auto
> filling to the last day and then manually going in and deleting out the
> weekends. Is there a way to create a formula where I can auto fill but not
> have it include the weekends.
>
> My heading should be July 2 July 3 July 4 July 5 July 6 July 9



 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      2nd Jul 2007
>I need to create a sheet where the days of the month show accross the top
>of
> the columns. I have been starting with the first day of the month and auto
> filling to the last day and then manually going in and deleting out the
> weekends. Is there a way to create a formula where I can auto fill but not
> have it include the weekends.
>
> My heading should be July 2 July 3 July 4 July 5 July 6 July 9


Teethless mama's solution is the tightest method (once you format it for the
display you want), but if you don't have (or don't want to install) the
Analysis ToolPak, you can do this...

A1: =TEXT(DATE(2007,7,2),"mmmm d")

B1 and up
====================
=TEXT($A$1+MOD(COLUMN(B1)-1,5)+7*INT((COLUMN(B1)-1)/5),"mmmm d")

Rick

 
Reply With Quote
 
=?Utf-8?B?Sm9obiBLcnN1bGlj?=
Guest
Posts: n/a
 
      2nd Jul 2007
I tried Toothless Mama's formula and I get a name error.
In cell A1 I typed in todays date 7/2 Excel converted it to 2 Jul (fine with
me) in cell B1 I typed the workday formula. In cell B1 I get the name error.

What is the Analysis tool pack? What does it do for me and where do I get it?
"Rick Rothstein (MVP - VB)" wrote:

> >I need to create a sheet where the days of the month show accross the top
> >of
> > the columns. I have been starting with the first day of the month and auto
> > filling to the last day and then manually going in and deleting out the
> > weekends. Is there a way to create a formula where I can auto fill but not
> > have it include the weekends.
> >
> > My heading should be July 2 July 3 July 4 July 5 July 6 July 9

>
> Teethless mama's solution is the tightest method (once you format it for the
> display you want), but if you don't have (or don't want to install) the
> Analysis ToolPak, you can do this...
>
> A1: =TEXT(DATE(2007,7,2),"mmmm d")
>
> B1 and up
> ====================
> =TEXT($A$1+MOD(COLUMN(B1)-1,5)+7*INT((COLUMN(B1)-1)/5),"mmmm d")
>
> Rick
>
>

 
Reply With Quote
 
Peo Sjoblom
Guest
Posts: n/a
 
      2nd Jul 2007
It comes with excel/office, do tools>add-ins and select analysis toolpak,
keep the installation cd handy since you will need it


--
Regards,

Peo Sjoblom


"John Krsulic" <(E-Mail Removed)> wrote in message
news:96C60FF7-02BB-45A0-B9EF-(E-Mail Removed)...
>I tried Toothless Mama's formula and I get a name error.
> In cell A1 I typed in todays date 7/2 Excel converted it to 2 Jul (fine
> with
> me) in cell B1 I typed the workday formula. In cell B1 I get the name
> error.
>
> What is the Analysis tool pack? What does it do for me and where do I get
> it?
> "Rick Rothstein (MVP - VB)" wrote:
>
>> >I need to create a sheet where the days of the month show accross the
>> >top
>> >of
>> > the columns. I have been starting with the first day of the month and
>> > auto
>> > filling to the last day and then manually going in and deleting out the
>> > weekends. Is there a way to create a formula where I can auto fill but
>> > not
>> > have it include the weekends.
>> >
>> > My heading should be July 2 July 3 July 4 July 5 July 6 July 9

>>
>> Teethless mama's solution is the tightest method (once you format it for
>> the
>> display you want), but if you don't have (or don't want to install) the
>> Analysis ToolPak, you can do this...
>>
>> A1: =TEXT(DATE(2007,7,2),"mmmm d")
>>
>> B1 and up
>> ====================
>> =TEXT($A$1+MOD(COLUMN(B1)-1,5)+7*INT((COLUMN(B1)-1)/5),"mmmm d")
>>
>> Rick
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate 60 days from Start Date - including weekends Missy Microsoft Excel Worksheet Functions 5 19th Aug 2009 04:27 PM
formula for total days, excluding holidays but including weekends wtfisch Microsoft Excel Discussion 3 8th May 2008 06:26 PM
Days between dates including start day and weekends JessP27 Microsoft Excel Worksheet Functions 7 9th Jan 2008 05:32 PM
calculate the numbers of days (count) not including weekends =?Utf-8?B?c21hc29u?= Microsoft Access 1 21st Oct 2005 11:46 AM
to add a # of days... not including holidays/weekends Aaron Microsoft Access Queries 2 23rd Feb 2004 09:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:01 PM.