LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Populating Row with dates

One way...

A5 = the first of the month date like 4/1/2010

Enter this formula in B5 and copy across to AE5:

=IF($A5="","",IF(COLUMNS($A5:B5)DAY(EOMONTH($A5,0 )),"",A5+1))

Note that the EOMONTH function requires the Analysis ToolPak add-in be
installed if you're using a version of Excel prior to Excel 2007. If you
enter the formula and get a #NAME? error look in Excel help for the EOMONTH
function. It'll tell you how to fix the problem.

--
Biff
Microsoft Excel MVP


"Ant" wrote in message
...
Hello,

I am attempting to automatically fill a row with dates.

In Cell A5, I enter the first day of the month eg 1 April 2010.

I then want the adjacent columns to automatically fill with the subsequent
dates eg cell B5 is 2 April 2010, cell C5 is 3 April 2010 etc,

It must only fill upto and including the last day of the month and not
roll
into May. These cells then allow my Vlookup function and graph to operate
solely for that particular month.

Obviously just adding +1 to the previous cell will do this, but then I may
end up with dates in the next month which is what I need to avoid.

Preferably the function would only work when the date in A5 is changed so
I
would like to avoid using a button.

Regards
Ant



 
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
Populating dates into a 2003 Excel worksheet lilhoot Excel Discussion (Misc queries) 7 November 7th 08 03:04 AM
formulas populating dates - 1st Tuesday Jessica Excel Worksheet Functions 5 July 18th 07 12:20 AM
Populating a column with calender dates............ Denny Crane Excel Worksheet Functions 3 March 13th 06 05:30 PM
populating a list box with weekly dates John in Surrey Excel Worksheet Functions 1 October 27th 05 07:16 PM
Populating another tab. Brian Excel Discussion (Misc queries) 1 June 24th 05 12:29 AM


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