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,""))
Related
If A1 has a value of 2, =INDIRECT("L"&(5+A1)) will return me cell L7's content. And my A1 value keeps on being updated.
But I need a way to sort through columns instead of rows, like
L7, M7, N7, O7 and so on...
Which formula can help me sort through the columns? I also know that =COLUMN() returns the current column converted to number, but I had no luck with =INDIRECT((column()+A1)&7).
You can use the address() function inside indirect. Address() returns a cell reference as a string. So for example, if you enter in G5
=indirect(address(A1, column()))
while A1 is 1 the above formula will return the contents of cell G1.
See if this helps?
Good day,
I have a countif(concatenate)) and another countif(concatenate). I am looking for a formula that takes the first countif total and the second countif total and dividing the answer of the two.
Help would much appreciated.
Thanks.
From the tag i suggest that you use Excel 2010. Let us assume that you already got the value of countif(concatenate1) in a cell called A1 and the value of countif(concatenate2) in a cell called A2.
A formula to divide A1 by A2 and store the result in A3 would be:
=A1/A2 (place this code in cell A3).
You might want to look into this, too: https://support.office.com/en-us/article/COUNTIF-function-e0de10c6-f885-4e71-abb4-1f464816df34
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")
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) )