If I have a cell that has as its contents as sheet name, is there anyway I can use the cell's address to reference that sheet?
As an example, say I have in Sheet1, cell A1, the text Sheet2. And let's say I want to return the value of cell B2 on whichever sheet the text of A1 says.
So, on Sheet1, I might have this:
And on Sheet2, I might have this:Code:A 1 Sheet2 2
And on Sheet3, I might have this:Code:A B 1 2 purple
So, let's say I want to, in Sheet1 A2 to return the color in the sheet said in A1. So, if A1 said Sheet2, A2 returns purple, and if A1 said Sheet3, A2 returns red.Code:A B 1 2 red
Is this possible without using if statements (ie. just the address of the cell, A1)? I'm sorry I can't word this any better.
Last edited by nesthead98; 11-01-2009 at 06:05 PM.
Hi nesthead98,
Try this in cell A2 of Sheet1:
Cheers,Code:=INDIRECT(ADDRESS(2,1,1,1,A1))
Docendo discimus.
Please consider:
- Thanking those who helped you. Click the reputation icon
in the contributor's post and add Reputation.
- Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.
Ah-ha!
It works!
Thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks