+ Reply to Thread
Results 1 to 13 of 13

Function reacting with an table filter

  1. #1
    Registered User
    Join Date
    05-27-2021
    Location
    Strasbourg, France
    MS-Off Ver
    2010
    Posts
    28

    Question Function reacting with an table filter

    Hello to all,

    I would like to know if there is a function to display two values according to a filter in an table.

    I have attached an excel describing the need.

    In advance I thank you and wish you all a happy holiday season.

    Sincerely.

    Benten667
    Attached Files Attached Files
    Last edited by Benten667; 12-23-2022 at 11:26 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Function reacting with an table filter

    Try:
    =IF(SUMPRODUCT(($C$4:$C$8=C5)*(SUBTOTAL(103,OFFSET($C$4,ROW($C$4:$C$8)-ROW($C$4),0))))>0,"FV6","FV7")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    05-27-2021
    Location
    Strasbourg, France
    MS-Off Ver
    2010
    Posts
    28

    Re: Function reacting with an table filter

    You are a boss, thanks 1000x for the responsiveness!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Function reacting with an table filter

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Function reacting with an table filter

    Or try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Function reacting with an table filter

    Indeed, Hans!

  7. #7
    Registered User
    Join Date
    05-27-2021
    Location
    Strasbourg, France
    MS-Off Ver
    2010
    Posts
    28

    Re: Function reacting with an table filter

    Thank you for your answer also it works and it is shorter.

    Unfortunately for me the application in which I want to use this formula does not work.

    Indeed I filter through checkboxes with the values of the column in a window that I display via a button in vba (my original file is 30 tabs).

    I have the impression that filtering via a vba code does not activate the formula (?)

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Function reacting with an table filter

    Does mine work in your real sheet?

  9. #9
    Registered User
    Join Date
    05-27-2021
    Location
    Strasbourg, France
    MS-Off Ver
    2010
    Posts
    28

    Re: Function reacting with an table filter

    No unfortunately it's identical, the vba macro filter doesn't seem to work with the formula...

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Function reacting with an table filter

    I know virtually nothing about VBA... but certainly cannot tell without seeing the macro in a sample file.

  11. #11
    Registered User
    Join Date
    05-27-2021
    Location
    Strasbourg, France
    MS-Off Ver
    2010
    Posts
    28

    Re: Function reacting with an table filter

    I have attached a second excel to my initial post. You can see that with sorting on FV 1 or FV 31 in the second tab the function does not interact.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Function reacting with an table filter

    But... since, when you apply the filter you are KEEPING either FV1 or FV31.... the 8th row (with the formula) is being hidden... or am I missing the point?

  13. #13
    Registered User
    Join Date
    05-27-2021
    Location
    Strasbourg, France
    MS-Off Ver
    2010
    Posts
    28

    Re: Function reacting with an table filter

    Hello Glenn,

    Sorry for the late reply and happy new year 2023.

    The problem I am having with this is that the formula works in the second tab when you do a "manual" sort on the column.

    On the other hand, when we check in the box containing a vba code the "FV1" or the "FV31" the formula of the cell of the second tab does not apply and indeed the cell becomes hidden.

    I hope to have been clear in which case I remain always at disposal.

+ 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] Filter Table Function Excluding Columns from Another Table
    By philchi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-08-2022, 08:55 PM
  2. FILTER function using 2D matrix table
    By trent172 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-03-2021, 03:04 AM
  3. Charts not reacting although macro working following upgrade to Excel 2016
    By NannyNetty in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-14-2018, 04:40 AM
  4. Conditional formatting not reacting
    By saudi_red_neck in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-25-2014, 09:45 AM
  5. [SOLVED] MyAddin not Reacting
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-17-2012, 10:27 AM
  6. Replies: 5
    Last Post: 09-29-2005, 06:05 PM
  7. Can a pivot table function like data filter?
    By Tbal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2005, 09:01 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