concatenate ignoring empty cells - openoffice.org

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.

Related

Google Spreadsheets, Insert a cell value to another cell

I don't know anything about scripts so I would prefer a function.
I have a table like this:
a1
b1
c1
a2
b2
c2
If "a1" = 1 a2 = today's date.
For example:
if I write to a1 cell a "1" it will "transform" into today's date,
if anything else nothing happens.
You can simply put this formula in A2 cell :
=if(A1=1,TODAY(),"")

Google Sheet cell value does not match

I am trying to compare to cell in google sheet. Both the cell contains Value "Saturday".
Cell A1 = TEXT(WEEKDAY(N1),"dddd") value is "Saturday"
Cell A2 = =B2 value is "Saturday"
but when I compare both =IF(A1=A2,"TRUE","FALSE") Result is FALSE. I tried changing both cell to plain text but it did not work. Any solution?

Combine data from multiple cell in one cell with text

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)

Custom Conditional Format Google Spreadsheet

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="")

Google spreadsheet cell reference from value of another cell

This is the scenario:
In cell A1 I have value "12".
In cell B1 I enter value "1".
In cell C1 I want to have value of Column "A" and row defined in cell B1.
How can I display the value "12"?
=INDIRECT("A"&B1)
Help page for INDIRECT function: https://support.google.com/drive/answer/3093377?hl=en-GB

Resources