Forum Discussion

Nick_Booth's avatar
Nick_Booth
Copper Contributor
Jun 30, 2023

How do I reference a cell in another sheet using a value from the active sheet

I want to reference cells in another sheet, I know how to reference them directly but I need to reference them from a value that points to the cell that is in the active sheet. 

I know this doesn't work but gives you the idea. 

=sheet1! (valve in active sheet C3)

Where cell C3 is the cell number I want to access in sheet1. 

Ie

I have a column (B) of numbers (eg 1-999)

And column (C) with the cell (eg ="N" & text(C1, 0) giving text N1 to N999

I've even got the whole lot in a cell that reads =sheet! N1 ... Etc, exactly as the direct reference, but it won't return the value. 

 

Hope you can help

 

4 Replies

  • Lorenzo's avatar
    Lorenzo
    Silver Contributor

    Hi Nick_Booth 

     

    Look at the https://support.microsoft.com/en-us/office/indirect-function-474b3a3a-8a26-4f44-b491-92b6306fa261 function, ex.: =INDIRECT("Sheet1!" & C3)

    • Nick_Booth's avatar
      Nick_Booth
      Copper Contributor
      I think it must be as my sheets are named. If change them back to sheet1 it works.
      It's because I have titles with spaces for the sheet names.
      I need to change the way it references the sheet.
      Thanks
      • Lorenzo's avatar
        Lorenzo
        Silver Contributor

        Nick_Booth 

         

        If you have space in your sheet names you must add simple quotes around the sheet name, as below:

        =INDIRECT("'My Other Sheet'!" & C3)

         

Resources