+ Reply to Thread
Results 1 to 5 of 5

Row filtering negatively impacted by cell formatting

  1. #1
    Registered User
    Join Date
    03-23-2016
    Location
    Boston, Massachusetts, US
    MS-Off Ver
    2013
    Posts
    2

    Question Row filtering negatively impacted by cell formatting

    I have Excel 2010. My spreadsheet has a filtered table of values. The cells are formatted to show no decimal places. For example, as I expect, a cell with the value 0.01 displays 0. When, I filter a column to exclude cells with a value of 0, the row with the value .01 is also excluded. How can I get around this without formatting the cell to 2 decimal places? Thank you in advance for any suggestions.

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Row filtering negatively impacted by cell formatting

    Instad of using filter perhaps you could hide rows instead? A macro like this will ignore number formating.

    Please Login or Register  to view this content.
    Or you add a helper column where formated numbers are multiplied by 10 and you filter the helper column.



    Alf
    Last edited by Alf; 03-24-2016 at 03:17 AM.

  3. #3
    Registered User
    Join Date
    03-23-2016
    Location
    Boston, Massachusetts, US
    MS-Off Ver
    2013
    Posts
    2

    Re: Row filtering negatively impacted by cell formatting

    thank you for the suggestions. I still find it odd that the format of the cell would override its value.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Row filtering negatively impacted by cell formatting

    I still find it odd that the format of the cell would override its value
    Yes I agree with you, could that be the old principle of "WYSIWYG" i.e. "What You See Is What You Get" still lingers?

    what I really would like to do would be to set up an autofilter with two criterias

    1 cell should be 0 and
    2 function Len(cell) = 1 (for 0.1 the Len value would be 3)

    but my autofilter knowhow is not up to the "Len(cell)" part. Perhaps another forum member may have a solution to that.

    Alf

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Row filtering negatively impacted by cell formatting

    You can do a Filter > Number Filter > Does not equal > 0
    That seems to filter based on whole number
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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. Conditional Formatting and Filtering
    By eoghanmolloy in forum Excel General
    Replies: 1
    Last Post: 05-07-2014, 04:34 AM
  2. Help with Filtering Conditional Formatting
    By amandak in forum Excel General
    Replies: 5
    Last Post: 01-24-2014, 12:41 PM
  3. Conditional Formatting After Filtering?
    By EzRouter in forum Excel General
    Replies: 0
    Last Post: 04-17-2012, 10:43 AM
  4. [SOLVED] Help with Advanced Filtering/Data Formatting
    By Benrenicus in forum Excel General
    Replies: 3
    Last Post: 06-07-2011, 11:23 AM
  5. Charts driven by code are not governed by code nor impacted by it?
    By CaptainSeven in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-15-2010, 04:29 AM
  6. expressing minutes negatively
    By DJ in forum Excel General
    Replies: 3
    Last Post: 03-14-2006, 02:10 PM
  7. conditional formatting when filtering
    By be_insane in forum Excel General
    Replies: 10
    Last Post: 11-02-2005, 06:17 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