+ Reply to Thread
Results 1 to 4 of 4

Need help making this formula recognize YEAR when filtering data

  1. #1
    Forum Contributor
    Join Date
    05-11-2020
    Location
    Kansas City
    MS-Off Ver
    Office 365
    Posts
    201

    Need help making this formula recognize YEAR when filtering data

    Hi All,

    I have been using this formula for a while to filter a list of data from a different sheet and just realized that it isn't using the year to filter out last years data. Is it possible to edit this formula to make sure that the year that is currently in cell B2 is the only year that appears on this list?

    =LET(v,FILTER(CHOOSECOLS(Table8[[SchedTime]:[Notes]],11,8,19,12,2,3,4,5,1,21,22), (DATE(B2,MONTH(Table8[Ship Date]),1)=DATE(B2,MONTH(A2&0),1))*(Table8[Job Value]>=C2),""),SORT(FILTER(v,INDEX(v,,1)<>""),7))

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: Need help making this formula recognize YEAR when filtering data

    Try this change. Instead of combining the year from B2 with the date in Ship Date, extract the year from Ship Date:


    =LET(v,FILTER(CHOOSECOLS(Table8[[SchedTime]:[Notes]],11,8,19,12,2,3,4,5,1,21,22), (DATE(YEAR(Table8[Ship Date]),MONTH(Table8[Ship Date]),1)=DATE(B2,MONTH(A2&0),1))*(Table8[Job Value]>=C2),""),SORT(FILTER(v,INDEX(v,,1)<>""),7))
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    05-11-2020
    Location
    Kansas City
    MS-Off Ver
    Office 365
    Posts
    201

    Re: Need help making this formula recognize YEAR when filtering data

    That works! Thank you.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: Need help making this formula recognize YEAR when filtering data

    Glad it worked, thanks for the rep!

+ 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. Tracking year on year reductions and filtering by year / company
    By Alex_PP in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-14-2023, 02:30 AM
  2. [SOLVED] Help with making a year Chart finish with formula
    By dodde in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-07-2023, 02:26 AM
  3. [SOLVED] Filtering data and making a new column
    By Kdot in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2017, 05:45 PM
  4. [SOLVED] Making Daily Sales Planner recognize which month and which week to pull sales data from
    By Topher53180 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2014, 10:33 AM
  5. Making VBA Code more efficient -Filtering Data
    By greg_c in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-01-2012, 10:45 PM
  6. Make excel formula recognize month and current year
    By Captain Carrot in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-23-2009, 12:13 PM
  7. Making excel recognize Street =ST.
    By rdubya in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-31-2007, 02:58 PM

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