Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
YaHootie
 
Posts: n/a
Default function to fill all days of month to end of month

I need help on a function in a spreadsheet that will list all of the days in
a given month automaticaly with the entry of the 1st of the month only.

Ex;
10/01/05 entered dated
10/02/05 auto fill
10/03/05 "
. "
. "
10/31/05 end of auto fill

I would like the function to stop filling dates at end of the month even for
shorted months such as Feb.

Thank you in advance.
  #2   Report Post  
Richard Buttrey
 
Posts: n/a
Default

On Sun, 2 Oct 2005 15:25:02 -0700, "YaHootie"
wrote:

I need help on a function in a spreadsheet that will list all of the days in
a given month automaticaly with the entry of the 1st of the month only.

Ex;
10/01/05 entered dated
10/02/05 auto fill
10/03/05 "
. "
. "
10/31/05 end of auto fill

I would like the function to stop filling dates at end of the month even for
shorted months such as Feb.

Thank you in advance.



Enter 10/01/05 in A1and 11/01/05 in A2

(The UK interpretation of these dates are 10th and 11th January 2005,
although presumably it doesn't matter if you're posting from the US
and will be entering 10/01/05 and 10/02/05)

Select both dates then click and drag the small square handle on A2
down as far as necessary.

HTH




__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #3   Report Post  
Cutter
 
Posts: n/a
Default


Assuming your entered date is in A1

In A2 type this formula:

=IF(A1="","",IF(MONTH(A1+1)=MONTH(A$1),A1+1,""))

and drag fill the formula down to A31


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=472473

  #4   Report Post  
YaHootie
 
Posts: n/a
Default

Thank you Richard, I'm presently using the drag method now but was looking
for a way to have Excel automate this process - lazy you know. Do you or
anyone know of a way to preform this operation automaticaly?

"Richard Buttrey" wrote:

On Sun, 2 Oct 2005 15:25:02 -0700, "YaHootie"
wrote:

I need help on a function in a spreadsheet that will list all of the days in
a given month automaticaly with the entry of the 1st of the month only.

Ex;
10/01/05 entered dated
10/02/05 auto fill
10/03/05 "
. "
. "
10/31/05 end of auto fill

I would like the function to stop filling dates at end of the month even for
shorted months such as Feb.

Thank you in advance.



Enter 10/01/05 in A1and 11/01/05 in A2

(The UK interpretation of these dates are 10th and 11th January 2005,
although presumably it doesn't matter if you're posting from the US
and will be entering 10/01/05 and 10/02/05)

Select both dates then click and drag the small square handle on A2
down as far as necessary.

HTH




__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________

  #5   Report Post  
YaHootie
 
Posts: n/a
Default

Thank you Cutter, you have me on a good path, your formula does basically
what I want it to do. Is there a way to automate this formula to enter
monthly days by entering only the first day in cell A1 and having the rest of
the dates entered automatically?

"Cutter" wrote:


Assuming your entered date is in A1

In A2 type this formula:

=IF(A1="","",IF(MONTH(A1+1)=MONTH(A$1),A1+1,""))

and drag fill the formula down to A31


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=472473




  #6   Report Post  
YaHootie
 
Posts: n/a
Default

Thank you Cutter, I responed to quickly. Your formula works exactly as I
want it to do.

Thank You Very Much.

"Cutter" wrote:


Assuming your entered date is in A1

In A2 type this formula:

=IF(A1="","",IF(MONTH(A1+1)=MONTH(A$1),A1+1,""))

and drag fill the formula down to A31


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=472473


  #7   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Sun, 2 Oct 2005 15:25:02 -0700, "YaHootie"
wrote:

I need help on a function in a spreadsheet that will list all of the days in
a given month automaticaly with the entry of the 1st of the month only.

Ex;
10/01/05 entered dated
10/02/05 auto fill
10/03/05 "
. "
. "
10/31/05 end of auto fill

I would like the function to stop filling dates at end of the month even for
shorted months such as Feb.

Thank you in advance.


A2: =(A1+1)*(MONTH(A1+1)=MONTH($A$1))

Copy/Drag down to A31

Then Format/Cells/Number/Custom Type: mm/dd/yy;;

(Note the two semicolons at the end).


--ron
  #8   Report Post  
Myrna Larson
 
Posts: n/a
Default

Assuming you will type the first date in cell A1, in A2 put this formula

=IF(A1="",A1,IF(MONTH(A1+1)=MONTH(A1),A1+1,""))

and copy it down through A31. You only have to do this once. After that,
changing the value in A1 will fill in the remaining dates. If a given day
doesn't occur in that month the cell will appear to be empty.

On Sun, 2 Oct 2005 16:59:02 -0700, "YaHootie"
wrote:

Thank you Richard, I'm presently using the drag method now but was looking
for a way to have Excel automate this process - lazy you know. Do you or
anyone know of a way to preform this operation automaticaly?

"Richard Buttrey" wrote:

On Sun, 2 Oct 2005 15:25:02 -0700, "YaHootie"
wrote:

I need help on a function in a spreadsheet that will list all of the days

