×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• 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.

# Number of days to go and past days in a month2

## 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.

### 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?

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

#### 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.

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:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!