In Excel how can I create a cell function which does the following ...
If cell C1 contains the value 6, I want cell B1 to be the contents of cell M1,
If cell C1 contains the value 7, I want cell B1 to be the contents of cell N1
and so forth, increasing by one column (M,N,O...) at a time.
I've tried with the functions INDEX, IF , MATCH and, LOOKUP .
Use INDEX and simple math:
=INDEX(1:1,C1+7)
Related
Is it possible to have one cell where you add in a value and in another cell the values are added together?
For example, I have cell A1 where I put the value 10, then cell B1 is now 10. Then Cell A1 is now blank so that when i add another value, lets say 5, cell B1 would now be 10+5, so 15. Then allow this to continue to repeat and sum the values being added to A1
I need to insert a value to a cell in excel using formula in another cell.
Say
A1 = "Test"
B1 = formula to insert A1 to C1
C1 = A1
Can I write a formula in B1 to insert value in C1?
I don't need any formulas in C1.
If Yes, What should be the formula?
If there it is next to the cell AND has no value in B2, it is possible, otherwise it is not.
Use Split()
Split(CONCATENATE("Text for B1#Sperator$$",A1),"#Sperator$$",FALSE)
It really depends.
EDIT
Out dated. Only works in google sheets.
Without using VBA or formulas in column C you can't achieve this.
A simple solution using formulas:
In cell C1, paste the following formula and drag it down:
=IF(B1=1;A1;"")
So if the content of cell B1 is equal to 1, your cell at column C will display the respective value of the same row at column A.
I have a simple formula =sum(sum(d5*u300)/g4)
Is it possible to have the formula look up cell A1 for the d, a2 for the 5, a3 for the u, A4 for the 300, A5 for the the g and a6 for the 4. In other word each formula cell reference is made up of the contents of two other cells.This would be used in a selection process to produce a table for a graph. NON Excel Users could then use a drop down list in A1 to select column d etc. With thanks.
Do you mean something like:
=SUM(SUM(INDIRECT(A1&A2)*INDIRECT(A3&A4))/INDIRECT(A5&A6))
? Let's say A1 contains D and A2 contains 5. Then INDIRECT(A1&A2) will return the value of the cell D5.
However, I don't understand why you use SUM with just one argument.
I have a table with multiple cells. I am trying to get a formula working according to the following:
If Cell A is empty then Cell D has to be empty
But if A is a number then I need to check what is in Cell B to calculate Cell D
(if Cell B = "TOP",Then Cell D= cell C*170) Or If Cell B="BAR",OR ="CAR", OR ="DAR", Then Cell D = Cell C*170)
In cell "D1"
=IF(A1="","",IF(B1="TOP",C1*170,IF(OR(B1="BAR",B1="CAR",B1="DAR"),C1*170,"NOT FOUND")))
Check if A is a number:
=IF(A1="","",IF(ISNUMBER(A1),IF(B1="TOP",C1*170,IF(OR(B1="BAR",B1="CAR",B1="DAR"),C1*170,"NOT FOUND")),"Not Number"))
You can do a nested IF statement to go in cell D1. It looks like your doing the same calculation whether B1="TOP" or your other list of variables for B1 so you can just put them all in the same OR statement. Something like:
=IF(A1="","",IF(ISNUMBER(A1),IF(OR(B1="TOP",B1="BAR",B1="CAR",B1="DAR"),C1*170,"A1 is number, B1 not in list"),"A1 not a number"))
Is there a formula in excel to allow you to obtain the value of another cell WHEN a second cell was value X?
For example, something like:
=GETWHEN(A1,3,B2)
Which would return B2's cell value when A1 is value 3.
So if let's say you had a cell B2=4*B1. And B1 you set to 3, so B2 would show 12. But I want to make a row of entries to plot what B2 will be when A1 is 1, 2, 3, 4, 5 etc...
What could I put under A1 Values?
EDIT: I'm not looking for a if like in the conditional sense. I'm looking for the value WHEN (edited now)
You're thinking about data tables.
Provided you have your values in E2:E6, and your formula in B2:
Enter =B2 in cell F1.
Select E1:F6.
Go Data - Data table and put B1 into the Row input cell box (B1 being the cell on which B2 depends).