Week Ending Column in SharePoint List

I was recently working on an excel pivot table report that pulls its data from a SharePoint list. One of the business requirements was to be able to sort, filter, and/or group by a “Week Ending” date. The list has a column called Action Date which could be any day/date. The solution turned out to be quite simple.

Create a new column in the list called, for example, “Week Ending.” Make this column a calculated column with the following formula:

=TEXT([Action Date]+(7-WEEKDAY([Action Date])),"mm/dd/yyyy")

Replace [Action Date] with the column off which you are basing the week ending date.

This particular formula assumes that Saturday (7) is the week ending date. Adjust accordingly.

This entry was posted in Tips and Tricks and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

3 Comments

  1. Jeff
    Posted October 17, 2008 at 11:11 am | Permalink

    Very helpful, thanks. We’re in “we need that Dashboard NOW*!” mode.

    *translation, we could’ve done it 6 months ago, Boss, if you hadn’t pushed 5 other priority projects to the top of the list…

  2. Posted October 27, 2008 at 3:48 pm | Permalink

    Good words.

  3. KHoliday
    Posted March 3, 2009 at 7:04 pm | Permalink

    Thanks very much – this was indeed helpful. When I was exported the previous text field (list of dates) to Excel, my excel calculations were not working properly. This definitely fixes it and ensure that time entered during the week is reflected as a weekly Friday time entry.

    Thanks!

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*