Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / June 2006

Tip: Looking for answers? Try searching our database.

indirect function within sumif to reference other sheets

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
stacrafty@yahoo.com - 15 Jun 2006 15:22 GMT
Hi everyone,

I have a workbook with many sheets, most of them being financial
information, ie last year actual / budget, this year actual/budget etc.

I then have a sheet which I am making a report on to summarise all of
the other information. Each line is a sumif of all the relevant cost  /
income types. Ie office expenses would be a sumif on all the expense
classified as office expenses.

What i want (need) to do is have a drop down box where users can select
the data they want the report to be populated with. Ie they can select
last years budget numbers and all the sum if formulae will be
calculated off last years budget sheet.

I think the way to do this is with the indirect formula within the sum
if, but I can't seem to get the syntax right.

Normally I would just have
=sumif(bud0506!$g$g,sheet1$a$1,bud0506!$i$i)
so I want the sheet to be dynamic, so i have a drop down menu linked to
cell a2, so cell a2 would have bud0506 in it, so i then would have
=sumif(indirect($a$2&$g$g),sheet1$a$1,indirect($a$2&$i$i)

But I just can't seem to get the syntax correct, any help would be
greatly appreciated.
Bob Phillips - 15 Jun 2006 16:16 GMT
=SUMIF(INDIRECT("'"&$a$2&"'!G:G"),Sheet1!$A$1,INDIRECT("'"&$a$2&"'!I:I"))

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

> Hi everyone,
>
[quoted text clipped - 22 lines]
> But I just can't seem to get the syntax correct, any help would be
> greatly appreciated.
stacrafty@yahoo.com - 15 Jun 2006 16:42 GMT
Thanks Bob that works - although you have to pay very close attention
to the syntax - the " ' " stuff is really easy to get wrong I found.
Bob Phillips - 15 Jun 2006 17:46 GMT
I know, that's why I did.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

> Thanks Bob that works - although you have to pay very close attention
> to the syntax - the " ' " stuff is really easy to get wrong I found.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.