Solved

# formual request

Posted on 2014-09-10
83 Views
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
Question by:pedwards3
• 2

LVL 48

Expert Comment

ID: 40316317
Hi,

What do you intend to sum?

Regards
0

LVL 27

Assisted Solution

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 48

Accepted Solution

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

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

### Suggested Solutions

In  today’s increasingly digital world, managed service providers (MSPs) fight for their customers’ attention, looking for ways to make them stay and purchase more services. One way to encourage that behavior is to develop a dependable brand of prod…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Viewers will learn a basic data manipulation technique of unpivoting data in Power Query for Excel 2013 and the importance of using good data. Start with data in a poor structure: Create a table on your data: Unpivot columns: Rename columns: …
Viewers will learn the basics of the new Quick Analysis feature in Excel 2013.