+ Reply to Thread
Results 1 to 16 of 16

Filter-proof equations

  1. #1
    Registered User
    Join Date
    08-12-2019
    Location
    Bristol
    MS-Off Ver
    365
    Posts
    6

    Question Filter-proof equations

    I have a file with multiple sheets, on one sheet I want each row to sum specific rows in a different sheet.
    However, any time anyone filters either the source sheet or the output sheet all the sums break.

    Also have tried turning the filters off, but the option is greyed out.

    1. How do I reinstate the filter option in the toolbar so I can get rid of them? (and lock it again once I've removed)
    2. How do I lock the calcs so they are unaffected by filters?

    TIA

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Filter-proof equations

    Welcome to the forum.

    1. Unprotect the sheet and make your changes.
    2. Impossible to answer without knowing what the formulae are.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-12-2019
    Location
    Bristol
    MS-Off Ver
    365
    Posts
    6

    Re: Filter-proof equations

    Thanks for your quick reply Ali, however the workbook is not protected.

    Indicative Formula in the output file is =SUM(Sourcefile!H2:H5)

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Filter-proof equations

    OK - we are going to need to see the workbook.

    Will you please attach a small sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment (it hasn't worked for years, and despite our repeatedly asking the technical team who own the forum to fix it, they can't be bothered to do so), so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.

  5. #5
    Registered User
    Join Date
    08-12-2019
    Location
    Bristol
    MS-Off Ver
    365
    Posts
    6

    Re: Filter-proof equations

    Hopefully this works
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Filter-proof equations

    Explain these results:

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    1
    Reference Weight installed % complete
    2
    HZX456
    2.7
    47
    3
    HRK367
    4.15
    56
    Sheet: Output

    What's the logic here?

    Your data layout on the source sheet is poor - are you prepared to rearrange it to make your work easier?

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filter-proof equations

    Quote Originally Posted by HRTTW View Post
    However, any time anyone filters either the source sheet or the output sheet all the sums break.

    Also have tried turning the filters off, but the option is greyed out.



    TIA
    Please explain how filtering either sheet breaks the formulae on the output sheet
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  8. #8
    Registered User
    Join Date
    08-12-2019
    Location
    Bristol
    MS-Off Ver
    365
    Posts
    6

    Re: Filter-proof equations

    The sample is indicative of the formula but there is signification more other information that is irrelevant to this particular task. I'd love to rearrange the source sheet however this is a copy and paste export from a different programme, often a single reference will have more than 50 different 'fruit' within it and in time there will be thousands of references so the output is a summary sheet of all the different references so you can see installation progress at a glance. [I hate adopting other peoples systems ]

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Filter-proof equations

    In that case, you need to use PowerQuery to remodel the source data for you. Easily done!

    You need to answer Richard's question.

  10. #10
    Registered User
    Join Date
    08-12-2019
    Location
    Bristol
    MS-Off Ver
    365
    Posts
    6

    Re: Filter-proof equations

    The output sheet no longer references the correct cell.

    For example ( if you imagine there are way more lines in the source sheet) say you sorted the fruit into alphabetical order to make it easier to find the fruit you wanted to record, then the output file no longer references the right cell

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

    Re: Filter-proof equations

    You are going to need to come up with a sample workbook that demonstrates this with a sort done to show the effect. I am struggling to visualise what you are doing here.

  12. #12
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filter-proof equations

    Quote Originally Posted by HRTTW View Post
    The output sheet no longer references the correct cell.

    For example ( if you imagine there are way more lines in the source sheet) say you sorted the fruit into alphabetical order to make it easier to find the fruit you wanted to record, then the output file no longer references the right cell
    You started off by indicating your problem was cause by using the Filtering Functionality. Now you are talking about Sorting. You need to be quite clear.
    In any case sice your formulae refer to a total row, whether you filter or sort the data that total row will always be in the same place.

    In any case this is clearly a much simplified example and probably doesn't represent the size of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.

    Therefore as Ali has asked, please upload your real workbook (or at least a cut down copy), and manually add the results you expect to see. Clearly identify which is original data and which are the results and in a note clearly explain how you have arrived at your results and the steps you have taken when adding new or deleting old data.

  13. #13
    Registered User
    Join Date
    08-12-2019
    Location
    Bristol
    MS-Off Ver
    365
    Posts
    6

    Re: Filter-proof equations

    For security reasons I cannot upload my spreadsheet. Strings are not relevant as it's only the number's involved in the equations.

    Everyone seems to have got distracted from the original question: the little drop down arrows that exist on the header cells are locked on despite it being an unprotected document and I can't get rid of them to stop people trying to filter/sort/etc

    For the cell reference issue I'm just going to go through every cell and add $$

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

    Re: Filter-proof equations

    To get rid of the filter arrows, click on the data filter (funnel) icon on the Data ribbon to deselect it.

    If the original question was about the filter arrows, why did you distract us with a thread title about filter-proof equations (or formulae)?

    Good luck with your project.

  15. #15
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filter-proof equations

    Quote Originally Posted by HRTTW View Post
    For security reasons I cannot upload my spreadsheet. Strings are not relevant as it's only the number's involved in the equations.

    Everyone seems to have got distracted from the original question: the little drop down arrows that exist on the header cells are locked on despite it being an unprotected document and I can't get rid of them to stop people trying to filter/sort/etc

    For the cell reference issue I'm just going to go through every cell and add $$
    No, we were not losing sight of the question. You'd specifically mentioned formula breaking when someone filtered the source or output sheet.
    No. The formula DON'T change when you do that. That's why we asked for clarification. Formulae changing was a complete red herring and with respect you were causing a distraction not us.

    When we ask you to upload a workbook we expect you to desensitise any data first. I mentioned strings merely as an example of stuff that's often relevant when someone uploads a trivial workbook that isn't representative.

    I've no idea what you mean by go through every cell and add $$.
    We're quite happy to help further should you wish but need to understand precisely what you want.

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Filter-proof equations

    We're quite happy to help further should you wish but need to understand precisely what you want.
    I'm not on this occasion, I'm afraid.

+ 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] Looking to proof some code I added.
    By Nitro2481 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2016, 06:55 AM
  2. Proof that a column is sorted
    By ek56 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-15-2015, 07:08 AM
  3. [SOLVED] Proof between 2 tabs
    By elysse.nicole89 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-19-2015, 08:37 PM
  4. Future Proof - Expansion Buttons
    By batchy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2015, 10:00 AM
  5. [SOLVED] Mathematical proof
    By Pepe Le Mokko in forum The Water Cooler
    Replies: 7
    Last Post: 08-26-2014, 02:17 PM
  6. Filter and Copy selected cols to another w/s and add equations
    By ridwana in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-31-2009, 07:43 AM
  7. Proof of Calculation
    By jxw100 in forum Excel General
    Replies: 2
    Last Post: 10-30-2008, 01:56 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