Sheet Name in a formula

P

playfoot

Likely a simply question.

I have a "changing cell", that is a cell for the user to enter in a
date. For example "Apr-04". This date also refers to Sheet within
the workbook by the same name. Down below, I have data tables,
forumlae, etc that use data from specific sheets. For example
=Apr-04!B3.

How do I make the formula so that it uses the selected date from the
changing cell to calculate. Ie, if the user selects Dec-04, then the
formula, tables, etc use =Dec04!B3 or whatever?

Thank you once again in advance.
 
J

JE McGimpsey

Likely a simply question.

I have a "changing cell", that is a cell for the user to enter in a
date. For example "Apr-04". This date also refers to Sheet within
the workbook by the same name. Down below, I have data tables,
forumlae, etc that use data from specific sheets. For example
=Apr-04!B3.

How do I make the formula so that it uses the selected date from the
changing cell to calculate. Ie, if the user selects Dec-04, then the
formula, tables, etc use =Dec04!B3 or whatever?

If your cell is, say, A1:

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

The single quotes are only necessary if your sheet names could have a
space in them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top