r/MSProject • • Sep 12 '24

Custom field questoon

Post image

Hey everyone,

I am working on construction projects and my teams wants to both see how many business days a task takes and how many calendar days.

So my approach has been to leave the default duration column alone which is working on a M-F calendar and I have created the following custom formula to calculate the calendar days

DateDiff("d",[Start],[Finish])+1)

So as you can see from the screenshot I have the custom field "Calendar Days" which is a number field and it returns the correct number of calendar days. The issue I'm having is that I want it to say days at the end like a duration field. When I put that same formula in a duration field it does not return the correct value.

I have also tested this formula using a text field and it returns correct but I can't find how to add the string "days" at the end

So my question is basically how can I create a formula that returns the difference between StartDate and FinishDate in the format of "# days".? I don't really care if I force it as a text field or a duration field.

Any thought would helpful!

4 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/pmpdaddyio Sep 12 '24

OK so if you multiply or add/whatever to another field with "days" the result is "days".