Need correct  syntax right on a SUMIFS | INDIRECT formula (requires Excel 2007 or 2010)

Posted on 2013-01-29
Medium Priority
Last Modified: 2013-01-29
Hi Experts,

I am trying to get the syntax right on a SUMIFS formula (requires Excel 2007 or 2010) that uses an INDIRECT reference to other worksheets in the workbook.  While I've used both formulas before, I guess I haven't used both together, and I can't seem to get it right.  In the attached file, I am getting a #REF error trying to use this formula in Cell M7 of the Cumulative Sales Units sheet:

=SUMIFS(INDIRECT("'"&M$6&"'!&$F$7:$F$56"),INDIRECT("'"&M$6&"'!&$B$7:$B$56"),'Cumulative Sales Units'!B7)

As can be seen, in cells M8:M33, the same type of formula works but when I try to convert it to the above so I can copy the formulas across the page, using the Sheet names in the range M6:BL6, I get the #REF error in M7.

I appreciate any insights.

Question by:Jeffrey Smith
  • 3
  • 2
LVL 26

Accepted Solution

redmondb earned 2000 total points
ID: 38833551
Hi, Jeff,

Problem was a couple of unwanted ampersands...
=SUMIFS(INDIRECT("'"&M$6&"'!$F$7:$F$56"),INDIRECT("'"&M$6&"'!$B$7:$B$56"),'Cumulative Sales Units'!B7)

Edit: Oops, should there be a $ before the B7...
=SUMIFS(INDIRECT("'"&M$6&"'!$F$7:$F$56"),INDIRECT("'"&M$6&"'!$B$7:$B$56"),'Cumulative Sales Units'!$B7)


Author Comment

by:Jeffrey Smith
ID: 38833567
Thanks, Brian !

I think I was going blind looking at that ;--)

Author Closing Comment

by:Jeffrey Smith
ID: 38833570
I appreciate the quick and on-target response !
LVL 26

Expert Comment

ID: 38833605
Thanks, Jeff!

(For future reference, the secret is the F9 key - if you haven't come across the use of this while editing a formula then post here and I'll give you some notes.)

Author Comment

by:Jeffrey Smith
ID: 38833620
Thanks, Brian - I know about F9 ... but guess I just didn't think to employ it here.  Too much time working with this project ... but glad you got me sorted out.

- Jeff

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question