Transpose column of values skipping blank cells in Google Sheets - google-sheets

https://i.stack.imgur.com/f2Ztx.png
I need help, for example, I have a condition of thousands of data like in red border and want to form it like in result border
What kind of transpose formula do I have to use?
try to figure it out with this formula
=ARRAYFORMULA(QUERY(A3:A&",",,55000))
but still don't find a suitable result

try:
=ARRAYFORMULA(SPLIT(QUERY(A3:A,,99^99), " "))
or:
=TRANSPOSE(FILTER(A3:A, A3:A<>""))

Related

Conditionnal formatting in two columns

I am looking for information about conditional formatting in Google Sheets. I would like to put the cell in column L in red if it exists twice AND if the data in the same row in column K is the same.
By searching on the internet, I found how to put the cell in red if it exists more than once but I don't see how to add in addition a check on the K column ( =NB.SI($L2:$L;$L2)>1 ).
Below is a screenshot of my Sheets file.
You can see that the cells turn red and the data in the K columns are different.
Could you help me with this please? I am not comfortable with conditional formatting at all.
Try this formula in conditional formatting setting
=if(COUNTIF(L:L,L1)>1,countif(K:K,K1)>1)

IF and REGEXMATCH formula excluding RR in a column but select for letters K-Z

So, I have a formula graciously shared by someone here that works amazing in highlighting cells in a column that contains letters from K to Z, excluding RR. Here it is below...
=REGEXMATCH(E5:E,"[K-Z]")*(REGEXMATCH(E5:E,"RR")=FALSE)
But, I'm trying to accomplish the same thing with an IF formula (not conditional formatting), where if a cell in column E contains a letter from K-Z, it will display the green checkbox, and if not, display the red down arrow. I'm not sure exactly how to exclude RR again in the equation. Here's the formula I'm trying to get to work...
={"OL";ARRAYFORMULA(IF(E5:E="",,if(REGEXMATCH(E5:E,"K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z"),"✅","🔻")))}
The formula works except it includes cells containing RR, I guess because R is in there? But I want to exclude cells containing RR.
Here's a Google Sheet that contains the formula I'm currently using.
Thanks for any help you can provide.
I left a new sheet ("Erik Help") with a formula in B1 that somewhat follows the form of your original formula there, since that seems to be something you understand. All I did was add another outer IF to rule out instances of "RR" up front:
={"OL";ARRAYFORMULA(IF(A2:A="",,IF(A2:A="RR","🔻",IF(REGEXMATCH(A2:A,"[K-Z]"),"✅","🔻"))))}
use:
={"OL"; INDEX(IF(
REGEXMATCH(E5:E,"[K-Z]")*(REGEXMATCH(E5:E,"RR")=FALSE),
"✅", "🔻"))}

Arrayformula not working properly with Textjoin

Here is the screenshot of the expected output and output
I had to drag to bottom right thing down for the formula to carry over below (to produce expected output), but that doesn't have to happen with arrayformula right?
I tried removing arrayformula and only using textjoin, but all the names were in that cell...
=ARRAYFORMULA(TEXTJOIN(", ", TRUE, IF($D$2:$D$21=F2, $E$2:$E$21, "")))
thank you all in advance!
If I understand what you mean, you always have to fill down formula to get result because join or textjoin does not return an array, your formula might be shorter like this:
= JOIN(",",FILTER($E$2:$E$21,$D$2:$D$21=F2))

Google Sheets Conditional formatting to paint row +1 based on 2 conditions

I have this pivot table from another sheet, where I need to apply a specific conditional formatting, to understand better, here is an example table
What I need is:
if in Column F if have cash, then paint the Column I +1 row
in this example im trying to paint I4 in different color, only if in column F I have cash one row above
Any help on this please ?
apply this on range A4:Z
=$F3="cash"
I've got this answer, however, I don't know if it's the best approach:
=indirect(address(row()+1,column($F:$F)))="Cash"

Insert formula through google sheet column

lets say I have a column of URLs in A, I would like to have a script that would insert a formula into the next column over so that it would look like the attached image.
I know how to insert a formula into a single cell through script, but unsure of how to get it down the entire column relative to the cell to the left.
You can use array formula like this:
=ARRAYFORMULA(IMAGE(A2:A))
or you can wrap it in an if statement to only pull in the images where there is a valid url present with:
=ARRAYFORMULA(IF(ISURL(A2:A),IMAGE(A2:A),))
ArrayFormula is good solution. I prefer limiting the used range by it's size. If your data has no blanks, you could also use this formula:
=ARRAYFORMULA(IMAGE(OFFSET(A2,,,COUNTA(A:A)))
Paste it in cell B2.
offset + counta will give range A2:A6 in your case.

Resources