Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number of days to go and past days in a month 2

Status
Not open for further replies.

TJVFree

Technical User
Nov 22, 2010
236
0
0
US
Hi.

I'm trying to find a formula that I can use to calculate the number of days left in the month and also the number of days current to past days in the month.
I've seen some examples of this when searching on line but I don’t know how I would add them to my current formula that I have to change each day.


Project Amount: [Fees_Collected]+(([Fees_Collected]/4)*26)
Project Amount_NB: [REFERRED]+(([REFERRED]/4)*26)

Thank you for your time and help

TCB


TCB
 
I don't see any dates in your examples.

Days to the end of the month can be calculated by:

DateDiff("d",date(), DateSerial(Year(date()), Month(Date())+1,0))

If you want this based off a date field, replace Date() with the date field name.

Duane
Hook'D on Access
MS Access MVP
 
I don’t use a date. I just need the number to calculate the Projected Amount

today's would be
Project Amount: [Fees_Collected]+(([Fees_Collected]/8)*22)
Project Amount_NB: [REFERRED]+(([REFERRED]/8)*22)


TCB
 
You need a date in order to figure out the number, surely?
 
You really need to tell us where the 8 and 22 are coming from? I expect the 8 is because today is September 8th. Is 22 because there are 22 more days in September?

Please be more explicit regarding your expressions.

Were you able to resolve your issue based on the calculation I provided or do you still need help?

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top