Excel user defined formula that references dynamic cell - excel

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.

Related

Excel Auto Generates Formula Based on Another Column?

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?

Making the Indirect formula more dynamic by making it change the row (cells) referenced in the formula

I have three excel sheets that are set out the same (they are filled with the same tables but have different values). I have now created another excel sheet which is suppose to sum the values at each cell. For example, take cell G10. All values in this particular cell, across these three excel spreadsheets are summed and presented in this new summary excel sheet. I have created the following ‘indirect’ formula to do it. (I want to use indirect formula as it refers to the name of each worksheet. It is appropriate for this workflow).
Equation (at cell G15)
=SUM((INDIRECT($G$2&"!G15:AV15",TRUE)),(INDIRECT($G$3&"!G15:AV15",TRUE),(INDIRECT($G$4&"!G15:AV15",TRUE))))
($G$2, $G$3,$G$4refers to the worksheet name;
G15:AV15 refers to the particular range…)
The formula works for the particular row, however I want to be able to copy and paste this formula to other cells below and get excel to recognise and change the row number accordingly…
Ie when I copy this formulae to cell value G20, I would want the formula change to reference “G20:AV20.” Does anyone have any recommendations??

EXCEL INDIRECT both sheet and cell dynamically

In excel 2016 on windows, i am trying to reference dynamically to a sheet and a cell.
For example:
=INDIRECT("'"&$L$2&"'!B33")
Where $L$2 has the sheet name and B33 has a numerical value.
However this does not allow me to have the cell B33 dynamic so i can propagate the formula.
I tried:
=INDIRECT("'"&$L$2&"'!"&B33)
But it throws a #REF!.
Any lead on how to build that formula so that both sheets and cells can be referenced dynamically?
Use INDEX and INDIRECT to refernce the full row, then when it drags to the right we change the column index:
=INDEX(INDIRECT("'"&$L$2&"'!33:33"),1,COLUMN(B33))
Now as is is drug across the column will choose which value to return.

Microsoft Excel replace data from cells from a different cell

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.

How to Make One Cell equal different cell values on multiple sheets and locations

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.

Resources