?
Solved

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

Posted on 2013-01-29
5
Medium Priority
?
613 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 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)

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

800 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