LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default User defined function to count pay days in current month.


I need User defined function to count pay days in current month. Let'
see if I can explain this idea right the first time. Big grin

I am in need of a user defined function like the following:

-paydays(year, month, first pay, pay period)

paydays() output = # of paydays in current month based on:
-
year = -current year- format = YYYY
month = -current month- format = MM
first pay = -date of first pay check- format = MM/DD/YYYY
pay period = -days between pay days- format = DD

assumptions are that the person gets paid at least once a month. firs
pay can be any date <= current month and current year. current mont
and current year can be any date = first pay.

Example:

paydays(2005, 10, "8/29/05", 14)

would spit out a 2
-------------------------

I am creating a cashflow for my personal finances. I need a use
defined function that based on the above args can dynamically determin
how many paydays are in the current month.

I get paid every 7 days and my wife gets paid every 14 days. This mean
I get paid 4 or 5 times a month and that my wife gets paid 2 or 3 time
month. I was thinking in my sleep last night about how wonderful i
would be If I or someone looking for something similiar could jus
dynamically define pay period and first pay day in a function an
automatically get the number of paydays in a current month..

If any of you are up for the challenge of coding this I would greatl
appreciate it. Thank you all for being such a helpful community.

I hope I was clear and very descriptive of what my idea is. I hav
trouble with this sometimes.

thanks

--
dbmathi
-----------------------------------------------------------------------
dbmathis's Profile: http://www.excelforum.com/member.php...fo&userid=2673
View this thread: http://www.excelforum.com/showthread.php?threadid=39991

 
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
How do I count the number of even weeks in the current month. dd Excel Worksheet Functions 6 February 22nd 07 07:29 AM
how do i display the total number of days in the current month in. timerigger Excel Discussion (Misc queries) 6 March 20th 05 05:13 PM
Restoring the current result of failing user-defined functions Nacho Nachev Excel Programming 5 September 16th 04 09:14 AM
current row of user-defined function? usenethelp Excel Programming 5 July 22nd 04 04:53 AM
current cell in user-defined function Julio Kuplinsky Excel Programming 3 December 8th 03 06:24 PM


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