You are reading a single comment by @aggi and its replies. Click here to read the full conversation.
  • I'm trying to return results using FILTER with two criteria and getting in a muddle.

    What I want:

    When 'unique id' = cell BK1 and 'location' = cell bk2, then show me all the 'products' which match that criteria from sheet 1, column h

    CHATGPT has saved the day (with a bit of editing)

    =FILTER(Sheet1!$H$1:$H$1000, (Sheet1!$A$1:$A$1000=Sheet2!BK1)*(Sheet1!$B$1:$B$1000=Sheet2!BK2), "")

    It only just occurred to me to tell it to have another crack using the FILTER function.

  • Yep * does an AND condition and + does an OR condition with FILTER.

    You have to be careful to encase each condition in brackets (easy to forget as when you use a single condition it doesn't need to be in brackets).

About

Avatar for aggi @aggi started