original document:
https://docs.google.com/spreadsheets/d/1fD6-KFv_Qh_a4NXBPC1qAT8U7g6YNTv7YyLAS4lAN9o/edit?usp=sharing
I want to compare the word in range B3:C3 that partially match the word on the list in another sheet "prevodi" and give that corresponding exact match. in my case that would be Angleščina.
My formula is written in C1
Can u pls help how to do this?
try:
=INDEX(IFERROR(REGEXEXTRACT(B3:B; TEXTJOIN("|"; 1; Prevodi!A2:A))))
Related
I want to filter rows that contain a word in any column (among other text, not an exact match).
E.G.: I'd like to filter any line where the word "blue" appears in any column
you can try:
=QUERY((BYROW(A2:C, LAMBDA(acx,IF(REGEXMATCH(TEXTJOIN("|",1,INDEX(SUBSTITUTE(acx," ","|"))),"blue"),acx,)))),"Select * Where Col1!=''")
-
You can use this, it should work with as many column as you have. Let me know!
=FILTER(A:C,BYROW(A:C,LAMBDA(each, REGEXMATCH (CONCATENATE(each),"blue"))))
FILTER() with MMULT() may work. Try-
=FILTER(A2:C7,MMULT(INDEX(--ISNUMBER(SEARCH(E1,A2:C7))),SEQUENCE(COLUMNS(A2:C7),1,1,0)))
You can use E1 as filtering criteria. So make E1 a dropdown and select your desired word on E1 to filter from any column.
You can simplify above formula by using BYROW(). Try-
=FILTER(A2:C7,BYROW(A2:C7,LAMBDA(x,ISNUMBER(SEARCH(E1,JOIN("|",x))))))
I need help returning a text value "WIP" based on column A matching an entire range.
The range has digits which users will input that match column A but cells will have more than 1 digit which will be seperated by a comma.
I'm not clear on how to do this so i'm stuck somewhere with:
Sumproduct, isnumber, and match yet i'm struggling how to yield a result.
Could you please help?
Thanks a lot!
Spreadsheet link: https://docs.google.com/spreadsheets/d/1XcIql3ZMymqipZsGUyBk3_ze6LMzjQtHTF-ylGDIT_A/edit#gid=0
Output highlighted in yellow
You can try:
=ArrayFormula(IF(Isnumber(MATCH(A9:A38,FLATTEN(SPLIT(FLATTEN(IF(LEN(G8:M18),G8:M18,)),",")),0)),"WIP",))
To All Google Sheet Expert,
I need help to solve this problem in my google sheets.
Problem
Based on my previous search and question, I can use combination between TextJoin and Filter.
How can I achieve those expected result?
What should I fill in M4, M5, N4, N5, O4, O5?
This is link to my sheets
Thank you in advance.
One possible approach
This is for cell M3 for example:
=JOIN(
CHAR(10),
ARRAYFORMULA(
(FILTER(E3:K3, VLOOKUP(E3:K3,$A$4:$B$10,2,FALSE) = M2))
&" "&
(FILTER(E4:K4, VLOOKUP(E3:K3,$A$4:$B$10,2,FALSE) = M2))
)
)
Starting from the inner-most formulae
The VLOOKUP is needed to match the food name to the type.
This value is then used to FILTER BOTH the price and the titles of the food. You need two filters for this, one for the price and one for the title. Using onlt this it will give you:
These two rows now need to be concatenated with the & symbol, wrapped in an ARRAYFORMULA.
Finally these rows need to be joined with JOIN using a newline CHAR(10).
Reference
VLOOKUP
ARRAYFORMULA
CHAR
JOIN
Thanks in advance to all,
I have a spreadsheet with multiple sheets. I want my master sheets to have a search box based on a query that is referencing from a cell( my case A1)
*iv managed to accomplish this, but the search results are only exact match.
can someone help please how can make it a partial match instead of exact or even combined the two.
**iv tried this thread but it doesn't work, maybe I'm doing something wrong
thanks:
Exact result in Google Query, followed by partial match if exact result does not exist
this is the query that is working right now
=QUERY({sheet1!A2:I24;'sheet2'!A2:I26;'sheet3'!A2:I26},"select Col1, Col2, Col4,Col7,Col9 where Col1 = '"&A1&"'",1)
Cheers to all,
From the reference:
like - A text search that supports two wildcards: %, which matches
zero or more characters of any kind, and _ (underscore), which matches
any one character. This is similar to the SQL LIKE operator. Example:
where name like fre% matches 'fre', 'fred', and 'freddy'
where Col1 like '%"&A1&"%'"
Another, more powerful approach is to use filter + regexmatch:
=filter({sheet1!A2:I24;'sheet2'!A2:I26;'sheet3'!A2:I26},
regexmatch({sheet1!A2:A24;'sheet2'!A2:A26;'sheet3'!A2:A26}, A1))
See more on regex syntax here.
The result of a filter may be a query data source:
=query(filter(..., ...), "select Col1, ...")
I have a google sheet with a column (A) of urls.
Xttps://tXco/008wnbebbw
Xttps://tXco/00lR1FNKBo
Xttps://tXco/00lR1Fw9cO
Xttps://tXco/00UwZwgh2h
Xttps://tXco/00UwZwxSqR
Xttps://tXco/00UwZwxSqR
Xttps://tXco/044TcIFl72
In column B I need to find all unique urls up to the 18th character. For instance column B should show:
Xttps://tXco/008wnbebbw
Xttps://tXco/00lR1FNKBo
Xttps://tXco/00UwZwgh2h
Xttps://tXco/044TcIFl72
I have this formula which I was trying to adapt for it (not sure if it helps at all). I was trying to adapt this to use with =UNIQUE( ?
=SUMPRODUCT(--(LEFT($A$1:$A$15,18)=LEFT(A1,18)))>1
If it helps to take a look at the sheet, here it is: https://docs.google.com/spreadsheets/d/1tG7TpHNvNY86PRiePsKyKfxnuEZah6T7ZDL7dXOIcEA/edit?usp=sharing
Thanks in advance!
You may try this formula:
=ArrayFormula(vlookup(
UNIQUE(FILTER(LEFT(A2:A,17),A2:A<>"")),
FILTER({LEFT(A2:A,17),A2:A},A2:A<>""),
2,0))
How it works
it will first find unique left N chars:
UNIQUE(FILTER(LEFT(A2:A,17),A2:A<>"")
then get left N chars and original strings:
FILTER({LEFT(A2:A,17),A2:A},A2:A<>"")
and then use vlookup to get top first entry for uniques.
Try this instead without the extra column. Put it in B1:
=unique(arrayformula(if(left(A1:A,18)=left(A1:A,18),A1:A,"")))
Try this: =unique(arrayformula(left(A1:A,18)))