+ Reply to Thread
Results 1 to 19 of 19

Filter function not working correctly.

  1. #1
    Registered User
    Join Date
    01-20-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    87

    Filter function not working correctly.

    Excel 2010.

    Never had this occur previously:

    I copied and pasted the data in this workbook from another workbook.

    I select "Filter" for a column (the following happens regardless of which column I select in this worksheet).

    E.g., the cells in the column state either "Y" or "N".

    I select only "Y" in the filter.

    Every cell in that column changes to "Y".

    Anotherwords, instead of only showing me the "Y"s which were there and filtering out the "N"s, it changes all the "N"s to "Y"s and the pre-existing "Y"s remain such.

    If I go back to the filter having everything checked ("Select all"), all the cells go back to having the correct data again.

    ??
    Last edited by ununio; 01-20-2018 at 05:19 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Filter function not working correctly.

    Hello & Welcome to the Forum,

    Doesn't make much sense to me either. Can't see why your cells are changing automatically unless there is some code in the workbook.

    Right click the sheet in question and select view code. Is there anything there?

    http://www.rondebruin.nl/win/code.htm

    If not, maybe you should post the offending workbook so we can see what's going on!

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Last edited by jeffreybrown; 01-20-2018 at 05:24 PM.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    01-20-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    87

    Re: Filter function not working correctly.

    Wow, you are fast! I'm impressed.

    Will check for code as you suggest.

    Thank you.

  4. #4
    Registered User
    Join Date
    01-20-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    87

    Re: Filter function not working correctly.

    "Right click the sheet in question and select view code. Is there anything there?"

    I'm not seeing a "View Code" option.

    The workbook is open and I tried right clicking on empty cells and on filled cells in the row in question, but don't see that option.

    Excel 2010.

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Filter function not working correctly.

    Sorry, right click the sheet tab.

  6. #6
    Registered User
    Join Date
    01-20-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    87

    Re: Filter function not working correctly.

    Quote Originally Posted by jeffreybrown View Post
    Sorry, right click the sheet tab.
    No, not showing code.

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Filter function not working correctly.

    Seems like the next step is to see what you are working with.

  8. #8
    Registered User
    Join Date
    01-20-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    87

    Re: Filter function not working correctly.

    At least if I'm interpreting the "View Code" page correctly - There is no formula showing nor any text in the large main sections of the page.

    I'm going to try making a copy of the workbook.
    Also cut and paste the data in that row into another book, then paste it back and making sure which paste method I'm using.

    Appreciate your help and the prompt responses.

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Filter function not working correctly.

    Yes, If you look at the link posted in post #2, it will explain about the code window.

  10. #10
    Registered User
    Join Date
    01-20-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    87

    Re: Filter function not working correctly.

    If I can't solve it in those ways, will follow your suggestion and post the workbook.

    I think instead of desensitizing the sheet, will simply remove all except the data in that one row (Just "Y" and "N").

    Did a search for Desensitizing the data, looks a bit complex and I guess unnecessary if I remove all but that row.

  11. #11
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Filter function not working correctly.

    We just don't want you to post any personal information. Address, social security numbers, bank account numbers etc. Basically data about people who would not be happy to know you are posting information about them.

  12. #12
    Registered User
    Join Date
    01-20-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    87

    Re: Filter function not working correctly.

    Here's a copy of the workbook - I've deleted all but one column but it does what I described.

    The material was copied and pasted into the workbook - the originals came from a workbook where many of the columns did have a formula but this is from a column which shouldn't have had one.

    Thank you for your help.

    I just checked an earlier workbook which had data copied and pasted into it from the same source,and that workbook also has the same problem.

    [Having some trouble with the site uploading the sheet - working on it]
    Last edited by ununio; 01-26-2018 at 01:02 AM.

  13. #13
    Registered User
    Join Date
    01-20-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    87

    Re: Filter function not working correctly.

    I'm going to "Go Advanced", "Manage Attachments" and Browsing, selecting the file from my computer, and "Upload".
    It then showed it a few inches below as "Attachment" or "File Attached" - something like that.
    So I clicked on "Close this page" but it then logs me out.

    When I try to log back in it keeps rejecting me until I clear cache and cookies. When I'm logged back in I see that the worksheet is not attached to my post.

    Have gone thru that cycle 4 times now.

    ???
    Last edited by ununio; 01-26-2018 at 01:03 AM.

  14. #14
    Registered User
    Join Date
    01-20-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    87

    Re: Filter function not working correctly.

    Changed browsers - will try here.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    01-20-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    87

    Re: Filter function not working correctly.

    Figured out the download.

    You can see that with Row A - apply filter, uncheck "All" and leave only e.g. "nhl" that all cells become "nhl" instead of it filtering out everything but "nhl".

  16. #16
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Filter function not working correctly.

    I'm still not seeing what you are seeing. A little confused honestly.

    There are 564 records. I turn on the filter and select "only" nhl. I get 203 of 564 records found.

    I then clear the filter and now I'm back to 564 records. If I "deselect" nhl and leave everything else checked I get 361 of 564 records found.

    All records remain as is. BTW, on the file you posted not sure why you had row 2 blank.

  17. #17
    Registered User
    Join Date
    01-20-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    87

    Re: Filter function not working correctly.

    I see what the problem was - it was an error on my part.
    Thanks for all the help.

    BTW - Very impressed with this forum.
    Excellent help and prompt as well.
    I only wish all forums had someone of your quality.

    Thanks again.
    Last edited by ununio; 01-26-2018 at 02:40 PM.

  18. #18
    Registered User
    Join Date
    01-20-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    87

    Re: Filter function not working correctly.

    I see some of the thread titles say [Solved].
    I don't see how to mark that but it is solved - feel free to label it that yourself if you would like.

  19. #19
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Filter function not working correctly.

    Thanks for the comments and you are very welcome. Come back anytime.

    To mark as solved, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Why is this If Function not working correctly
    By trying-my-best in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-17-2017, 12:48 PM
  2. IF function not returning expected result
    By kapeller in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-21-2014, 10:12 AM
  3. [SOLVED] Using the Split function with another function incorporated is not working correctly
    By highlystrung in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2013, 03:51 PM
  4. If function not working correctly
    By lsbeuk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2011, 09:26 PM
  5. Advanced filter code not working correctly
    By dcwat in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-11-2007, 09:25 AM
  6. Macro =sum function not working correctly
    By crowdx42 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-21-2006, 12:47 AM
  7. Lookup function still not working correctly
    By Mike K in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 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