Cell A1 = "YES"
Cell B1 = "YES"
Is it possible to write a formula that makes Cell C1 EQUAL TRUE if Cell A1 MATCHES Cell B1?
It's a super simple thing I'm trying to do, but I can't find anything useful in the Google Sheets documentation. I know this is possible in MS Excel.
you can actually just put =eq(A1,B1) and the default values are true or false.
Or if you prefer a different response you can make it an if statement and choose your own text i.e.
=if(eq(A1,B1),"Yes","No")
Answered my own question:
=ArrayFormula(IF(EQ(A1, B1), TRUE, FALSE) )
Related
I currently have the following formula in A3:
=iferror(if(A1="","",1),0)
I want to change it so that this logic remains the same but A2 should also be checked to make sure it is False. If A2 is false, the same logic of the formula above should apply when it is false.
If A2 is true, it should behave the same way as the logic above, when it is true.
I'm having trouble properly converting this :-/
I was trying it with =AND but got confused how to make sure that the same logic applies as the check above when A2 is False and True respectively.
Iferror only checks if the entire expression returns an error, not a cell by cell. To get what you want, you should modify your condition to simply check for an error in cell a1 or a2, and then write your if statement based on that. Assuming you want a 0 if either cell has an error, then this should work: =if(Or(ISERROR(A1),ISERROR(A2)),0,if(A1="","",1))
try:
=IFERROR(IF((A1="")*(A2=FALSE),, 1), 0)
which reads as: if A1 is empty and A2 equals false output empty cell otherwise output 1 and if any kind of error occurs output 0
I can't get the syntax correct for =ifs(and(C2="Steve",E2<>""), (or(and(D2<>""), C2="Ted", C2="Nancy, C2-"Jane""),"YES","NO")) I'm Getting a Formula Parse error.
I am trying to return a "YES" if cell E2 is not blank and cell C2 contains one of many possible text strings ("Ted", "Nancy", or "Jane").... or if cell C2 contains text string "Steve", and cell E2 is not blank.
If anything other than the above is true then I want to return a "NO".
This was resolved in a different more flexible platform... the answer is here:
=IF(AND(E2<>"",
OR(C2="Steve",
AND(D2<>"",OR(C2="Ted",C2="Nancy",C2="Jane")))),"YES","NO")
Google sheets ...
Have a dropdown list in cell A1 ...
dropdown list has 2 options : yes, no.
I want to make cell A2 :
if A1 = yes then A2 = 1% ...
if A1 = no then A2 = 5%
no idea how to write the formula and syntax.
any help appreciated.
You can find the documentation for the IF function here.
In your case you can put the following text/formula in cell A2:
=IF(A1="yes", "1%", IF(A1="no","5%",""))
If you want to use the numbers in some other formulas later, you might want to keep them as numbers, and simply format the cells. You can change the format by selecting the cell and in the menu clicking on Format -> Number -> Percent. In that case you can write the following in cell A2:
=IF(A1="yes", 0.01, IF(A1="no",0.05,""))
Given data:
A1 = some value
A2 = operations needed like "*(-1) + today()"
Wanted result in A3 is formula which can take A1 and apply operations from A2.
Following my data sample if today is 10/25/2016 and A1 is 10/22/2016 I want to see "3" in A3.
Is this possible?
Yes this is possible by using Google Apps Script, getFormula or getFormulas methods.
Related question:
Is there a way to evaluate a formula that is stored in a cell?
I know this answer is out there, I am just not using the write words to ask.
In cell B1 I have "Form Responses 1'!$C:$C" written out.
In cell B3 I have a countif formula that I would like to use the contents of cell B1 as the range. So something like the below
=COUNTIF(B1,"Option 1"), or I have tried =COUNTIF(Indirect(B1),"Option 1")
Both don't see the the contents of B1 as a range, and therefore it is not giving me a count of the items in the range.
Try this without B cells:
=COUNTIF('Form Responses 1'!C:C,"Option 1")
Thanks to Abdul Hameed, I came up with two solutions.
Cell B1 = "C"
my countif formula is: =COUNTIF(INDIRECT("'Form Responses 1'!$"&B1&":$"&B1),"Option 1")
or to directly answer my first question
Cell B1 = Form Responses 1!$C:$C (no double or single quotes)
=COUNTIF(INDIRECT(B1),"Option 1")