+ Reply to Thread
Results 1 to 10 of 10

Creating a date filter based on a corporate calendar

  1. #1
    Registered User
    Join Date
    08-31-2023
    Location
    New Smyrna Beach, FL
    MS-Off Ver
    365
    Posts
    13

    Creating a date filter based on a corporate calendar

    Hello, I have a column, "Date Completed" with various dates that tasks have been completed. My company has a set calendar month that differs from the standard calendar. Is there a way, preferably with a slicer, to filter my "Date Completed" column based on the corporate calendar? For example, if I select January it returns all dates that fall within the corporate January dates. Thank you for any assistance!

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,832

    Re: Creating a date filter based on a corporate calendar

    It would probably be easier if we had a sample file to work with. Please read the yellow banner at the top of the page and attach a good sample file.

  3. #3
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Creating a date filter based on a corporate calendar

    Without any sample data... I suggest a helper column to translate your 'Date Completed' into the correct 'Company month'.

    This helper column should be formatted as YYYY MM =Text(d2,"yyyy - mm").
    The reason for this is so that the slicer will show the dates in a logical order by year then month rather than alphanumeric.
    The year is not required if your data is always in just one year.

    If you need more help, please upload a sample file with a manual working of what the result should be so we know how the logic of your standard calendar vs. company calendar works.
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

  4. #4
    Registered User
    Join Date
    08-31-2023
    Location
    New Smyrna Beach, FL
    MS-Off Ver
    365
    Posts
    13

    Re: Creating a date filter based on a corporate calendar

    I apologize. I should have provided a sample. Attached is the worksheet. I have a date slicer currently and would like to still use that functionality but in a way that utilizes the corporate calendar dates. Thank you again for your time and consideration.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,832

    Re: Creating a date filter based on a corporate calendar

    Under your "Month" Column, you could enter this:

    =INDEX($M$2:$X$2,,MIN(IF($M$3:$X$37=[@[Start Date]],COLUMN($A:$L))))

    See attached.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-31-2023
    Location
    New Smyrna Beach, FL
    MS-Off Ver
    365
    Posts
    13

    Re: Creating a date filter based on a corporate calendar

    Good day. Thank you, this works great. I have run into one snag though. Some of my reports have a Date/Time Opened column formatted as Date/Time. This is from the source and I can't format it otherwise. I tried formatting my corporate calendar to Date/Time but I keep getting the #N/A error. I tried formatting the Date/Time Opened column to Date but it still sees it as the source formatting and I get the same error. Any ideas?
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,832

    Re: Creating a date filter based on a corporate calendar

    Wrap the Date time in the INT (Integer) formula. Also, your formula had the COLUMNS going from A to O. It needs to be 12 columns, A to L
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-25-2023
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    4

    Re: Creating a date filter based on a corporate calendar

    To create a date filter based on a corporate calendar in Excel:

    Create a new column: First, create a new column that maps your standard calendar months to corporate calendar months. You might need to create a lookup table for this.

    Use a slicer: Insert a slicer based on the corporate calendar months. Link this slicer to your "Date Completed" column.

    Filter using the slicer: Now, when you select a corporate calendar month in the slicer, it will filter your "Date Completed" column to show only the dates falling within that corporate month.

    This approach lets you filter your data based on your corporate calendar while keeping the original date values intact.

  9. #9
    Registered User
    Join Date
    08-31-2023
    Location
    New Smyrna Beach, FL
    MS-Off Ver
    365
    Posts
    13

    Re: Creating a date filter based on a corporate calendar

    That worked great. Thank you.

  10. #10
    Registered User
    Join Date
    08-31-2023
    Location
    New Smyrna Beach, FL
    MS-Off Ver
    365
    Posts
    13

    Re: Creating a date filter based on a corporate calendar

    Awesome. Thank you for your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Return Fiscal calendar month, year and period, based on calendar date
    By losincog in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-20-2020, 09:16 AM
  2. Creating a Macro to Filter Datasheet Linked to Calendar
    By adrenom in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2016, 12:37 PM
  3. Set the value of a Pivot Table Page Filter based on the calendar day
    By Wintery in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-11-2015, 02:17 AM
  4. Creating multiple calendar instances through macro based on cell references
    By winwall in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-19-2014, 08:39 PM
  5. Creating calendar that changes based on date entered
    By pupplove in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2013, 07:17 AM
  6. Auto creating a calendar based on a date in a cell.
    By avidcat in forum Excel General
    Replies: 4
    Last Post: 12-30-2009, 04:12 PM
  7. Creating a calendar in a cell for a date-picker
    By MarkieE in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-25-2005, 09:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1