LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
TT TT is offline
external usenet poster
 
Posts: 32
Default Sum multiple columns with Sumproduct

Hi there,

I have searched through the newsgroup to try and find an answer to my
problem but with no results yet.

What I'm looking for is some help regarding the sumproduct function and
using it in conjunction with the offset function.

My particular data set looks something like this (It is much larger...but
you'll get the idea):

A B C D E
Item Category Jan Feb Mar
1 1 5 25 15
1 2 10 15 5
2 1 5 10 20

What I need to come up with is a formula that calcs the month total for a
particular item and category and a yearly total of a particular item and
category.

For the february monthly total, I used a formula like so:

=SUMPRODUCT(--($A$2:$A$4=1),(--($B$2:$B$4=1),OFFSET($B$1,1,2,3,1))

This works fine. But my problem lies when I need to calc a yearly number
consisting of the sum of January AND February. If I expand my offset range
to OFFSET($B$1,1,1,3,2), I get errors.

Would someone be able to help me out??

Thanks,
TT
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combine multiple columns into two long columns, Repeating rows in first column [email protected] Excel Discussion (Misc queries) 2 July 31st 06 09:45 PM
Combine multiple columns into two long columns, Repeating rows in first column [email protected] Excel Discussion (Misc queries) 0 July 31st 06 05:07 PM
sumproduct of columns DJS Excel Worksheet Functions 5 July 19th 06 08:43 PM
Sumproduct doesn't work with columns... alternatives? qwopzxnm Excel Worksheet Functions 4 February 17th 06 10:36 PM
sumproduct of 2 columns with date and name excel guru i''m not Excel Discussion (Misc queries) 9 December 31st 05 05:32 PM


All times are GMT +1. The time now is 12:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"