Solved

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

Posted on 2013-01-29
5
608 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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

717 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