Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default company calendar: start date problem

Hi All,

I'm trying to put together a spreadsheet for our company. Part of the
set-up requires the entry of our company financial year start date, which is
always the second sunday in september.

This seems like a fairly simple rule to follow, but i can't think how i can
get excel to work it out (either purely by formulae or using vba)... any
ideas?

Thanks for any guidance,

Tim


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default company calendar: start date problem

Try:

=A1-DAY(A1)+15-WEEKDAY(A1-DAY(A1))

A1 contains a date for month e.g. 01/09/2006

HTH

"Tim Marsh" wrote:

Hi All,

I'm trying to put together a spreadsheet for our company. Part of the
set-up requires the entry of our company financial year start date, which is
always the second sunday in september.

This seems like a fairly simple rule to follow, but i can't think how i can
get excel to work it out (either purely by formulae or using vba)... any
ideas?

Thanks for any guidance,

Tim



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default company calendar: start date problem

cheers Toppers; i modified it slightly to include the date (in A1) as part
of your formula (with a couple of 'IFs' to work out which side of September
your in) - exactly what i needed!

Thanks, IDH (it DID help),
Tim

"Toppers" wrote in message
...
Try:

=A1-DAY(A1)+15-WEEKDAY(A1-DAY(A1))

A1 contains a date for month e.g. 01/09/2006

HTH

"Tim Marsh" wrote:

Hi All,

I'm trying to put together a spreadsheet for our company. Part of the
set-up requires the entry of our company financial year start date, which
is
always the second sunday in september.

This seems like a fairly simple rule to follow, but i can't think how i
can
get excel to work it out (either purely by formulae or using vba)... any
ideas?

Thanks for any guidance,

Tim





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
Convert date from Gregorian Calendar to Hijri Calendar H.Alkhodary Excel Discussion (Misc queries) 1 February 21st 09 10:11 AM
Calculating monthly start date with a start date Monique Excel Worksheet Functions 3 December 20th 08 09:50 AM
VBA that automatically generates a series of cash flows based on a start date, an end date and frequency [email protected] Excel Programming 0 December 27th 05 09:59 PM
Code to bring my company up to date! KJ Excel Programming 9 July 23rd 05 12:35 PM
vba object calendar start date crew3407[_16_] Excel Programming 4 May 19th 04 07:39 PM


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