Google Docs - Reference a sheet from cell value - reference

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.

Related

Unable to extend VLOOKUP formula

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

Need a cell to recognize sheet/tab name in another cell in the same sheet, and pull a value from that sheet

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.

What does an exclamation mark before a cell reference mean?

In a text about Excel I have read the following:
=SUM(!B1:!K1)
when defining a name for a cell and this was entered into the Refers To field.
What does this mean?
When entered as the reference of a Named range, it refers to range on the sheet the named range is used on.
For example, create a named range MyName refering to =SUM(!B1:!K1)
Place a formula on Sheet1 =MyName. This will sum Sheet1!B1:K1
Now place the same formula (=MyName) on Sheet2. That formula will sum Sheet2!B1:K1
Note: (as pnuts commented) this and the regular SheetName!B1:K1 format are relative, so reference different cells as the =MyName formula is entered into different cells.
If you use that forumla in the name manager you are creating a dynamic range which uses "this sheet" in place of a specific sheet.
As Jerry says, Sheet1!A1 refers to cell A1 on Sheet1. If you create a named range and omit the Sheet1 part you will reference cell A1 on the currently active sheet. (omitting the sheet reference and using it in a cell formula will error).
edit: my bad, I was using $A$1 which will lock it to the A1 cell as above, thanks pnuts :p

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.

Reference cells in another sheet using text in current sheet

I need to get numbers from cells in other sheets. I am currently doing the following in Sheet 1 in cell D14 (but also in another 100 cells):
=('Sheet Two'!$AA$69*'Sheet Three'!AA$70)
This gets me the information I need. As it happens though I have a cell in Sheet 1 with the names of the sheets I need the information from.
I would like a formula that references the cells in Sheet 1 to get the names so I wouldn't have to manually type in the different sheet names for 100 cells.
So if say I have written in text:
Cell A1: Sheet two
Cell A2: Sheet Three
I need something like:
=(***Name in Cell A1***!$AA$69*'***Name In Cell A2***'!AA$70)
=INDIRECT(INDIRECT("A1")&"$AA$69")*INDIRECT(INDIRECT("A2")&"$AA$70") seems to be of the nature of what you are asking for (where A1 contains ''Sheet Two'! but it looks as though a different layout might be much more effective, or use of Search and Replace.
You could use the INDIRECT formula as pnuts suggested, but simpler like this:
=INDIRECT("'",A1&"'!AA$69")*INDIRECT("'"&A2&"'!AA$70")

Resources