+ Reply to Thread
Results 1 to 7 of 7

Need A way to filter out a specific value

  1. #1
    Registered User
    Join Date
    04-03-2016
    Location
    World
    MS-Off Ver
    2010
    Posts
    22

    Need A way to filter out a specific value

    I have a data set. I need to find a way to remove the "Y" result from this formula when the User is the same
    Please Login or Register  to view this content.

    A B C
    Account Date User
    1234567899 05/13/2017 123456
    1234567899 05/14/2017 123456
    1234567899 05/14/2017 123455
    5555555555 05/15/2017 123870
    4444444444 05/16/2017 130007

    any ideas?
    Last edited by DRW2011; 05-08-2018 at 03:57 PM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Need A way to filter out a specific value

    do you mean this?
    =IF(COUNTIFS(A$2:A2,A2,C$2:C2,">="&C2-7,C$2:C2,"<="&C2+7)=2,"","N")
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    04-03-2016
    Location
    World
    MS-Off Ver
    2010
    Posts
    22

    Re: Need A way to filter out a specific value

    I put the wrong formula, my mistake.

    Please Login or Register  to view this content.
    I'd need a condition to account for column C

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Need A way to filter out a specific value

    this?
    =IF(COUNTIFS(A$2:A2,A2,B$2:B2,">="&B2-7,B$2:B2,"<="&B2+7,$C$2:C2,C2)=2,"Y","N")
    or this without the "y"?
    =IF(COUNTIFS(A$2:A2,A2,B$2:B2,">="&B2-7,B$2:B2,"<="&B2+7,$C$2:C2,C2)=2,"","N")

  5. #5
    Registered User
    Join Date
    04-03-2016
    Location
    World
    MS-Off Ver
    2010
    Posts
    22

    Re: Need A way to filter out a specific value

    The blank doesn't work because it doesn't return repeat values
    and the one with "y" doesn't account for the user being the same

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Need A way to filter out a specific value

    I tested it out with repeating your values from your snapshot and it worked fine accounting for duplicate users.
    if it isn't working for you please post an actual sample (desensitized) with a sufficient sample AND the results you expect.
    I altered this one a little to account for where you have 3 or more values in the list that are dups but beyond that I cannot tell from your posts how it is that it isn't working.
    =IF(COUNTIFS(A$2:A2,A2,B$2:B2,">="&B2-7,B$2:B2,"<="&B2+7,$C$2:C2,C2)>=2,"Y","N")

  7. #7
    Registered User
    Join Date
    04-03-2016
    Location
    World
    MS-Off Ver
    2010
    Posts
    22

    Re: Need A way to filter out a specific value

    used the fomula in column D

    Account Date User 7day_Check
    1234567890 01/01/2018 123456 N
    1234567890 01/09/2018 123456 N
    1234567890 01/02/2018 123456 Y
    1234567891 01/01/2018 123456 N
    1234567892 01/02/2018 123457 N
    1234567893 01/03/2018 123458 N
    1234567894 01/04/2018 123459 N







    This Yes I want to be blank. I do not want a User to be able to draw a "Y" with the same User in this field

    if you need it in a workbook i can, just not near a computer now.
    Last edited by DRW2011; 05-08-2018 at 05:00 PM.

+ 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. Filter and Copy Specific Value
    By lilmosweet in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-16-2017, 10:41 PM
  2. need macro for filter in a specific row
    By Revathi kannan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2016, 07:09 PM
  3. [SOLVED] Filter listbox with specific parameters to find specific records
    By chin67326 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-25-2015, 10:26 PM
  4. How to remove specific filter using VBA?
    By vxs8122 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2014, 10:28 PM
  5. [SOLVED] How can I filter specific decimals?
    By jmcollis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2013, 02:27 PM
  6. Trying to filter out columns that contain a specific value (x)
    By wfolk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2013, 10:20 AM
  7. Excel 2007 : Filter for specific word
    By jennifert in forum Excel General
    Replies: 2
    Last Post: 11-28-2011, 08:57 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