• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Using sheet name as part of a formula

BrianL

New Member
Hi, I would like to create a formula (in a sheet called main) that gets data from another worksheet e.g.
There is a sheet named 25 Sep
Cell A5 in sheet called main is "25 Sep"
I would like B5 formula (in main) to = G21 in sheet 25 Sept

similarly
Cell A6 (in main) is 26 Sep
B6 formula (in main) to = G21 in sheet 26 Sep

can anyone help please?
 
you can use the following formula in cell B5
Code:
=INDIRECT(A5&"!G21")

The same is applicable for the next one too
you can use the following formula in cell B5
Code:
=INDIRECT(A5&"!G21")

The same is applicable for the next one too

Thanks Ramesh - awesome
Though, when I fill the formula right the column G remains constant rather changing.
 
True Brian..as the cell address has been placed in the double quotes, it would not follow the automatic cell reference update practices (absolute / relative / mixed) when you copy/paste the formula..tht's the only trouble you have to experience :)
 
Hi ,

I learnt this recently !

The solution is :

=INDIRECT(A5 & "!" & CELL("address" ,G21))

Now when you copy to the right , the reference G21 will change.

Narayan
 
Back
Top