0

I used this formula

=TODAY()+MOD(10-WEEKDAY(TODAY()),7) 

in a calculated field which seems to work. However, as TODAY is actually Tuesday, Sept 13, I need the date to reflect next Tuesday, Sept 20.

So, from Tue (Sep 13) to Mon (Sep 19), I need the date to default to Sep 20, and so on.

How do I adjust the formula to do that? Thanks!

3
  • You should be aware of TODAY() never work at Calculated Column for more details check sharepoint.stackexchange.com/questions/151144/… Commented Sep 13, 2016 at 19:47
  • Sorry, I should have been clear - I've used a date/time column and added the formula noted above to the Calculated Value field within the Default Value area of the column setup
    – Allison
    Commented Sep 13, 2016 at 20:17
  • Adding an if statement allowed me to get the results needed: =IF((TODAY()+MOD(10-WEEKDAY(TODAY()),7))=TODAY(),TODAY()+MOD(10-WEEKDAY(TODAY()),8),TODAY()+MOD(10-WEEKDAY(TODAY()),7))
    – Allison
    Commented Oct 12, 2016 at 16:10

1 Answer 1

1

In case if it's not possible to get it done using a formula it's possible to achieve it using an event receiver. Write a piece of c# code inside the itemAdded event to calculate the next Tuesday and update the field.

1
  • thanks for responding, however, I am NOT techy enough to even begin to know how to do what you've stated
    – Allison
    Commented Sep 14, 2016 at 19:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.