×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

EXCEL CELL REFERENCES

EXCEL CELL REFERENCES

EXCEL CELL REFERENCES

(OP)

I have a multi-page Excel worksheet in which I have references to cells on other sheets, e.g.  ='SHEET2'A1.  Is there a way to have the "SHEET2" page reference point to a cell instead with the cell contents having the page I wish the reference to point to.  In other words, the formula ='SHEET2'A1 would change to '<expression for a cell reference where the cell contains "SHEET2">'A1.  The end result would be the sheet referred to in the formula cell reference would be dependent on a value contained in a cell that I include in the expression, which could be SHEET2, SHEET3,etc.  I have tried different approaches, but get only errors.
 
Any ideas or suggestions?  Thanks.

RE: EXCEL CELL REFERENCES

try using the INDIRECT function.(see Excel Help)
 

RE: EXCEL CELL REFERENCES

Consider the following:

      Col A       Col B       COl C
Row1  Sheet        Cell       Value
Row2  Sheet2       A1         =INDIRECT("'"&A2&"'!"&B2)

So we are building the reference with text concatenation functions, then looking up the value with INDIRECT.

I love the indirect function.  Once you get a feel for how it works its surprising how many uses it can have, and it can be an elegant simplification for what might otherwise take several operations.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources