+ Reply to Thread
Results 1 to 10 of 10

How to use advanced text filter and get the value of cell that are not in the results?

  1. #1
    Registered User
    Join Date
    04-01-2019
    Location
    Bengaluru
    MS-Off Ver
    2016
    Posts
    18

    How to use advanced text filter and get the value of cell that are not in the results?

    Hi,
    So what i'm trying to do is use advanced text filter in Col B for 'Block' and 'Reinstate'. But the corresponding dates when these actions were performed are given in the row below the row in which block and reinstate appears. I have attached a dummy excel for example.
    What i would like to do is get these dates in same row as the block and reinstate using some formula. Or if you guys have a better idea please let me know. I want to get the timeline of when the Block and Reinstate actions were taken.

    I want to wrap this up in a macro so that the data is filtered for Block and Reinstate with the dates showing.
    PS also if you guys can tell me if i can use more than 2 criteria in advanced text filter it would be awesome.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: How to use advanced text filter and get the value of cell that are not in the results

    Could you also please post the code you already created?

  3. #3
    Registered User
    Join Date
    04-01-2019
    Location
    Bengaluru
    MS-Off Ver
    2016
    Posts
    18

    Re: How to use advanced text filter and get the value of cell that are not in the results

    I haven't created any code yet.

  4. #4
    Registered User
    Join Date
    04-01-2019
    Location
    Bengaluru
    MS-Off Ver
    2016
    Posts
    18

    Re: How to use advanced text filter and get the value of cell that are not in the results

    Ok, so i have figured out how to use more than 2 filter criteria. So only problem left is how do i get the dates that are one row below the filtered rows :D

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: How to use advanced text filter and get the value of cell that are not in the results

    D2:

    =IF(SUM(COUNTIF(B2,{"block","reinstate"})),A3,"")

    then copy down.

  6. #6
    Registered User
    Join Date
    06-23-2019
    Location
    United States
    MS-Off Ver
    Outlook
    Posts
    6

    Re: How to use advanced text filter and get the value of cell that are not in the results

    Excel has a number of different ways to count cells, depending on what type of value is contained in those cells and whether the rows are hidden. No matter what criteria you specify for counting, there is likely a formula that will do it.

    COUNT, COUNTA and COUNTIF are the workhorses of cell counting. COUNT looks for cells containing numbers, while COUNTA just looks for cells that aren’t blank. COUNTIF lets you test cells to see if they should be counted. If you need more than one criteria to determine if a cell should be counted, then use either COUNTIFS and SUMPRODUCT

    SUBTOTAL and AGGREGATE (Excel 2010 and later) are unique in their ability to discriminate between rows that are hidden (either manually or by filters). AGGREGATE has the optional ability to ignore rows containing error values.

  7. #7
    Registered User
    Join Date
    04-01-2019
    Location
    Bengaluru
    MS-Off Ver
    2016
    Posts
    18

    Re: How to use advanced text filter and get the value of cell that are not in the results

    Thanks, jindon for that reply.
    I have got that working. But, i would like to search that Actions column, and get results ONLY for "Block" and "Reinstate". Right now its giving "TempBlock" as the result as well. Is there a way for me to get only the Exact search results.
    Edit: I was using advanced text search with criteria in one column and filtering action based on that column, but using your formula i'm getting exact results only. Much thanks.
    Last edited by ankitkraken; 06-25-2019 at 09:27 AM.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: How to use advanced text filter and get the value of cell that are not in the results

    Quote Originally Posted by ankitkraken View Post
    Right now its giving "TempBlock" as the result as well.
    That is not possible.

    It only matches to block or reinstate.

    Otherwise, I need to se your workbook.

  9. #9
    Registered User
    Join Date
    04-01-2019
    Location
    Bengaluru
    MS-Off Ver
    2016
    Posts
    18

    Re: How to use advanced text filter and get the value of cell that are not in the results

    Yes, its working fine now Thanks a lot
    I need one more help
    Please Login or Register  to view this content.
    I'm using the above code to goto the Reinstate cell if it is found, else give a msgbox that Reinstate is not found and goto the last visible cell in Col B, but i'm unable to do that. It is giving me an error. Can you help me with this. If you have a better way of accomplishing what i want to do that's welcome as well but this is the best i could come up with.

  10. #10
    Registered User
    Join Date
    04-01-2019
    Location
    Bengaluru
    MS-Off Ver
    2016
    Posts
    18

    Re: How to use advanced text filter and get the value of cell that are not in the results

    Hi, I got this code working, if you have a better way please let me know.
    Please Login or Register  to view this content.

+ 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] Advanced Filter Problem with results using numbers formatted as text
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-26-2019, 09:53 PM
  2. Replies: 6
    Last Post: 05-17-2018, 10:20 AM
  3. [SOLVED] Limit Advanced Filter results
    By no_Fate in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-06-2016, 03:57 AM
  4. Different results for Auto Filter and Advanced Filter
    By me20161130 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-01-2016, 09:02 AM
  5. Use macro and advanced filter to copy results to another location in next available cell?
    By lilvictorians in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-27-2012, 04:03 PM
  6. [SOLVED] Advanced Filter results don't match auto filter
    By WaterWings in forum Excel General
    Replies: 1
    Last Post: 09-13-2012, 05:37 PM
  7. [SOLVED] advanced filter - can't match a long text cell
    By simpsons_rule in forum Excel General
    Replies: 7
    Last Post: 05-14-2005, 06: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