Solved

formual request

Posted on 2014-09-10
4
84 Views
Last Modified: 2014-09-14
I need to write a sumif formula, I attempted as you will see in the attachment highlighted in green.  didn't work, can you help.
Formula-II.xls
0
Comment
Question by:pedwards3
  • 2
4 Comments
 
LVL 49

Expert Comment

by:Rgonzo1971
ID: 40316317
Hi,

What do you intend to sum?

Regards
0
 
LVL 27

Assisted Solution

by:Glenn Ray
Glenn Ray earned 250 total points
ID: 40317691
It appears that you are trying to use the SUMIF function using three-dimensional referencing like so:
=SUMIF(Jan:Jul!B2:B100,B1,Jan:Jul!F2:F100)

Unfortunately, you can't use 3D referencing with the SUMIF function.

{Posted too quick!}

There are a couple of possible workarounds.  One might be to insert a SUMIF on each monthly sheet, then use 3D referencing to get those values.  However, I suspect that your master sheet - RF_OtherL - will have several rows of values in column B that you want totals for in column I, so this won't work.

The alternative (found here on YouTube) would be to create a SUMPRODUCT of INDIRECT references to the sheets.  

One would need an array of all the sheet names to make this work, say in column L (ex., L1 = "Jan", L2 = "Feb", and so on).  Then you can use this function:
=SUMPRODUCT(SUMIF(INDIRECT("'"&$L$1:$L$6&"'!$B$2:$B$100"),B1,INDIRECT("'"&$L$1:$L$6&"'!$F$2:$F$100")))

Example file attached.

Regards,
-Glenn
EE-Formula-II.xls
0
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 250 total points
ID: 40318640
Hi,

If you want to keep it in the formula you could create the Month array within

=SUMPRODUCT(SUMIF(INDIRECT("'"&{"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","DEC"}&"'!$B$2:$B$100"),B3,INDIRECT("'"&{"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","DEC"}&"'!$F$2:$F$100")))
see cell I4

or create a named range with this data

={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","DEC"}

=SUMPRODUCT(SUMIF(INDIRECT("'"&Months&"'!$B$2:$B$100"),B3,INDIRECT("'"&Months&"'!$F$2:$F$100")))
see cell I3


Regards
EE-Formula-III.xls
0
 

Author Closing Comment

by:pedwards3
ID: 40321965
Thanks.  I've been out of office, apologize for the late solution acceptance.

Good job, both will suffice my needs.

Take care
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Scenario: Your operations manager has discovered an anomaly in your security system. The business will start to suffer within 15 minutes if it is a major IT incident. What should she do? We have 6 recommendations for managing major incidents (https:…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
Viewers will learn how to share Excel data with others from desktop Excel, as well as Excel Online via OneDrive, and embed an Excel file on a website.

911 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

21 Experts available now in Live!

Get 1:1 Help Now