INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Number of days to go and past days in a month

Number of days to go and past days in a month

(OP)
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

RE: Number of days to go and past days in a month

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

RE: Number of days to go and past days in a month

(OP)
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

RE: Number of days to go and past days in a month

You need a date in order to figure out the number, surely?

RE: Number of days to go and past days in a month

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close