PC Review


Reply
Thread Tools Rate Thread

2 dimension summing (sumifs with 2 axis?)

 
 
M
Guest
Posts: n/a
 
      10th Aug 2009
I am looking for a formula that will allow me to, for a row that meets a
given criteria, add all the columns together that meet another criteria.

For example, how can I add the value of the "A" columns in the "Alpha" row.

A B A B
Alpha 10 400 60 100
Beta 20 200 50 200
Delta 30 250 70 150

Of course my real data set contains hundreds of rows and dozens of columns,
with more row and columns being added every month.
 
Reply With Quote
 
 
 
 
M
Guest
Posts: n/a
 
      11th Aug 2009
That's sumproduct formula works perfectly. That sumproduct is a strange bird.

Thanks a ton!


"smartin" wrote:

> M wrote:
> > I am looking for a formula that will allow me to, for a row that meets a
> > given criteria, add all the columns together that meet another criteria.
> >
> > For example, how can I add the value of the "A" columns in the "Alpha" row.
> >
> > A B A B
> > Alpha 10 400 60 100
> > Beta 20 200 50 200
> > Delta 30 250 70 150
> >
> > Of course my real data set contains hundreds of rows and dozens of columns,
> > with more row and columns being added every month.

>
>
> Do you need a VBA solution? This might do it:
>
> Sub WksSumProduct()
> Dim ColLabel As String
> Dim RowLabel As String
> Dim Arg As String
>
> ColLabel = "A"
> RowLabel = "Alpha"
> Arg = "(($B$1:$E$1=" & """" & ColLabel & """" & _
> ")*($A2:$A4=" & """" & RowLabel & """" & _
> ")*($B$2:$E$4))"
> Debug.Print Evaluate("Sumproduct" & Arg)
> End Sub
>
> This is the same as the worksheet function
> =SUMPRODUCT(($B$1:$E$1="A")*($A2:$A4="Alpha")*($B2:$E4))
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
multi dimension/axis single series bar chart larry garka Microsoft Excel Charting 0 1st Nov 2009 01:20 AM
Re: I need Dell Resource CD/Drivers *Dell Dimension 4600, and a Dimension B110 Twayne Windows XP General 0 26th Sep 2009 01:40 PM
Combining Single Dimension to Multi Dimension Array Stathy K Microsoft Excel Programming 5 17th Feb 2009 06:18 PM
create a 3 dimension axis graph PH2 Microsoft Excel Charting 0 11th Mar 2008 10:30 PM
Array transfer - 1 dimension v. 2 dimension JWolf Microsoft Excel Programming 2 29th Jun 2004 01:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:32 PM.