Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Divide Monthly Sales Budget to Day budget

Benedikt,

Does day level simply mean dividing monthly figure by the number of days in
the month or it working days?

"Benedikt Fridbjornsson" wrote:

Hi



The sales budget in my company for the year 2006 is done on month level. Is
there some way for me to divide the budget to day level?



best regards

Benedikt F

Computer department

Iceland Seafood Int



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Divide Monthly Sales Budget to Day budget

Hi

It would be better if it is working days. But dividing monthly figure by the
number of day in the month would also be great. I am going to import the
budget into sql server and create olap cube so everyone in my company is
going to be able to see the budget on month, week and day level.


"Toppers" wrote in message
...
Benedikt,

Does day level simply mean dividing monthly figure by the number of days
in
the month or it working days?

"Benedikt Fridbjornsson" wrote:

Hi



The sales budget in my company for the year 2006 is done on month level.
Is
there some way for me to divide the budget to day level?



best regards

Benedikt F

Computer department

Iceland Seafood Int





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Divide Monthly Sales Budget to Day budget

Hi,

Couple of routines to calculate calendar & working days (Monday to
Friday) in a given month:

Function NumberOfWorkdays(Y As Integer, M As Integer)
nDays = DaysInMonth(Y, M)
n = 0
For i = 1 To nDays
' Sunday=1 ....
If Weekday(DateSerial(Y, M, i)) = 2 And Weekday(DateSerial(Y, M, i)) <= 6
Then
n = n + 1
End If
Next i
NumberOfWorkdays = n
End Function

Function DaysInMonth(Y As Integer, M As Integer) As Integer
DaysInMonth = Day(DateSerial(Y, M + 1, 0))
End Function

Sub test()
MsgBox NumberOfWorkdays(2006, 1)
End Sub

"Benedikt F" wrote:

Hi

It would be better if it is working days. But dividing monthly figure by the
number of day in the month would also be great. I am going to import the
budget into sql server and create olap cube so everyone in my company is
going to be able to see the budget on month, week and day level.


"Toppers" wrote in message
...
Benedikt,

Does day level simply mean dividing monthly figure by the number of days
in
the month or it working days?

"Benedikt Fridbjornsson" wrote:

Hi



The sales budget in my company for the year 2006 is done on month level.
Is
there some way for me to divide the budget to day level?



best regards

Benedikt F

Computer department

Iceland Seafood Int






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
Monthly Budget Breakdown GF_Chris Excel Discussion (Misc queries) 8 March 15th 07 03:28 PM
monthly budget jjcontrol Excel Discussion (Misc queries) 2 February 24th 07 12:08 AM
I want to track sales, gp vs. budget I need a template excel challenged fat boy Excel Discussion (Misc queries) 0 September 28th 06 05:31 PM
Divide Monthly Sales Budget to Day Budget Benedikt Fridbjornsson Excel Worksheet Functions 2 January 10th 06 03:42 PM
Sales budget Monica M Excel Worksheet Functions 0 June 14th 05 06:15 PM


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