I have a GoogleSheets document with rows filled with example:
2-Cycle GmbH
2-Rad-Sport Wehrle
How do I quickly delete everything between the < > so only the name remains?
Thanks!
try:
=INDEX(IFNA(REGEXREPLACE(A1:A2; "<\/\w+>|<\w+.*?>"; )))
or:
=INDEX(IFNA(REGEXREPLACE(A1:A2; "</?\S+[^<>]*>"; )))
Related
On a Google sheets, column A has checkboxes, column C is a list of items.
Copy all the items from column C to column B but skip the destination cells that are on the same row as a checked box from column A.
No cells from column C should be skipped.
Here's the sheet with the desired result in column B:
https://docs.google.com/spreadsheets/d/1DAncxmuTEuk2zuW_h8xC3SNBqOnJ7r-JaJ5gbZkpltU/edit?usp=sharing
I'm struggling to create a formula to do that.
Thank you! :)
I can't come up with a formula to do that. I've been Googling it but no luck. Any hep would be much appreciated. Thank you.
can you try this:
=QUERY(ARRAYFORMULA(SORT({BYROW(A:A,LAMBDA(ladr,IF(ladr=TRUE,{IFERROR(1/0),ROW(ladr)-(COUNTIF(A$1:OFFSET(ladr,-1,0),TRUE))},)));{C:C,row(C:C)}},2,1)),"Select Col1 Where Col2 is not null")
-
Another approach (tick boxes in A1:A, source list in B1:Bn):
=arrayformula(ifna(vlookup(query(reduce(,A1:index(A:A,counta(B:B)+countif(A:A,true)),lambda(a,r,{a;if(r=true,,max(a)+1)})),"offset 1",0),{row(B:B),B:B},2,0)))
I have
a list of addresses in column A, List of states in Column D.
I would like to search the text in a cell, if it contains a certain state then return the state value based on the List.
Please see screenshot
Thank you in advance for the help!
screenshot here
https://docs.google.com/spreadsheets/d/1f5-poZ3osC67r77IcfUUvlH5g3kEqvJCjy_aU5X-0A0/edit?usp=sharing
You can try below formula-
=ArrayFormula(IFERROR(FILTER($D$2:$D$5,ISNUMBER(SEARCH($D$2:$D$5,A2))),"No State Found"))
As per your given sheet, try below formula-
=IFERROR(QUERY(TRANSPOSE(SPLIT(A2," ")),"select Col1 where Col1 matches '" & TEXTJOIN("|",TRUE(),$E$2:$E) & "'",0),"No state found")
hope you have a good day/evening.
Due to I always seems to use importrange function to import multiple sheets. I want to have a quicker way to replace the date (highlighted in red as per the screenshot) with the date referenced in Col A. This is my Google Sheet under the tab name "TextJoin" Google Sheets Link
try:
=INDEX({""; "={"&TEXTJOIN("; ", 1,
"IMPORTRANGE(""13DWtP4L7swqBgK6BGLeA-o_FfyD-D8-Ru30cOPf0I10"", """&
FILTER(TO_TEXT(A2:A)&"!A2:C"")", A2:A<>""))&"}"})
but you may need to wrap it into query and remove empty rows perhaps like:
=INDEX({""; "=QUERY({"&TEXTJOIN("; ", 1,
"IMPORTRANGE(""13DWtP4L7swqBgK6BGLeA-o_FfyD-D8-Ru30cOPf0I10"", """&
FILTER(TO_TEXT(A2:A)&"!A2:C"")", A2:A<>""))&"}, ""where Col1 is not null"", )"})
Try
=importrange("_____","'" & text(A2,"M/d/yy") &"'!A2:C")
Could you please help retrieving the column index letter in which is the result of a dynamic lookup formula ?
Here I fill a country in K10 and look in which cell it is in Data range B2:F2, and then I need the correspondant column letter. In my example, it should be column B instead of E (in cell L2 or L10). I can't see what's wrong with the formula I picked up somewhere in this forum :
=MAJUSCULE(CAR(COLONNE(INDEX(B2:F2;EQUIV(K10;B2:F2)))+96))
Here is the sheet https://docs.google.com/spreadsheets/d/1B5t4QrSX1_cI1J66nSaHghhHBkz7CBHQKyTm-_mPhp8/edit?usp=sharing
Thank you very much.
proper way (works with column range A-ZZZ) would be:
=SUBSTITUTE(ADDRESS(2; MATCH("*"&K10&"*"; A2:F2; 0); 4); 2; )
you can even create jumping link:
=HYPERLINK("#gid=569443896&range="&
ADDRESS(2; MATCH("*"&K10&"*"; A2:2; 0); 4);
SUBSTITUTE(ADDRESS(2; MATCH("*"&K10&"*"; A2:2; 0); 4); 2; ))
spreadsheet demo
or jump straight to B4:
=HYPERLINK("#gid=569443896&range="&
ADDRESS(1+MATCH(M10; A:A; 1); MATCH("*"&K10&"*"; A2:2; 0); 4);
SUBSTITUTE(ADDRESS(2; MATCH("*"&K10&"*"; A2:2; 0); 4); 2; ))
If I understand your question correctly, you want to
convert the column index into the corresponding column letter for FRANCE.
Please use the following formula in cell L2
=CHAR(64+QUERY(ArrayFormula(TRANSPOSE({IFERROR(REGEXEXTRACT(B2:F2;K10));
COLUMN(B2:F2)}));
"select Col2 where Col1<>'' "))
UPDATE
How to simplify your formula and free it from being tied to the specific columns (as it now is).
Taking a closer look at what you are trying to do, I believe you would greatly benefit if you could make 2 simple modifications.
Add an extra row above your countries having the zones' letters
Replace your formula to the following one
(Notice the changed columns.)
=QUERY(ArrayFormula(TRANSPOSE({IFERROR(REGEXEXTRACT(E3:I3;N11));
(E2:I2)}));
"select Col2 where Col1<>'' ")
You can now freely move and place your data wherever you want.
Functions used:
CHAR
QUERY
ArrayFormula
IFERROR
TRANSPOSE
REGEXEXTRACT
COLUMN
Thanks to all of you, I finally adapted the proposed formulas in order to have dynamic sheet-cell reference wrapped in a dynamic hyperlink with pre-named ranges :
=LIEN_HYPERTEXTE("#gid="&RECHERCHEV(S3;Sheets_GID;2)&"range="&ADRESSE(1+EQUIV(Q3; INDIRECT(S3&"_Poids"); 1); EQUIV("*"&M3&"*"; INDIRECT(S3&"_Zones"); 0); 4);SUBSTITUE(ADRESSE(2; EQUIV("*"&M3&"*"; INDIRECT(S3&"_Zones"); 0); 4); 2; ))
I get the sheets GID thanks to Player0's script found here : Is there a custom function or script that returns gid of a specific sheet in Google Sheets?
Here is some code that will give you the row column letter when you give it the cell id (works no matter where in the sheet you place it.)
you can put the cell id inside the column bracket. eg column(B87) or just copy paste it as is anywhere.
=IF(TRUNC((column()-1)/26)<1;CHAR((MOD((column()-1);26))+65);CHAR(TRUNC((column()-1)/26)+65)&CHAR((MOD((column()-1);26))+65))
hope this is usefull. Cheers Mads
But it doesn't work anymore when I insert some columns to the table reference, I have to correct some details..
I'm trying to use submitted Google Form data in one spreadsheet to locate and retrieve data from another spreadsheet (tab in same document). The Google Spreadsheet file is here.
The =QUERY statement I'm trying to use is below
=QUERY(sheet2!A1:K; "Select B, C where A =" & B1 ; 0)
It works if I remove the 'cell reference' from where A =" & B1 ; 0) and I replace it with a 'static value' like where A contains '123456' ")
Any suggestions on 'how' to get the =QUERY to work using a 'cell referenced' value. The heading for the column being referenced is TEXT but the value of all rows below the heading is a NUMBER
Thank you in advance,
Todd
I know this is old but I had the same issue and thought my solution might help others. Adding single brackets round the cell reference worked for me.
=Query(sheet2!A1:K, "select B, C where A ='"&B1&"'")