Very simple question..
I have a cell ($C$1). There is a value. Now I need to multiply this value with the value from other table's cell ($K$2). What would be the formula?
obviously I cant do this: =$C$1*$K$2. That is the reference to the same cell.
So, what the formula looks like for a cell, that take the value in the same cell and multiply with the value from other cell?
thanks!
Related
I want to use the match function in Excel the following way: match(True, D2:J2>=K1,0), to find the smallest value that is greater than or equal to lookup_value. My problem is how to change the row number in the array, since the row number is on his part the result of a match function.
Thanks for the help in advance!
Your baseline formula is:
=MATCH(TRUE,D2:K2>=K1,0)
which looks at row #2:
To change that row, lets put 7 in cell A1 to mean use row #7. We change the formula to:
=MATCH(TRUE,INDEX(D:D,A1):INDEX(K:K,A1)>=K1,0)
So the value in A1 defines the row that MATCH() should use.
EDIT#1:
Here is another example of using INDEX() to return a cell reference.
Say we have data in column A. We want the user to be able to select parts of the column (start and stop rows) and sum the part. However, we don't want the user to tinker with the formula. In fact we are going to lock the formula cell so the user can't destroy the formula. We tell the user to put the start row in D1 and the end row in D2.
We put the formula in cell D3:
=SUM(INDEX(A:A,D1):INDEX(A:A,D2))
I want to find the last value of a row in a given range. Each cell in this row is populated via a formula. So, if hte formula succeeds, it has a value, otherwise it shows null.
This is the formula for every cell in the row
=SUM(J$36:J$45)
To find the last value in the row, at the end cell of the row, i have this formula =LOOKUP(2,1/(J47:T47<>""),J47:T47) for the range J47:T47.
This forumula works when every cell has a text or number. In my case, since every cell already had the formula, it considers formula also as not null and gives alway the value of the last cell(which in my case was null since sum was 0/null). What i want is to consider only the cells that really has a value - meaning the sum would have given some number. How do i tweak the formula to say value is not null or not formula
Complete newbie here, just wonder about the formula in excel to retrieve the value of any cell in a given column by inserting its row number. Example: in a cell i insert number 5, so the cell below should have the formula that allows to display the value of the cell in E5. Or better yet, if i insert 5, i would like to have value for cell with row number "5+x". Thank you and best regards
If the cell in which you insert the number is A1, the formula is
=INDIRECT("E"&A1)
To answer the edited question:
=INDIRECT("E"&(A1+x))
where x could be an integer or another cell reference.
I want to display the reference of cell based on condition that if the cell contains a value it should display that the cell has a value for example
If cell A1 has a value eg 12, then cell B1 should display “There is value in cell A1” else it should be blank
I have tried this this
=IF(A1="","","There is value in cell "&A1).
Does anyone know how I can change it to =There is value in cell A1
Instead of There is value in cell 12
Something like this
=IF(A1="","","There is value in cell "&ADDRESS(ROW(A1),COLUMN(A1),4))
Also if you don't have any issue with the volatility an easier formula would be
=IF(A1="","","There is value in cell "&CELL("address",A1))
P.S You can additionally use one of the four values as the last parameter in the first formula.
Does this do the trick:
=IF(A1<>"","There is a value in cell "&CHAR(64+COLUMN(A1))&ROW(A1),"")
You can also use ADDRESS():
=IF(A1<>"","There is a value in cell "&ADDRESS(ROW(A1),COLUMN(A1),4))
It takes row and column as arguments with optional argument for return type, that is set to relative in this example.
I have a table in excel file, please have a look on below image:-
I want to know the position of cell which has minimum value.
As you can see cell AE26 has the minimum value.
I am trying below formula :-
=CELL("ADDRESS",INDEX(Z7:AJ26,MATCH(MIN(Z7:AJ26),Z7:AJ26,0)))
But it is giving "#N/A" :- "A value is not available to the formula and function."
Not sure what I am doing wrong.
You can't use Match() on a multi-column range.
Your scenario can work if you use a helper column and a helper row to identify which row and which column holds the smallest value of the table.
Consider the following screenshot:
The conditionally formatted table has the defined name MyTable.
Cell D1 calculates the minimum value in the table with the formula
=MIN(MyTable)
D1 has the range name SmallNumber.
Cell I3 has the following formula, copied down
=IF(ISNUMBER(MATCH(SmallNumber,B3:H3,0)),TRUE,FALSE)
Cell B15 has the following formula, copied across:
=IF(ISNUMBER(MATCH(SmallNumber,B3:B14,0)),TRUE,FALSE)
The intersection of the "TRUE" values is the location of the smallest number in the table. If you want to return the cell address of that, you can use the formula in cell D2
=CELL("address",INDEX(MyTable,MATCH(TRUE(),I3:I14,0),MATCH(TRUE(),B15:H15,0)))
You can see a sample file here.