using cell value as part of worksheet name

G

greg

I need to know how to use a cell value as part of
worksheet name in a formula. I have a number in column A,
and want to use it as an index for the worksheet name.
Example: run number in column A, average value from cells
d2 thru d4 (from another worksheet) in column B. So
something like "=average('sheetname|A1'd2:d4)". The other
worksheets all have a common prefix with a number at the
end.
 
P

Peo Sjoblom

Try

=AVERAGE(INDIRECT("'Sheetname"&A1&"'!D2:D44"))

--


For everyone's benefit keep the discussion in the newsgroup.

Regards,

Peo Sjoblom
 

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