+ Reply to Thread
Results 1 to 11 of 11

Filter Date Range

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-23-2015
    Location
    SG
    MS-Off Ver
    MS Excel 2019 & 365
    Posts
    241

    Filter Date Range

    Hi,

    Can anyone advise me how to ignore an N.A date in my filtering command?
    I would like only Tag Date with a date to be displayed. Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Filter Date Range

    Hi,

    I would use a single formula criteria cell to simplify the layout and exclude the N.A. values- I have set one up in the attached version of your workbook.
    Attached Files Attached Files
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Contributor
    Join Date
    02-23-2015
    Location
    SG
    MS-Off Ver
    MS Excel 2019 & 365
    Posts
    241

    Re: Filter Date Range

    Thanks Xlnitwit for solving my problem.

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Filter Date Range

    You're welcome.

  5. #5
    Forum Contributor
    Join Date
    02-23-2015
    Location
    SG
    MS-Off Ver
    MS Excel 2019 & 365
    Posts
    241

    Re: Filter Date Range

    Hi Xlnitwit,

    My original Criteria formula will display the information with "N.A" date even the serial number isn't in the search list.
    Is it possible to have the "N.A" data ONLY when the serial number is in the search list?

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Filter Date Range

    Do you only want N.A. for those results, or the other matching dates as well?

  7. #7
    Forum Contributor
    Join Date
    02-23-2015
    Location
    SG
    MS-Off Ver
    MS Excel 2019 & 365
    Posts
    241
    Quote Originally Posted by xlnitwit View Post
    Do you only want N.A. for those results, or the other matching dates as well?
    Yes, I want the N.A and other matching dates for s/no in the search list.

  8. #8
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Filter Date Range

    Isn't that what you had to start with?

  9. #9
    Forum Contributor
    Join Date
    02-23-2015
    Location
    SG
    MS-Off Ver
    MS Excel 2019 & 365
    Posts
    241

    Re: Filter Date Range

    My initial code displayed those S/No with Tag Date N.A which are not in the search list.
    For e.g. 0087 and 00263 was input to search for the info.
    But 00239, 00203 and 00237 also appeared as they have the Tag Date of "N.A".

    Capture1.JPG
    Capture.JPG
    Attached Files Attached Files

  10. #10
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Filter Date Range

    Change the criteria formula in the previous workbook I posted to this
    =AND(ISNUMBER(MATCH('Sheet 1'!H6,$B$6:$B$14,0)),OR(AND('Sheet 1'!E6>=$F$2,'Sheet 1'!E6<=$G$2),'Sheet 1'!E6="N.A"))

  11. #11
    Forum Contributor
    Join Date
    02-23-2015
    Location
    SG
    MS-Off Ver
    MS Excel 2019 & 365
    Posts
    241

    Re: Filter Date Range

    Quote Originally Posted by xlnitwit View Post
    Change the criteria formula in the previous workbook I posted to this
    =AND(ISNUMBER(MATCH('Sheet 1'!H6,$B$6:$B$14,0)),OR(AND('Sheet 1'!E6>=$F$2,'Sheet 1'!E6<=$G$2),'Sheet 1'!E6="N.A"))
    Thanks Xlnitwit.
    It works. Appreciate 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] Macro to filter date range
    By Excel_Monkey in forum Excel General
    Replies: 15
    Last Post: 10-02-2014, 09:23 AM
  2. Date range filter
    By MyViolet4 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-08-2013, 02:13 PM
  3. Advanced filter by date range, international date format problem
    By Senator685 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2013, 08:16 AM
  4. Replies: 4
    Last Post: 10-10-2012, 03:38 PM
  5. Date Range filter
    By bruce_facit in forum Excel General
    Replies: 3
    Last Post: 07-18-2012, 06:44 AM
  6. [SOLVED] Date Filter based on Cell Input - single date or range of dates
    By babaloo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2012, 10:32 AM
  7. Filter several pivot tables by one programmed date range filter in Excel 2003
    By olewka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2011, 11:49 AM
  8. Filter By Date Range
    By AcesUp in forum Excel General
    Replies: 3
    Last Post: 08-23-2005, 04:13 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