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.
Related
I'm working with an Excel spreadsheet and noticed something interesting.
When there's nothing in cell A1, there's no formula or value in cell B1.
When I enter a value in cell A1, cell B1 generates a formula by itself.
The same thing applies to entire columns A and B.
Does anyone know what function in Excel can make this happen?
I have a translation formula that references a different list of barcodes and Names. The formula looks up the barcode and replaces the German/French with English. I want to make this into a User defined formula but when I do this the formula only works for the defined cell and copies that cell result to all cells. How can I make this function so it references the highlighted cell?
My attempt at formula
=INDEX(('\server1\shared\DOCUMENTS\AMAZON[Index of barcode to title.xlsx]Sheet1'!$B$1:$B$781),MATCH(A3,('\server1\shared\DOCUMENTS\AMAZON[Index of barcode to title.xlsx]Sheet1'!$A$1:$A$781),0))
When I use the formula in the userdefined formula it does not reference the adjacent cell but the cell I used to make the formula.
What I am trying to achieve but I cannot figure out how to change the MATCH(A3 part into the selectable cell.
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.
Without using VBA, is it possible to have the data validation of a cell differ depending on the contents of another cell? For example, if "Yes" is entered into cell A1, then A2 is populated with a list of items. If on the other hand "No" is entered into A1, then A2 allows any value.
I can source different lists depending on the contents of the cell using the following formula as the Source in Data Validation:
=IF(A1="","",IF(A1="Yes",Sheet1!$C$1:$C$4,Sheet1!$D$1:$D$6))
However I am not sure whether this could be disabled completely if A1 is blank. Using the above formula, leaving A1 blank would not allow you to enter free text into the cell and attempting to do so would result in a data validation error.
Use the INDIRECT function. If the other cell contains a named range's name, then the dropdown will contain cells from the range.
There are forbidden characters but otherwise it works like a charm.
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.