+ Reply to Thread
Results 1 to 23 of 23

Merging formulas into bigger filter with multiple conditions

  1. #1
    Registered User
    Join Date
    01-23-2023
    Location
    Amsterdam
    MS-Off Ver
    O365 (MAC) 16.7 (23031200)
    Posts
    11

    Merging formulas into bigger filter with multiple conditions

    Hi,

    I suspect a simple question, but answer I can't find yet.

    I want to merge these formulas:

    =ALS(E3=43;FILTER(Actions!B2:D29;Actions!B2:B29='Operator 1'!D3;" "))
    =ALS(E4=43;FILTER(Actions!B2:D29;Actions!B2:B29='Operator 1'!D4;" "))

    Such that the values are displayed below each other.

    What to do:
    If E3=43, then it should filter Actions!B2:D29 for the values where B2:B29 equals 'Operator 1'!D3. The same for E4 with Actions!B2:B29='Operator 1'!D4;. And actually this should continue up to E29.

    If I merge them together as: =ALS(E3=43;FILTER(Actions!B2:D29;Actions!B2:B29='Operator 1'!D3;" ");IF(E4=43;FILTER(Actions!B2:D29;Actions!B2:B29='Operator 1'!D4;" ")))

    Then it only returns the filter result of the first function. Tried all sorts of things, but without help it doesn't seem to work.

    Pop_voor_TL_maken.xlsm
    Last edited by Pantoffol; 03-23-2023 at 06:01 AM.

  2. #2
    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
    44,457

    Re: Merging formulas into bigger filter with multiple conditions

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    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


  3. #3
    Registered User
    Join Date
    01-23-2023
    Location
    Amsterdam
    MS-Off Ver
    O365 (MAC) 16.7 (23031200)
    Posts
    11

    Re: Merging formulas into bigger filter with multiple conditions

    Done! . Thanks.

  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,054

    Re: Merging formulas into bigger filter with multiple conditions

    I do not see E3 or E4 with a value of 43.... where is the formula? Where are the values of 43?????
    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

  5. #5
    Registered User
    Join Date
    01-23-2023
    Location
    Amsterdam
    MS-Off Ver
    O365 (MAC) 16.7 (23031200)
    Posts
    11

    Re: Merging formulas into bigger filter with multiple conditions

    Well, the values 43 have been made white text to hide. Forget to mention that part. They are calculated with the function InteriorColor. But you may also note a hard 43 to test a formula. I took out my own formula as it did not work out. Does not matter where it goes, for now only need to figure out a way to do it.

  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,054

    Re: Merging formulas into bigger filter with multiple conditions

    So we were looking for an invisible number!!!! No wonder I couldn't find it.

    I'll make ONE guess. If this is incorrect, please add your expected answers, manually calculated IN the file.

    =FILTER(Acties!B2:D29,(Acties!B2:B29='Operator 1'!D3)+(Acties!B2:B29='Operator 1'!D4))

    see file.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-23-2023
    Location
    Amsterdam
    MS-Off Ver
    O365 (MAC) 16.7 (23031200)
    Posts
    11

    Re: Merging formulas into bigger filter with multiple conditions

    Sorry for that Glenn. Just looking for help from the experts here.

    Let me pick row 2 as an example.

    If E3 contains '43', then filter Acties!B2:D29 with condition Acties!B2:B29='Operator 1'!D3.

    That should also be for: If E4 contains '43', then filter Acties!B2:D29 with condition Acties!B2:B29='Operator 1'!D4.

    So in the file attached, if E2 contains '43' and E3 does not, it should return:
    Attachment 822870

    If E3 contains '43' and E2 does not, it should return:
    Attachment 822872

    If they both contain '43' it should return:
    Attachment 822873



    File:Pop_voor_TL_maken (1) (1).xlsm

  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,054

    Re: Merging formulas into bigger filter with multiple conditions

    OK. Try this:

    =LET(A,Acties!B2:D29,B,IF(E2=43,FILTER(A,INDEX(A,,1)='Operator 1'!D3)),C,IF(E3=43,FILTER(A,INDEX(A,,1)='Operator 1'!D4)),D,VSTACK(B,C),FILTER(D,INDEX(D,,1)<>FALSE))
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-23-2023
    Location
    Amsterdam
    MS-Off Ver
    O365 (MAC) 16.7 (23031200)
    Posts
    11

    Re: Merging formulas into bigger filter with multiple conditions

    You are truly amazing! And if I want to extend this with more rows in the same way, how do I adjust the formula? What do I need to add?

  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,054

    Re: Merging formulas into bigger filter with multiple conditions

    Original (modified slightly - red)

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    To add a 3rd row (purple):

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Clear??

    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.

  11. #11
    Registered User
    Join Date
    01-23-2023
    Location
    Amsterdam
    MS-Off Ver
    O365 (MAC) 16.7 (23031200)
    Posts
    11

    Re: Merging formulas into bigger filter with multiple conditions

    Very clear!

    Will add reputation and mark it as solved. Thanks also for the feedback on the way of posting the question. Will keep those in mind next time.

  12. #12
    Registered User
    Join Date
    01-23-2023
    Location
    Amsterdam
    MS-Off Ver
    O365 (MAC) 16.7 (23031200)
    Posts
    11

    Re: Merging formulas into bigger filter with multiple conditions

    Hi Glenn Kennedy,

    I do have an extra question. You may also now the answer to this, as you helped me out real good already. Let me try to explain.

    In my file, which I attach, you can double click to make cells in column D green on the page 'Operator 1'. Upon doing that, it will give the color code in cell E which equals to '43' (I made sure it is unhidden haha). On takenlijst it now shows the filter of 'Acties' column B,D and D based on the value in column D on page 'Operator 1'. So that works now.

    But, I want to add something. On the page 'Operator 1' column B and C are also filled. I want it to place that before the filtered result on the page 'Takenlijst'.

    So for example: if D3 on 'Operator 1' is made green, on takenlijst it should filter B:D of "Acties" for values of which B equals to D on 'operator' ánd add 'Branchekennis' and 'Automotive' before each of these rows.

    Don't know if I am asking to much.

    Pop_voor_TL_maken GK2 2.xlsm

  13. #13
    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,054

    Re: Merging formulas into bigger filter with multiple conditions

    OK. I may have completely misunderstood what you're doing.

    But...

    I do not see why you are highlighting 1 op 1 training in green 3 times. It is merely repeating the same results. Look at YOUR file. There are 18 rows, 3 blocks of 6 repeated rows.

    Is that REALLY what you wanted???

    Now look at this file. It doesn't have the Branchekennis & Automotive yet...BUt, I think it may be closer to what you actually want.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    01-23-2023
    Location
    Amsterdam
    MS-Off Ver
    O365 (MAC) 16.7 (23031200)
    Posts
    11

    Re: Merging formulas into bigger filter with multiple conditions

    Well, you are partially right. It is the combination with the values in column B&C on 'Operator 1' that makes it unique.

    Here's the thing.

    A reviewer indicates on 'Operator 1' the action to be performed for each part. So, let's take the first one as an example:

    That is industry knowledge & automotive. An evaluator can select up to three actions there: 1 on 1 training, create assignment and create video training. If a value is selected, the actions that belong to it and are on the 'actions' sheet must be placed on the task list sheet. But for that the values in columns B & C of the sheet 'Operator 1' must be placed. Because that makes them unique.

    Hope this explains a bit.

  15. #15
    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,054

    Re: Merging formulas into bigger filter with multiple conditions

    Uff. Indigestion overnight led to me thinking about this one for far too long.... Eventually inspiration struck!!

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See file.
    Attached Files Attached Files

  16. #16
    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
    44,457

    Re: Merging formulas into bigger filter with multiple conditions

    Indigestion overnight …
    TMI, Glenn

  17. #17
    Registered User
    Join Date
    01-23-2023
    Location
    Amsterdam
    MS-Off Ver
    O365 (MAC) 16.7 (23031200)
    Posts
    11

    Re: Merging formulas into bigger filter with multiple conditions

    Guess I have to thank you and indigestion, because you are a true hero! Can't thank you enough. Now I will spend some hours trying to understand what you did.

  18. #18
    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,054
    Quote Originally Posted by TMS View Post
    TMI, Glenn
    Black pudding, scallops and bacon...

  19. #19
    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
    44,457

    Re: Merging formulas into bigger filter with multiple conditions

    No, really TMI

  20. #20
    Registered User
    Join Date
    01-23-2023
    Location
    Amsterdam
    MS-Off Ver
    O365 (MAC) 16.7 (23031200)
    Posts
    11

    Re: Merging formulas into bigger filter with multiple conditions

    If I however try to replicate it, it says invalid formula and it points to the MAP part of the formula. While it is working in the part you put in there. Any idea why?

  21. #21
    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,054

    Re: Merging formulas into bigger filter with multiple conditions

    Please update your profile (model it on mine) using the information that you see on your account page.
    Attached Images Attached Images

  22. #22
    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,054

    Re: Merging formulas into bigger filter with multiple conditions

    I've checked online. You are using a Mac and have almost the most up-to-date version of O365 for the Mac.

    As far as I can see, there >>should<< be no problem. So... I need to see a file where it does NOT work for you.

  23. #23
    Registered User
    Join Date
    01-23-2023
    Location
    Amsterdam
    MS-Off Ver
    O365 (MAC) 16.7 (23031200)
    Posts
    11

    Re: Merging formulas into bigger filter with multiple conditions

    Updated Glenn, sorry for that.

    Actually it is the exact file you send me, but I will resend it. If I copy the formula and place it below in empty space, it says invalid formula.

    Pop_voor_TL_maken GK3.xlsm

+ 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 Formula with multiple conditions
    By mstgier in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-25-2022, 03:54 PM
  2. [SOLVED] Both formulas return same number, but one is bigger than the other. How to fix?
    By 80Wil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2017, 10:26 PM
  3. how to include multiple conditions in filter for vb
    By vimalanathk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-18-2016, 12:33 AM
  4. how to include multiple conditions in filter for vb
    By vimalanathk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2016, 01:58 AM
  5. [SOLVED] Merging multiple workbook values instead of formulas
    By angminer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2015, 10:44 AM
  6. COUNTIF with multiple conditions and filter
    By danriley22 in forum Excel General
    Replies: 5
    Last Post: 07-15-2008, 04:49 PM
  7. Replies: 4
    Last Post: 09-28-2005, 07:05 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