So the following formula returns only the first value from the range. I kinda need all the matching search results indexed instead of just 1.
=Vlookup("*" & B3 & "*",A:A,1,0)
So the following formula returns only the first value from the range. I kinda need all the matching search results indexed instead of just 1.
=Vlookup("*" & B3 & "*",A:A,1,0)
vlookup is designed to always give you one result. Either your query matches then it will return the value, else it will return an error. As you want all the values I would recommend a different approach.
=IF($A1 = ("*" & B3 & "*", 1, 0)
. This column should be filled with 0 and 1 depending on the content of your column B.=SUMIFS(A:A, B:B, "=1")
I hope this helps to streamline your Excel. If you need further help maybe elaborate on the content of your columns A and B and what you want to achieve with your
=vlookup()
.With Google Sheets use Query:
Since you have the Excel tag use this formula for excel:
Copy/drag it down sufficient for your needs.
Another option is
Filters out those values where the string can be found and also supports wildcards within the string or could be extended to match a regular expression instead.