Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default I want to format date cells for the 15th of every month..

I am making a spread sheet by month receiving payments on the 15th. How do I
format the cell to account for a 31 day month vs. a 30 day month.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default I want to format date cells for the 15th of every month..

How about

For i = 1 To 12
Cells(i,"A").Value = dateSerial(Year(Date),i,15)
Next i

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Maggie" wrote in message
...
I am making a spread sheet by month receiving payments on the 15th. How

do I
format the cell to account for a 31 day month vs. a 30 day month.

Thanks.



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
Formatting for 15th and last day of the month Emilio Guerra Excel Worksheet Functions 2 April 29th 23 07:41 PM
Date if before or after 15th of month wf315 Excel Worksheet Functions 4 August 24th 08 11:44 PM
date formula returns the 15th or the end of month Steve Excel Worksheet Functions 8 January 2nd 08 06:31 AM
If date in column A is less than 15th of month can I display next. Angela Excel Discussion (Misc queries) 4 November 7th 07 02:40 PM
15th of prior month Deb Excel Worksheet Functions 3 February 6th 07 09:48 PM


All times are GMT +1. The time now is 09:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"