Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default calculating number of prior pay periods in year when given specificdate.

I am trying to calculate the number of bi-weekly and weekly pay periods of a given year.

Example

9/1/09 - there are 35 (weekly) tuesdays before this date, and 18 biweekly periods.

what excel function can I use to do this?

Is there also a way for semi-monthly?

EggHeadCafe - Software Developer Portal of Choice
WPF And The Model View View Model Pattern
http://www.eggheadcafe.com/tutorials...l-view-vi.aspx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default calculating number of prior pay periods in year when given specific date.


Hi,

Try this. C15 holds 9/1/2009. B15 holds 1/1/2009. The answer would be 35

=SUMPRODUCT(1*(WEEKDAY(ROW(INDIRECT(C15&":"&B15))) =2))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Jon Friessen" wrote in message ...
I am trying to calculate the number of bi-weekly and weekly pay periods of
a given year.

Example

9/1/09 - there are 35 (weekly) tuesdays before this date, and 18 biweekly
periods.

what excel function can I use to do this?

Is there also a way for semi-monthly?

EggHeadCafe - Software Developer Portal of Choice
WPF And The Model View View Model Pattern
http://www.eggheadcafe.com/tutorials...l-view-vi.aspx


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
Calculating number of periods Ari Excel Worksheet Functions 2 June 4th 09 05:16 AM
Combination Graph with current year and prior year sales JanW Charts and Charting in Excel 2 April 5th 07 09:20 PM
calculating number of three month periods between two dates... neil Excel Discussion (Misc queries) 3 May 21st 06 01:52 PM
Calculating number of periods when payment amount changes Dan Patrick Excel Worksheet Functions 1 August 2nd 05 05:57 PM
How to compare current year to prior year in bar chart? substring Charts and Charting in Excel 4 May 12th 05 07:04 PM


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