formual request

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
Pete EdwardsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rgonzo1971Commented:
Hi,

What do you intend to sum?

Regards
0
Glenn RayExcel VBA DeveloperCommented:
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
Rgonzo1971Commented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Pete EdwardsAuthor Commented:
Thanks.  I've been out of office, apologize for the late solution acceptance.

Good job, both will suffice my needs.

Take care
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Spreadsheets

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.