I have a Google Spreadsheet where I want to add a " - " if there is a subtitle. If there is not a Subtitle, I want to leave it out. On a technical note: Both columns contains text only and can be any text as well.
My current formula is like this:
=CONCATENATE(B87; " - ";C87)
I've been looking and trying formula's, but none working so far. Does anyone have a solution? Thank you kindly in advance!
delete range A87:A and use in A87:
=ARRAYFORMULA(IF(C87:C=""; B87:B; B87:B&" - "&C87:C))
Related
I have the following cells with emojis.
As you can see I would like to get the value of these emojis as numeric.
I tried using a regex: =len(regexreplace(A2,"[^\⭐️]",""))
However, I do not get the desired result.
Any suggestions what I am doing wrong?
Find below the link to the example spreadsheet:
Link to the Example Spreadsheet
I appreciate your replies!
added formula to your sheet. Please test it out:
=MAKEARRAY(COUNTA(A2:A),1,LAMBDA(r,c,LAMBDA(ax,IF(ax=0,"-",ax))(LEN(REGEXREPLACE(INDEX(A2:A,r),"[^⭐]",""))+ LEN(REGEXREPLACE(INDEX(A2:A,r),"[^💥½¾]",""))/2)))
-
ALTERNATE FORMULA
=BYROW(IFERROR(INDEX(SPLIT(REGEXREPLACE(A2:A, "(.)", "$1|"), "|"))),LAMBDA(ax,IF(ax="",,LAMBDA(zx,IF(zx=0,"-",zx))(COUNTIF(ax,"⭐")+COUNTIF(ax,"💥")+IF((COUNTIF(ax,"½")>0)+(COUNTIF(ax,"¾")>0),0.5,)))))
-
Hi everyone,
I'm trying to count the number of "Yes" appeared in each row. I want to use array formula so that I'm not required to have formula in each cell in column G. May I know arrayformula can achieve this or there is other method? I tried to use arrayformula(countif(B4:F4,"Yes")) but nothing come out for row 5,6,7,8. Hope to get some advice on this problem as I'm new to google sheet. Thank you.
Give this a try.
=ARRAYFORMULA(COUNTIF(IF(B4:F="Yes", ROW(B4:B8)), ROW(B4:B8)))
Edit: For the case that you describe below (only including certain columns), it's a little more involved, but the same principle works.
=ARRAYFORMULA(COUNTIF(IF(B4:B="Yes", ROW(B4:B8)), ROW(B4:B8)) + COUNTIF(IF(D4:D="Yes", ROW(D4:D8)), ROW(D4:D8)) + COUNTIF(IF(F4:F="Yes", ROW(F4:F8)), ROW(F4:F8)))
I have to make a conditional formating formula with cross-sheet references.
Basically I have many sheets, one with existing words, and another one with words we have to add. I want to highlight in "Feuille 6" the words that are already in "Existant". I tried many formulas, I read the doc, I still can't figure it out.
Quick edit : equiv = match, and ligne = row, it's just google sheet translating words into French..
Here's the formula I think I should use, but it's not working
=EQUIV(A,indirect("Sheet1!A"&LIGNE()))
Here's what the Feuille 6 looks like
Again, there should be highlighted words in Feuille 6, like " Action ", which already exists in the sheet " Existant ".
I tried replacing "Sheet1 "with "Existant" too.
Any tip please?
Thanks !
Try:
Assuming the sheet Existant has values in columns A to Z , and you are highlighting cells in column A
=countif(indirect("Existant!A:Z"), A1)
Probably quite simple, but cannot get it together.
I simply want to match cell B2 with the range D2:D12. If there is an exact match, then pull the link next to the table with destinations, and give that value in A1.
Thanks so much for the help!
// Non-coder building chatbot backend in Google Sheets :)
Try A1:
=VLOOKUP(B2,D1:E15,2,0)
I need to do a sheet to managing some informations in my job.
I'd like to make a compilation of informations filtred by month, i.e., I'd like to insert a month (B1 cell) and all the informations would be refreshed by this month.
For while I could manage this data:
Team (Equipe);
Modules (Módulos); and
Type (Tipo).
and my formula is working:
=COUNTIFS(Geral!$B$2:$B$45;$A5;Geral!$C$2:$C$45;$B5;Geral!$E$2:$E$45;C$4).
What I'd like to do is something like this:
=COUNTIFS(Geral!$B$2:$B$45;$A5;Geral!$C$2:$C$45;$B5;Geral!$E$2:$E$45;C$4;Geral!$F$2:$F$45;MONTH(B1)).
I know this formula is wrong, but I don't know how to do this... I've already tried to use arrayformula, but it didn't work...
How do I do this?
Here is the link to the sheet:
https://docs.google.com/spreadsheets/d/1NOkvkJ7B3lGcSaUTtUdrnbmdd8AjiRvniH2lM3kASSU/edit?usp=sharing
Thanks in advance!
I believe what you need is:
=ArrayFormula(COUNTIFS(Geral!$B$2:$B$45;$A5;Geral!$C$2:$C$45;$B5;Geral!$E$2:$E$45;C$4;MONTH(Geral!$F$2:$F$45);B1))
... but beware that date functions in Sheets will read a blank cell as 30/12/1899, therefore MONTH() on a blank cell will return 12. So you might want to include a test to rule out blank-ness:
=ArrayFormula(COUNTIFS(Geral!$B$2:$B$45;$A5;Geral!$C$2:$C$45;$B5;Geral!$E$2:$E$45;C$4;MONTH(Geral!$F$2:$F$45);B1;Geral!$F$2:$F$45;"<>"))