Show different value based on Checkbox tick - google-sheets

I have 2 checkboxes and 1 cell
When checkbox 1 is ticked I want to show "Checkbox 1 selected" in the cell
When checkbox 2 is ticked I want to show "Checkbox 2 selected" in the cell
=OR((A1,"Checkbox 1 selected",""),(A2,"Checkbox 2 selected",""))
What am I doing wrong?

Here you go. You were missing the IFs.
You should JOIN the functions instead of using OR which returns TRUE or FALSE, not the text you are trying to get from your IF functions.
=JOIN(", ",IF(A1,"Checkbox 1 selected",""),IF(A2,"Checkbox 2 selected",""))
If you will never have both checked at once, this formula will be shorter.
=IF(A1,"Checkbox 1 selected",IF(A2,"Checkbox 2 selected",""))

Related

Automatically remove from drop down list in google sheets

Say that I have a dropdown list based on a column that has "cat, dog and rat" on it, and some lines select the option rat on the dropdown. After that I remove "rat" from the column (so form the dropdown), but the lines that had "rat" on it still with it and a msg saying that this data is invalid.
Is there a way to automatically remove the selected item that is not at the dropdown anymore? (put it blank maybe)
Check this image... "LEOBAZEREDO" is not on the list anymore, but his name is there with an alert. I would like that at this line the dropdown become blank when I remove LEOBAZEREDO from the itens
I just figured this out hope it helps someone:
I made the drop-down list using range (i5:i16)
then I used the following formula in each cell in that range:
=if((countif($B$5:$G$5,"Jan"))>0,"","Jan")
changing the month accordingly.
this removes the text from the cell ounce it is used.
Just to break it down a little....the countif portion (countif($B$5:$G$5,"Jan") will return "1" if it finds Jan in the range $B$5:$G$5 since this is bigger than 0 the if-function will put ""(no text)in the cell if it doesn't find "Jan" then it returns a 0 and the if-functions ads "Jan" to the cell.
photo in link

Google Sheets Custom Menu to Hide Row based on text value in column 1

I am new to Google Sheets and I am struggling with the following:
add custom menu to "TestSheet" namend "Hide" with menu items "Hide Rows" and "Unhide Rows"
when the "Hide Row" menu item is clicked, all rows from Row 3 downward in this "TestSheet" should be hidden if the "text value" in Column A is equal to "Value1" or "Value2", if there is "Value3" nothing should happen.
when "Unhide Rows" is clicked, all rows are shown again.
Could anybody please help me with the code??
Many thanks in advance!!
The simpliest way is to add a new column with
=ArrayFormula(if(isblank(A2:A);;if((A2:A="Value1")+(A2:A="Value2")>0;"ok";"nok")))
and the filter on this new column wether it is ok or nok

Check multiple true condition in multiple cells

Is there any built-in function to check if there's multiple TRUE condition ? Like
OR() but can detect if there's more than 1 TRUE. For example :
i use this conditional formatting (custom formula) in cell A3:
=OR(not(isblank(B3)), not(isblank(C3)) , not(isblank(D3)), not(isblank(E3)) )
so background color of A3 will become RED if any of those cells (B3,c3,d3,e3) is not blank. But i want it to become RED only if 2 or more cells is not blank. This is to give me warning if there's duplication . I only want 1 cells to be not blank. iF there 2 or more, i want the A3 to be RED so i know there's duplication.
yes you can do:
=(B15=A15)+(C15=A15)+(D15=A15)>1

have a negation and an AND in an IF statemnt for conditional formatting in Google sheets

I want to change the current cell if a different cell is not blank AND if it is four days later then the date in that cell.
Why doesn't this work and would would be a solution that does?
= IF(AND(NOT(ISBLANK(E12)), TODAY())) > (E12 + 4)
I want it to check if the date cell is blank, if it is then I want the formula to cease, then if the condition has a value I want it see if todays date is greater then the other cells value plus 4. If it is, the conditional format will go into effect and turn the cell red. I'm basically trying to mimic and ELSEIF statement with an AND
Nevermind, figured it out, if you're having the same issue here's a working solution.
= IF(IF(ISBLANK(E12), FALSE, TRUE), IF((TODAY() > (E12 + 4)), TRUE, FALSE))

How to get selected value of multiple-selection listbox (InfoPath)

How to get the selected value from the multiple-selection listbox ( InfoPath form)
I have a multiple selection listbox like this:
Display text , Value
110-SS , 110
120-ST , 120
130-SW , 130
how can I make the condition when listbox selected value was contain with '130' ?
If you want a condition that is true when the MSLB has 130 selected, you would simply use:
ListBoxField equals 130
If you want a condition that is true when the MSLB does not have 130 selected, you would use:
All instances of ListBoxField are not equal to 130

Resources