in
a given month automaticaly with the entry of the 1st of the month only.

Ex;
10/01/05 entered dated
10/02/05 auto fill
10/03/05 "
. "
. "
10/31/05 end of auto fill

I would like the function to stop filling dates at end of the month even

for
shorted months such as Feb.

Thank you in advance.



Enter 10/01/05 in A1and 11/01/05 in A2

(The UK interpretation of these dates are 10th and 11th January 2005,
although presumably it doesn't matter if you're posting from the US
and will be entering 10/01/05 and 10/02/05)

Select both dates then click and drag the small square handle on A2
down as far as necessary.

HTH




__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________

  #9   Report Post  
Cutter
 
Posts: n/a
Default


Yahootie, you're welcome. You had me scratching my head after your
first message to me but then I read your second one.

Glad it worked for you.


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=472473

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Monique
 
Posts: n/a
Default function to fill all days of month to end of month

I would like to know if there is a way to use the workday function with this
formula.

Monique

"Myrna Larson" wrote:

Assuming you will type the first date in cell A1, in A2 put this formula

=IF(A1="",A1,IF(MONTH(A1+1)=MONTH(A1),A1+1,""))

and copy it down through A31. You only have to do this once. After that,
changing the value in A1 will fill in the remaining dates. If a given day
doesn't occur in that month the cell will appear to be empty.

On Sun, 2 Oct 2005 16:59:02 -0700, "YaHootie"
wrote:

Thank you Richard, I'm presently using the drag method now but was looking
for a way to have Excel automate this process - lazy you know. Do you or
anyone know of a way to preform this operation automaticaly?

"Richard Buttrey" wrote:

On Sun, 2 Oct 2005 15:25:02 -0700, "YaHootie"
wrote:

I need help on a function in a spreadsheet that will list all of the days

in
a given month automaticaly with the entry of the 1st of the month only.

Ex;
10/01/05 entered dated
10/02/05 auto fill
10/03/05 "
. "
. "
10/31/05 end of auto fill

I would like the function to stop filling dates at end of the month even

for
shorted months such as Feb.

Thank you in advance.


Enter 10/01/05 in A1and 11/01/05 in A2

(The UK interpretation of these dates are 10th and 11th January 2005,
although presumably it doesn't matter if you're posting from the US
and will be entering 10/01/05 and 10/02/05)

Select both dates then click and drag the small square handle on A2
down as far as necessary.

HTH




__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________




  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default function to fill all days of month to end of month

Hi!

To make it easier and the formula shorter (not wanting to hardcode a date in
the formula), enter a date for the month you're interested in:

A1 = 5/1/2006
H1:H10 = list of holiday dates to be excluded, if any.

Formula:

=IF(MONTH(A$1)=MONTH(WORKDAY(A$1-DAY(A$1),ROWS($1:1),H$1:H$10)),WORKDAY(A$1-DAY(A$1),ROWS($1:1),H$1:H$10),"")

Copy down until you get blanks.

Biff

"Monique" wrote in message
...
I would like to know if there is a way to use the workday function with
this
formula.

Monique

"Myrna Larson" wrote:

Assuming you will type the first date in cell A1, in A2 put this formula

=IF(A1="",A1,IF(MONTH(A1+1)=MONTH(A1),A1+1,""))

and copy it down through A31. You only have to do this once. After that,
changing the value in A1 will fill in the remaining dates. If a given day
doesn't occur in that month the cell will appear to be empty.

On Sun, 2 Oct 2005 16:59:02 -0700, "YaHootie"
wrote:

Thank you Richard, I'm presently using the drag method now but was
looking
for a way to have Excel automate this process - lazy you know. Do you
or
anyone know of a way to preform this operation automaticaly?

"Richard Buttrey" wrote:

On Sun, 2 Oct 2005 15:25:02 -0700, "YaHootie"
wrote:

I need help on a function in a spreadsheet that will list all of the
days

in
a given month automaticaly with the entry of the 1st of the month
only.

Ex;
10/01/05 entered dated
10/02/05 auto fill
10/03/05 "
. "
. "
10/31/05 end of auto fill

I would like the function to stop filling dates at end of the month
even

for
shorted months such as Feb.

Thank you in advance.


Enter 10/01/05 in A1and 11/01/05 in A2

(The UK interpretation of these dates are 10th and 11th January 2005,
although presumably it doesn't matter if you're posting from the US
and will be entering 10/01/05 and 10/02/05)

Select both dates then click and drag the small square handle on A2
down as far as necessary.

HTH




__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________




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
Need help to reflect number of days in a month. Lewis Koh Excel Worksheet Functions 8 July 30th 05 01:14 AM
Count number of days in given month? Bryan Excel Worksheet Functions 10 February 2nd 05 11:44 PM
How to Set a fix # of days per month iboock Excel Worksheet Functions 0 November 3rd 04 06:53 AM
how do I make a function to count days? khamsta Excel Worksheet Functions 2 November 1st 04 10:53 PM
Using the Month function to sum another column Chris Excel Worksheet Functions 11 October 30th 04 08:49 AM


All times are GMT +1. The time now is 02:23 AM.

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"