I use Google Sheets, and I want to get data and create one new cell.
Example:
I have 300 rows and 4 columns, like:
1|3|2|4
5|7|6|8
9|11|10|12
...
297|299|298|300
and one cell that I need in result:
1,3,2,4,5,7,6,8,9,11,10,12...297,299,298,300
=SUBSTITUTE(TRIM(QUERY(TRANSPOSE(QUERY(TRANSPOSE(A2:D),,999^99)),,999^99)), " ", ", ")
______________________________________________________
but if you want just numbers from 1 - 300 in CSV then:
=ARRAYFORMULA(JOIN(", ", ROW(A1:A300)))
You could use Textjoin:
=TEXTJOIN(",",1,A2:D)
Related
Currently I have a formula which calculates the text contained within a given cell across multiple sheets i.e.:
=COUNTIF(Sheet1!G3:G1151, "COMPLETE") + COUNTIF(Sheet2!G3:G1151, "COMPLETE")
I need to not calculate (Count) a cell if it does not contain text, i.e.:
=COUNTIF(Sheet1!G3:G1151, "COMPLETE") + COUNTIF(Sheet2!G3:G1151, "COMPLETE") + !COUNTIF(Sheet2!G3:G1151, "COMPLETE")
Any ideas? thanks
Not is <>:
=COUNTIF(Sheet1!G3:G1151, "<>COMPLETE") + COUNTIF(Sheet2!G3:G1151, "<>COMPLETE") + COUNTIF(Sheet2!G3:G1151, "<>COMPLETE")
How can I check in Google Sheets if each cell in a range e.g. B2:G2 contains a word e.g. holiday?
=ARRAYFORMULA(IF(IFERROR(REGEXEXTRACT(B2:G2, "holiday"))<>"", TRUE))
=ARRAYFORMULA(IF(SUM(IF(IFERROR(REGEXEXTRACT(B3:G3, "holiday"))<>"", 1))=6, TRUE))
I have a row A with 200 text entries.
A1 = "A1value"
A2 = "A2value"
A3 = "A3value"
...
I want to dynamicaly display in a single cell (text format) : ga=A1value,ga=A2value,ga=A3value, [...] ga=A200value etc...
use join function:
=JOIN(",ga=", A1:A3)
for some regions semicolon is used:
=JOIN(",ga="; A1:A3)
next step: add first "ga=" manually:
="ga="&JOIN(",ga=", A1:A3)
I need to format a cell if it is empty and another cell contains an specified value.
For example
IF(A = "Type 1" AND B = "")
THEN FORMAT
Try:
Conditional formatting on A1.
Apply to range:
A1:A
Custom formula is:
=and(A1="Type 1",B1="")
I may or may not have information in the cells that I want to concatenate.
If cell a and cell be are populated, I would like cell c to have: "a, b"
If cell a is populated and b is not then cell c to have: "a"
If cell b is populated and a is not then cell c to have: "b"
If both cell a and b are empty then cell c to be empty
I can do a simple concatenation: a1 & ", " & b1
But the simple concatenation gives results like ", oranges" or ", "
Anyone have a formula that will solve this?
Let a be at E20 and b be at F20. Then the function
=IF(AND(ISBLANK(E20);ISBLANK(F20));"";IF(AND(ISBLANK(E20);NOT(ISBLANK(F20)));F20;IF(AND(NOT(ISBLANK(E20));ISBLANK(F20));E20;CONCATENATE(E20;", ";F20))))
should be appropriate for your purposes.