Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ll ll is offline
external usenet poster
 
Posts: 67
Default date form and workbook with autofill for date

Hi,
I'm working with a form that populates the spreadsheet with a year's
worth of dates. Now, I'm attempting to split the date fill according
to month.
My question is, is there a way to do this while still using the
autofill function or would I need to perhaps use a loop instead?

Thanks,
Louis

  #2   Report Post  
Posted to microsoft.public.excel.programming
JNW JNW is offline
external usenet poster
 
Posts: 480
Default date form and workbook with autofill for date

say the month is in B1 and the full date is in A1.
range("B1").formula = "=month(A1)"

Then use autofill down.

Is this what you were looking for?
--
JNW


"ll" wrote:

Hi,
I'm working with a form that populates the spreadsheet with a year's
worth of dates. Now, I'm attempting to split the date fill according
to month.
My question is, is there a way to do this while still using the
autofill function or would I need to perhaps use a loop instead?

Thanks,
Louis


  #3   Report Post  
Posted to microsoft.public.excel.programming
ll ll is offline
external usenet poster
 
Posts: 67
Default date form and workbook with autofill for date

On Sep 4, 2:58 pm, JNW wrote:
say the month is in B1 and the full date is in A1.
range("B1").formula = "=month(A1)"

Then use autofill down.

Is this what you were looking for?
--
JNW


Thanks for your reply. I had been using autofill, but, as I am now
trying to separate the months on the same worksheet (spaced by a set
number of blank rows), I have been trying a loop (for n=2 to
daysinyear).
It's partially working, although I am looking at a conditional
statement (below). Does anyone know what syntax might be better to
use?

If Cells(j - 1, 1).Value < "" Or j 10 And Cells(j - 5, 1).Value <
"" Then


To sum up what I have - three worksheets - two of which have dates.
One of them has only dates (two columns - the first for date and the
second for day of week). The other sheet is populated by the first
sheet (in its date columns). I want to use this code to populate the
'date only' sheet (with gaps between months).

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
Autofill date on date entry in a separate column lemonshark Excel Worksheet Functions 2 February 18th 10 05:11 PM
How do you convert an uncoded date (e.g., 20080304) to a date form tenorofchange Excel Worksheet Functions 5 April 20th 08 02:56 PM
DATE IN TEXT FORM - NEED TO CHANGE IT DATE FORM SSJ New Users to Excel 3 October 27th 06 08:34 PM
Autofill Date/Time systemx Excel Worksheet Functions 1 December 20th 05 03:36 AM
Autofill date based on date in another cell karstens Excel Worksheet Functions 1 June 1st 05 12:55 AM


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