Solved

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

Posted on 2013-01-29
5
599 Views
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.

Jeff
EE-Example.xlsx
0
Comment
Question by:jeffreywsmith
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 26

Accepted Solution

by:
redmondb earned 500 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)

Regards,
Brian.
0
 
LVL 2

Author Comment

by:jeffreywsmith
ID: 38833567
Thanks, Brian !

I think I was going blind looking at that ;--)
0
 
LVL 2

Author Closing Comment

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

Expert Comment

by:redmondb
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.)
0
 
LVL 2

Author Comment

by:jeffreywsmith
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
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

749 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