Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Extract Data from 2 columns if it matches condition

$
0
0

This is how my main data sheet looks like

enter image description here

And for any item that has customization, for e.g. - ORGANIC, I want to extract/copy just those data, the meal name & total units to another sheet.And then transpose them.

Partial answer to my question:

=INDEX(A2:B17,MATCH(G9&"*-*",A2:A17,))

However this only brings up 1 row, not all matches.

Using that with FILTER, same result:

=FILTER(A2:B17,A2:A17=INDEX(A2:A17,MATCH("M01"&"*-*",A2:A17,)))

Works but now I have no clue how to drag this down. To find other values.

Here is my sample sheet:https://docs.google.com/spreadsheets/d/1cAGa-Mc6KQjrTjwe8OM58wHbABDxI4toEbYOIs8_9VE/edit?usp=sharing


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>