Is there anything that acts like =CELL("contents",A2) except returns the formula from A2 instead of the contents from A2?
I want to use a formula from one cell to build a similar formula in another cell.
A2 currently contains the formula =Tests!B1
I want to build a new formula that strips out the B and uses another cells data in my Results worksheet to create a new formula that pulls related data from Tests.
What version of Excel? 2013+ has FormulaText(...)
https://support.office.com/en-us/Article/FORMULATEXT-function-0a786771-54fd-4ae2-96ee-09cda35439c8
If not, check out this question's answer.
Related
A quick question on VLOOKUP.
I have two sheets ("Sheet2" acting as source or list of elements and "Sheet1" is where the VLOOKUP formula will be used)
I have created a name so that I can reuse the vlookup formula for A2 (Sheet1) also.
The issue is when I drag the formula to B2 in Sheet1 (where I want the VLOOKUP to be applied) it is showing me error and upon inspection I found that the variable I created "qw" is dynamically changing for every row.
See below :
QUESTION :
Can someone tell me how to apply VLOOKUP formula to B2 in Sheet1 ?.
While defining name range you should use the absolute reference for eg. If you want to set the name range to qw then its reference should be like =Sheet1!$A$1:$C$4 which means range get fixed. And if you drag the formula it will refer to same range
Is there a way to make the substitute function target cells that the formula isn't written in.
So an example would be cell A1 contains "A" but when cell B1 contains "A" cell A1 changes to "x"
The substitute function does this but I want to be able use the formula typed in a cell of my choosing.
No function can change a value in another cell. Functions only return values to the cell in which they reside. You need to change the cell manually or with VBA, or better yet, revise your data architecture to work with Excel, not against it.
My first post on here. I am looking for help on a problem I have encountered at work. I need a cell to recognize the name of a tab/worksheet from another cell, and pull up a value from that worksheet. FOr example, the sheet's name is 'Destination', I want something that goes to that work sheet and pull up the value in cell C1. The value will be in the same cell in every tab, so in this example, it will always be in C1. Ideally, I'd like a formula as I have never used VBA but if there is no way around it, I'd appreciate a simple VBA code as well.
I would like to copy this formula to multiple cells in the same column, where the name of the tab changes but the cell location does not.
Thanks for your help.
If you want to use a formula, use the INDIRECT formula. As an example, cell A1 contains the word destination. The below formula will pull information from the Destination Worksheet, Cell C1.
=INDIRECT(A1&"!C1")
Let me know if that helps.
quick excel question:
If I put values in cell B1 and B2.
Then write the following formula in cell A1:
=$B$1-$B$2
then I highlight cells B1 and B2 and move them to column C. the formula in A1 automatically adjusts for the move ie. formula now becomes:
=$C$1-$C$2
How would I get it to stick to column B and not switch to column C. I tried searching google but did not get right answers (probably am not phrasing question correctly).
The context of my problem is that formulas in one sheet are being calculated based on month end data which is placed in another sheet. Now I need to add April month end data. So I shift the old data to the right and input April's data, but the formulas are automatically adjusting for the shift and still refer to March's month-end data. This despite the formulas using absolute referencing.
Thanks for any help provided
The formula you are looking for is
=INDIRECT("B1")-INDIRECT("B2")
This will always refer to Cells B1 and B2 regardless of what you to do move the cells or add new columns etc.
This will allow you to simply insert a column for the new month.
Not a good spreadsheet design, you should really add new data to a new column.
However, if you are determined to stick to that design, copy and paste the old values to a new column, then delete the originals. Formulas will not be alterd by that.
I'm working in Excel 2010, and my question is how do I make a cell (say on one sheet to equal a specific value placed on another sheet). I thought the following formula would do it but it doesn't work.
=IF(COUNTIF(Name,$A2)=1,VLOOKUP($A2,Name,2,FALSE),''))
If I understand your question, you simply want one cell to represent the value of another cell from another sheet? If so, the formula will look like this: =[name of sheet]![cell reference] EG: =sheet2!A1
If used in cell A1 on sheet 1, this would put the value of cell A1 from sheet2 into A1 of sheet 1.
If you modify your question so that you reference the actual sheets & cells you're interested in, I can help you with the formula.
You can easily facilitate this by writing your formula in the bar, then when you need to reference a cell on a different sheet, simply navigate to the sheet & cell to insert it's address into the formula, then carry on with your formula if necessary.