How to autofill references to different tabs in excel? - excel

I have a list of companies in a "dashboard" tab and all companies have their financials in tabs named after them (same names as listed in column A, cf picture attached). I would like to autofill the tab name in the formula. For example, EBITDA info is always in cell D12, so I would like V2 and V3 to automatically be ='1stdibs'!D12 and ='Abbott'!D12. Is there any way to get there?

You can use the INDIRECT formula to do this
example
=INDIRECT(A3 & "!D12") will reference and return the value stored in sheet 1stdibs cell D12
in order for this to work you have to use the & symbol to concatenate the cell that you want to reference with the sheet name. Notice the ! at the beginning of the cell reference, this is required to separate the cell reference from the sheet reference

Related

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??

Display the text referenced in another cell in Excel otherwise display a different text

I have an Excel workbook that contains a number of individual worksheets. The cells on one of the sheets are linked to individual cells on other worksheet in the same workbook. I'm using a direct cell reference that essentially says that whatever value is entered into a particular cell on one sheet also populates cells on the other sheet. I used the (=) function with the cell reference to accomplish this.
The issue I'm running into is that, even when the primary cell is left blank, the cells that populate from that primary cell will display 0, rather than a text that I want to be display like: "No data here" .
I want the subordinate cells to display "No data here" if the primary cell they're linked to are blank.
Is there a way of doing this?
Use the ! operator to reference cells on other worksheets.
So you can construct the formula like this:
=IF(Sheet1!A1="","Source cell is blank",Sheet1!A1)
Obviously, replace "Sheet1" with the name of your source data sheet.

How to create an offset formula to use the reference in a cell (the cell the formula points to), not the cell address the formula is in?

I thought this would be easy, but haven't figured it out on my own or found an existing answer online.
I have a worksheet set up to create charts from the contents of certain cells in a table. I'd like to be able to point one cell to a value in another worksheet and have all the related cell populate with the values using the formula in the one cell as an address reference.
For example, if I put the formula ='Source Data'!G19 in cell E3, I would like cell E4 below it to act like it has the formula ='Source Data'!G20 (one row below in the Source Data worksheet) and populate that value while cell F3 to the right would act like it had the formula ='Source Data'!H20 in it. So the new worksheet would just mirror the table of data from the Source Data worksheet for as many columns or rows as I need.
I'd tried to figure this out with offset, indirect, match and address functions, but have failed.
It is important to note that the formula needs to be able to identify the actual cell address, not just match the value from the formula because the same values show up multiple times in the Source Data worksheet.
Any help or direction is greatly appreciated.
Here's my approach:
I have a workbook with 2 spreadsheets Source Data and Results, on Source Data, I have the "Static" table that contains all my values from A1 to D12(This can be any number of cells, as long as you use an equal range in the Results sheet).
On Results, Cell A1 is reserved for the "guide" cell from Source Data, written in the following format: ''Source Data'!A1 (note the two single quotes at the begging). I chose to start at Cell B2 on the Results sheet, you can switch the formula however you like.
The desired result is achieved by using the following formula on B2:
=IF(CELL("contents",OFFSET(INDIRECT($A$1),ROW(B2)-2,COLUMN(B2)-2))<>0,CELL("contents",OFFSET(INDIRECT($A$1),ROW(B2)-2,COLUMN(B2)-2)),"")
then drag down and to the right the same number of maximum cells that exist on Source Data and the result will adjust accordingly.
I prepared a Google Sheets document with all of the information.

Google Docs - Reference a sheet from cell value

I have a column of "sheet names" and I need to use it to reference the sheets in a formula where I use an interval from these sheets.
How can I do it ?
I found something about indirect() but it seems restricted for single cell reference only.
Thank you
Indirect is not only for single cell reference.
You need it to be typed out like this (if we say you want A1:B10 in Sheet2 when you are in Sheet1):
Sheet2!A1:B10 (in A1), dont use '' around the reference.
=indirect(A1) would then type out the entire range A1:B10 from Sheet2.

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