So I never worked with excel, but I would like to know if it is possible to do the following:
I want to put in a cell , an equation (e,g 2x^3-x), and I would want to make another cell use that formula, but replacing the 'x' with the value from said cell. In other words, creating a template of an equation, to be used in diferrent cells!
How can I do this ? Is it even possible?
Sorry if I'm asking something stupid!
Thanks in advance!
You can replace the x in your formula with a range reference: 2*A1^3-A1
You can create a named range and name it x then use 2*x^3-x
Related
I'm trying to create a dropdown list in Excel based on my source data by using the UNIQUE function, like say column "Team" has Team01-Team10 which is fetched with =UNIQUE(table[teams]), and then I want to add an asterisk to that list and still be able to use it dynamically for a data validation list. Like I can when I only have the original values by referencing A1# (if we say the formula is in A1). Does someone have a creative solution for this?
I have tried combining cell reference and the string * in data validation, which does not work. I have also tried putting the formula in A2 instead, and then writing the asterisk * in A1 and creating a named range, referencing A1:A2#, which basically throws the same error.
You can use TEXTJOIN and FILTERXML to create an array with the *.
=FILTERXML("<a><b>*</b><b>"&TEXTJOIN("</b><b>",,UNIQUE(table[teams]))&"</b></a>","//b")
Maybe i don't understand your question, i just look at the answer of #Scott Craner,
please forgive me if I am wrong, here is my formula:
=UNIQUE(IF(ISERROR(1/(ROW(1:6)-1)),"*",C2:C7))
I apologize in advance if my question is unclear. It’s my first time posting on this forum. I’m trying to write a Sumifs formula in Excel where one of the criteria is to sum everything except a specific value. I write a small amount in SQL and i use the <> function to eliminate specific values. Is there a similar ability in Excel? Thank you for your help!
With SUMIF() or SUMIFS(), you can use <>:
=SUMIFS($A$1:$A$100,$B$1:$B$100,"<>123")
That will check if a value in your B1:B100 range is 123, and if so, will not use that equivalent value in the A1:A100 range.
Microsoft Excel has a NOT function.
So, you would say
=NOT(A2="yourtest")
In this case, it means it returns true if A2 is not the string "your test"
I think that maybe your syntax for the criteria is not correct.
This formula works to exclude the string "A" from the summed results...
=SUMIF($A$1:$A$6,"<>A",$B$1:$B$6)
If you are trying to exclude "A" by referencing a cell that "A" is stored, this will not work. For example
=SUMIF($A$1:$A$6,"<>E1",$B$1:$B$6)
Here is a working example in excel:
I would like a function that is able to do this. I've been busting my head with the Index and Match functions but I can't get them to work! Any help is aprecciated. Thanks =')
I think you want to sum all values from column A where column C is equal to TMP. You want to use the SUMIF function.
=SUMIF(C2:C4,"TMP",A2:A4)
The Excel macro to do this is trivial, so I must not be understanding the question.
If I put the following equation in D1...
=IF(C1=C3,A1+A3,)
The contents of D1 = 600 when the contents of C1 and C3 are equivalent.
I think you need more clarity in your question. What is "C"? Do you want an Excel macro or VBA? What is the significance of the values in line 2...they seem superfluous.
Can someone please advise the correct method to use so that I can dynamically change the Lookup_Array in a Match condition.
The following formula works fine;
=VLOOKUP(F22,A26:O2000,MATCH(A9,A26:O26,0),FALSE)
However based on other criteria I would like the Lookup Array to be different, instead of being A26:026 it would be A34:O34.
From what I understand your question to be, you can use Indirect(). Assuming that cell A1 has A26:O26 (literally typed, in the cell). You can use this formula,
=VLOOKUP(F22,A26:O2000,MATCH(A9,INDIRECT(A1),0),FALSE)
Then, if you want to use another range instead of A26:O26, just replace what's in cell A1.
Thanks guys, i have worked it out for myself please see below if anyone else has the same problem
=IF(J5>=INDEX(TCT.xls!pArray,MATCH(O5,TCT.xls!pGroup,0),5),INDEX(TCT.xls!pArray,MATCH(O5,TCT.xls!pGroup,0),5),J5)
Thanks
In my current sheet I have some numbers in a column, which represent the row which I want to get the data from in another sheet. And I want to get it from the same column in which I am using the function...
I know using =Sheet1!A1 for instance gets me what is in A1 on Sheet1
and
=CONCATENATE("A",A1) being on sheet two, brings me back A + whatever value is stored in A1 on sheet number two... for simplicity let's say it's a one... so it would return A1
I am on Sheet2
I'm trying
=Sheet1!CONCATENATE("A", A1)
but the formula contains an error, I've tried rewriting this in many ways but it never works... any idea what the correct syntax I need is?
Greatly appreciated!
THanks
As Magicianeer said, you have to use the INDIRECT function. For your example:
=INDIRECT(CONCATENATE("Sheet1!","A",A1))
Should give the results you need.
However, it's a bit lengthy, and you can use & instead of CONCATENATE, and you can directly use Sheet1!A:
=INDIRECT("Sheet1!A"&A1)
What is evaluated in the brackets is Sheet1!A1, and INDIRECT converts this from text to a reference.
Try:
=CONCATENATE("A", Sheet1!A1)