ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Worksheet name in function (https://www.excelbanter.com/excel-worksheet-functions/54193-worksheet-name-function.html)

Harv

Worksheet name in function
 
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

Bob Phillips

Worksheet name in function
 
=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)


"Harv" wrote in message
...
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





All times are GMT +1. The time now is 05:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com