Reference Worksheet using a cell as the name - excel-formula

I'm trying to use text in a cell as a reference in another formula to a worksheet. Is this possible to be done?
The text in Cell F4 is changing as its formula dependant.
e.g:
In Cell F4 i have the text P10.
I have a worksheet with the name P10
In another cell i am trying to reference Cell F4 as the Worksheet name.
So my formula is "='F4'!M4" (instead of "='P10'!M4")
However this just errors or opens a file explorer to System 32.
I have tried using a defined name, formula or external reference and can't get this to work.

Related

How to autofill references to different tabs in 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

How to use cell contents as range address?

I have two versions of a workbook that we've run the "compare documents" function on, and therefore have a list of which cells which are different.
We would like to now format just these cells.
How do I use the content of one cell as the range to find on another sheet.
e.g. The content of cell A1 on Sheet1 is "B15". I want to activate cell B15 on Sheet2 (and then format it, and then loop, etc. but it's just that first referencing part I need).

how to link to more then one cell in a different sheet in excel excel

i'm trying to make a hyperlink that links to three cells in a different sheet. So in there's a box that says Type the cell reference.
I'm trying to link it to cell A2 and A3 and A6. how do i put that together.
I tried (A1,A3,A4) but it gives wrong reference.

Use a cell address that's the string content of another cell in an Excel 2013 VBA Range command

In cell A1, there is the string content of "B3", which is the address of another cell. The content of cell A1 changes based upon other user actions.
I want to get the content of A1 to be used in an Excel 2013 VBA macro Range(?).Activate command to make cell B3 the active cell.
I've searched, Googled, tried various approaches -- all to no success. Any help is greatly appreciated.
I think this is what you need (change the name of the sheet object):
Sheet1.Range(Sheet1.Range("a1").Value2).Activate
Or (if you want to use active sheet)
ActiveSheet.Range(ActiveSheet.Range("a1").Value2).Activate

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

Resources