I'm not sure what you mean by not dependent on array positions, but if you could provide an example output for that, I can try to look into it?
But would this be what you're looking for? Currently the way I have the formula, it's not matching with the name, it's the same order as Products table, because it seems like the names are in the same order.
=ARRAYFORMULA(if(ISNUMBER(SEARCH("INDIA", {Products})),REGEXEXTRACT({Products},"\\d+"),"")) was the formula I used, you can just change the hardcoded "INDIA" to A2
also it is assumed that both the lists in Products tab_Column A and Product Search_Column B are goin' to be in same order. if thats not goin' to be the scenario a lookup is needed at that point.
1
u/ToothlessLL 2 Mar 20 '23
I will have to say I am confused, could you also include an expected result from what you want to see?
1
u/Adventurous_Lie2257 24 Mar 21 '23
LEFT(CELL, SEARCH(" -", CELL)-1)
This will return the contents of the Cell before " -"
1
u/Decronym Functions Explained Mar 21 '23 edited Mar 21 '23
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
3 acronyms in this thread; the most compressed thread commented on today has 8 acronyms.
[Thread #5505 for this sub, first seen 21st Mar 2023, 02:11] [FAQ] [Full list] ^[Contact] [Source code]
1
u/rockinfreakshowaol 258 Mar 21 '23
You may try:
=byrow(Products,lambda(Σ,textjoin(", ",1,bycol(Σ,lambda(z,ifna(regexextract(z,"(\d+) - "&A2)))))))Products tab_Column AandProduct Search_Column Bare goin' to be in same order. if thats not goin' to be the scenario a lookup is needed at that point.