Worksheet name in function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a function similar to this:
=-SUMIF('11-04-05'!$G$2:$G$2986,'Refund Holds'!A8,'11-04-05'!$H$2:$H$2986)

The '11-04-05' is the name of a worksheet. How can I write this so as to be
able to put the name into a cell and have it automatically entered into all
of my formulas like this.

I hope that explains it alright. If not, let me know and I will try to
explain it better.
Thanks
 
=SUMIF(INDIRECT("'"&A1&"'!$G$2:$G$2986"),'Refund
Holds'!A8,INDIRECT("'"&A1&"'!$H$2:$H$2986"))


--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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

Back
Top