+ Reply to Thread
Results 1 to 14 of 14

Column filter strangeness

  1. #1
    Registered User
    Join Date
    12-31-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 365
    Posts
    5

    Column filter strangeness

    I have a really frustrating and weird thing occurring with an excel spreadsheet that I use. In it I paste typically 650 rows
    of financial data across a number of columns and this data is pasted as "values". Subsequent columns use this
    numeric data to calculate other numeric values. All column cells (source and calculated data) are formatted as
    currency,percentage or numeric and column filtering is enabled on all columns.

    Now, if I paste 497 or more rows of source data, and filter the calculated data columns, I have the option
    to filter on Greater than, Less than etc so this means this data are seen as numeric "values"

    However, if I paste 496 rows or less, the column filter shows me options such as Equals, Does not equal, Begins with etc
    which I assume means the column data are seen as text.

    I've checked the formatting of each numeric cell in a row and they are all formatted as numeric in one form or another
    (ie. Currency, Numeric, Percentage as required) and all show valid values.

    As a test, I pasted 650 rows of data and then deleted 155 rows in the middle of the data (so 496 rows in total with a
    big gap in the middle) and this also caused the issue with the filter seeing the data as text. Adding one row of data
    at random into one of these deleted rows caused the filter to then show the column as numeric!

    I'm at a loss to understand why this is occurring or even how to debug the problem. Has anyone struck this kind of issue before?

    I'm running Excel 365 locally on a Mac but the same thing occurs using Excel 365 on a Windows PC.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,968

    Re: Column filter strangeness

    Welcome to the Forum webregs!

    I have never heard of a problem like this. The unusual part is that the problem does not exist until you delete rows.

    But just because the display format is numeric does not mean that the data is numeric. I suspect this is related to your source data. Where are you copying the data from that you are pasting in here?

    Can you attach a sample file that shows this problem? Since the problem occurs with 496 or fewer rows, you could just show us one row.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,933

    Re: Column filter strangeness

    Administrative Note:

    Welcome to the forum.

    Is your forum profile up-to-date and showing ONLY the oldest Excel PRODUCT that you are using?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The four most recent Excel products are Excel 2019, Excel 2021, Excel 2024 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: Column filter strangeness

    I stumbled across this issue recently and discovered what appears to be a simple rule controlling the type of Filter option presented based on the data.

    If more than 50% of the values are numeric then you get the numeric option.

    Try this very simple data set. Check the filter option and then change the value to text and check again.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,968

    Re: Column filter strangeness

    That is an interesting "feature". It further suggests to me that the OP is pasting in some text and some numeric data.

  6. #6
    Registered User
    Join Date
    12-31-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 365
    Posts
    5

    Re: Column filter strangeness

    6StringJazzer. To respond to your comments, I had checked my source data and confirmed it was numeric, and in fact it wasn't exhibiting the same issue. I should have mentioned this.

    However, I think I've found what the problem is but both can't understand why nor figure out how to resolve it.

    The problem is caused by my use of the =IF(ISBLANK(xy),"",xy) statement in each of the calculated cells. I use this to avoid having columns of 0.00 values in calculated cells where source data doesn't exist. Replacing this with a straight reference to the source data (ie. =xy) causes the filter to work as expected.

    It's weird that this problem is resolved by adding a single row to the source data. eg. if I copy/paste to source data in row 497 the filter options change to numeric.

    It doesn't seem the same as the anomaly Andy identified since with 406 rows of data, all subsequent cells are empty but obviously something triggers with 497 rows of data (such a strange/random number to trigger on?) And the strangeness keeps on coming. If I recreate one of the calculated columns from scratch (ie. same formula) elsewhere on the sheet, this issue doesn't arise. But if I copy/paste one of the columns exhibiting this problem the issue DOES carry over.

    In any case the solution now is to replace =IF(ISBLANK(xy),"",xy) with something else that doesn't cause this problem. Any thoughts welcome.

    PS. I was going to attach a much cut down spreadsheet with enough data in it to exhibit the problem how ever I don't have posting permission for attachments.
    Last edited by AliGW; 11-17-2024 at 04:44 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead. Please review the forum guidelines.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,427

    Re: Column filter strangeness

    Personally, I’d go with
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    but I don't know if that will help or hinder.

    Whatever, a null value ( "" ) will be treated as text.

    With cells A1 and B1 empty, compare the results:

    PHP Code: 
                TRUE    =IF(A1&B1="","",A1+B1)    =ISTEXT(C1)
            
    0    FALSE    =IF(ISBLANK(A1&B1)="","",A1+B1)    =ISTEXT(C2)
            
    0    FALSE    =IF(AND(ISBLANK(A1),ISBLANK(B1))="","",A1+B1)    =ISTEXT(C3
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  8. #8
    Registered User
    Join Date
    12-31-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 365
    Posts
    5

    Re: Column filter strangeness

    Yes, I can see that using the "" was causing the problem but it leaves me with the issue now that replacing
    =IF(ISBLANK($A9),"",$C9) with =IF(ISBLANK($A9),,$C9) gives me columns of 0.00 or $ - entries which cause other
    filtering issues. For example, if I sort a column with rows of 0.00 into ascending order then I get all those 0.00
    rows showing at the top of my list. I have a workaround I can use but it's still very messy.

    It also doesn't explain why having more than 496 rows changes the filter from seeing text to seeing numeric.

    Anyway, a problem for another day.
    Last edited by AliGW; 11-17-2024 at 04:44 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead. Please review the forum guidelines.

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,968

    Re: Column filter strangeness

    Quote Originally Posted by webregs View Post
    I don't have posting permission for attachments.
    You definitely have permission for attachments--every user does. What are you seeing that says otherwise? There is a size limit.


    Filetype
    Max File-size
    bmp
    100.0 KB
    csv
    1,000.0 KB
    doc
    1,000.0 KB
    docm
    1,000.0 KB
    docx
    1,000.0 KB
    gif
    100.0 KB
    jpe
    100.0 KB
    jpeg
    9.77 MB
    jpg
    9.77 MB
    pdf
    9.77 MB
    png
    9.77 MB
    txt
    100.0 KB
    xls
    1,000.0 KB
    xlsb
    9.77 MB
    xlsm
    1,000.0 KB
    xlsx
    1,000.0 KB
    zip
    9.77 MB
    Sheet3

  10. #10
    Registered User
    Join Date
    12-31-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 365
    Posts
    5

    Re: Column filter strangeness

    In the FAQ it says "below the message box, you will find a button labelled 'Manage Attachments'. Clicking this button will open a new window for uploading attachments" but I don't have this button. It also says I need to not use Quick Reply but this is the only reply option I get when I click Reply or Reply with Quote so I assumed I don't have permission.
    Last edited by AliGW; 11-17-2024 at 04:43 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead. Please review the forum guidelines.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,933

    Re: Column filter strangeness

    Look at the QUICK REPLY box below and take your eyes to the right of it, then look down. The GO ADVANCED button is there. Click it and than scroll down to MANAGE ATTACHMENTS.

    NOBODY does not have permission to post an attachment.

  12. #12
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,968

    Re: Column filter strangeness

    The yellow banner at the top of every page also explains this.

  13. #13
    Registered User
    Join Date
    12-31-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 365
    Posts
    5

    Re: Column filter strangeness

    Quote Originally Posted by AliGW View Post
    Look at the QUICK REPLY box below and take your eyes to the right of it, then look down. The GO ADVANCED button is there. Click it and than scroll down to MANAGE ATTACHMENTS.

    NOBODY does not have permission to post an attachment.
    Ahh, thanks. I'll know next time.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,933

    Re: Column filter strangeness

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered 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. MSForms Command Button Strangeness.
    By RASelkirk in forum Excel General
    Replies: 0
    Last Post: 03-15-2022, 03:39 PM
  2. [SOLVED] Strangeness when randomizing a column of text
    By Pallando_II in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-23-2016, 04:17 PM
  3. Can't undo paste and other strangeness
    By zerozero in forum Excel General
    Replies: 8
    Last Post: 05-26-2011, 05:49 AM
  4. Insert Row Formula Strangeness
    By Cavar in forum Excel General
    Replies: 9
    Last Post: 10-28-2006, 10:11 PM
  5. Conditional formatting strangeness
    By duncan79 in forum Excel General
    Replies: 5
    Last Post: 05-18-2006, 12:10 AM
  6. Conditional formatting strangeness
    By christopherp in forum Excel General
    Replies: 13
    Last Post: 03-06-2006, 08:55 AM
  7. Strangeness with times
    By ANDREW45 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2005, 09:41 AM

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