Consulting

Results 1 to 3 of 3

Thread: Finding wildcards in indexing and aggregate functions.

  1. #1
    VBAX Regular
    Joined
    Mar 2023
    Posts
    28
    Location

    Finding wildcards in indexing and aggregate functions.

    Hello again guys,

    I hope you are all well.

    I'm struggling with this piece of code, I can't seem to find wildcards within lists, only exact values.

    I need to return all the values located in C with the specific value, in this case "Extrusion", located in D. However, the cell might contain such lines as "Extrusion, Lamination, Mixing"

    When I add the wildcard *, it wont work. Is there another way of doing this?


    HTML Code:
    =IFERROR(INDEX($C$2:$C$500,AGGREGATE(15,6,(1/($B$2:$B$500="Extrusion"))*ROW($C$2:$C$500)-ROW($A$2)+1,ROW(A2))),"")

    Many thanks,

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    =IFERROR(INDEX($C$2:$C$500,AGGREGATE(15,6,(1/ISNUMBER(SEARCH("Extrusion",$B$2:$B$500)))*ROW($C$2:$C$500)-ROW($A$2)+1,ROW(A2)-1)),"")
    ?
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    VBAX Regular
    Joined
    Mar 2023
    Posts
    28
    Location
    Wow! Thanks for this, it worked a treat!

    Thank you so much!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •