Forum Discussion

smmvols84's avatar
smmvols84
Copper Contributor
Feb 11, 2024

How to use tab name in a cell instead of typing tab name?

Often, we use something like =Current!A1 to retrieve data from tab name Current and print on Summary tab.   How can we use "Current" from Cell?  Thanks.

  • smmvols84 

    On the Summary tab, you could use the following formula as an example:

     

    =INDEX(INDIRECT("'" & A1 & "'!A1"), 1, 1)

    =INDIRECT("'" & A1 & "'!A1")

     

    Both the INDIRECT and INDEX/MATCH approaches achieve the same result, allowing you to reference cells dynamically based on the tab name specified in another cell. Choose the one that you find more convenient or suitable for your specific use case.

  • NikolinoDE's avatar
    NikolinoDE
    Gold Contributor

    smmvols84 

    On the Summary tab, you could use the following formula as an example:

     

    =INDEX(INDIRECT("'" & A1 & "'!A1"), 1, 1)

    =INDIRECT("'" & A1 & "'!A1")

     

    Both the INDIRECT and INDEX/MATCH approaches achieve the same result, allowing you to reference cells dynamically based on the tab name specified in another cell. Choose the one that you find more convenient or suitable for your specific use case.

Resources