Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now