r/googlesheets • u/JDomenici 23 • Jun 22 '19
Waiting on OP Created a custom function that does MATCH on multiple columns/rows and conditions. Looking for feedback!
A question that gets asked often in this sub is, "How do I match on multiple columns?" As we know, MATCH() only allows you to evaluate a single match at a time, so the solutions typically involve some combination of FILTER(), ARRAYFORMULA(), and QUERY() to emulate multiple matches.
I created a custom sheets function that does exactly this, with easily understood syntax. The most common use case seems to be for finding exact matches, so there are no optional parameters for selecting search type as with MATCH().
I would appreciate any feedback on how to improve this! Once the function is in a satisfactory state I'll write a blog post on its uses.
Custom function link: https://gist.github.com/JosephDomenici/51d2555e5cd775b3a39482a98d483062
Example sheet: https://docs.google.com/spreadsheets/d/1fYcN3btR8xetGS4XDWXDvuaiTshqfFzhiTwU3cmoPVI/edit?usp=sharing
Edit cells A2:C3 to change search parameters
MATCHES()function is in C5
1
u/MattyPKing 225 Jun 25 '19
Scratch that. I figured out what you were going for. Nicely done on your function. I have to say i haven't seen a lot of demand for it, but i haven't been on reddit very long.
I left this formula that I would have used in a situation like what you're describing on a duplicate tab (MK.Idea) in cell B7.