Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Auto Fill days of the month (not including weekends)

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Auto Fill days of the month (not including weekends)

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Auto Fill days of the month (not including weekends)

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" wrote in message
...
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



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Auto Fill days of the month (not including weekends)

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" wrote in message
...
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



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Auto Fill days of the month (not including weekends)

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



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Auto Fill days of the month (not including weekends)

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


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Auto Fill days of the month (not including weekends)

It comes with excel/office, do toolsadd-ins and select analysis toolpak,
keep the installation cd handy since you will need it


--
Regards,

Peo Sjoblom


"John Krsulic" wrote in message
...
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
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
Track time to resolution (without including after hours on weekdays and weekends) [email protected] Excel Worksheet Functions 3 February 4th 07 01:57 AM
Formula to auto fill in following month. MagnoliaSouth Excel Worksheet Functions 7 October 2nd 06 02:10 AM
function to fill all days of month to end of month Monique Excel Worksheet Functions 11 May 1st 06 07:39 PM
function to fill all days of month to end of month YaHootie Excel Worksheet Functions 10 May 1st 06 06:01 AM
How do I set up a clumn of days, skipping weekends? Enrique Excel Worksheet Functions 2 March 2nd 06 10:30 PM


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