Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Timmy Mac1
 
Posts: n/a
Default Sumproduct Help Required


Tried this yesterday and have only just realised that my message didn't
actually load up.

I have a column range of IDs named ALPHA alongside a column range of
values named BETA.

I want to find out, for a given ID in cell A1, both the number of
values which exceed a given value in B1, and the aggregate of those
values.

I can get the number of values by the following formula....

=SUMPRODUCT((ALPHA=A1)*(BETA=B1))

However I'm struggling to get an aggregate total of the relevant
values. I was kind of thinking ..

=SUMPRODUCT((ALPHA=A1)*(BETA=B1)*(BETA)) would do the trick but it
doesn't , I only get a return of #VALUE :(

Can anyone help me please ? :)


--
Timmy Mac1
------------------------------------------------------------------------
Timmy Mac1's Profile: http://www.excelforum.com/member.php...o&userid=15188
View this thread: http://www.excelforum.com/showthread...hreadid=345976

  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Timmy

=SUMPRODUCT(--(alpha=A1),--(beta=B1)*beta)

should give you what you're after

Cheers
JulieD

"Timmy Mac1" wrote in message
...

Tried this yesterday and have only just realised that my message didn't
actually load up.

I have a column range of IDs named ALPHA alongside a column range of
values named BETA.

I want to find out, for a given ID in cell A1, both the number of
values which exceed a given value in B1, and the aggregate of those
values.

I can get the number of values by the following formula....

=SUMPRODUCT((ALPHA=A1)*(BETA=B1))

However I'm struggling to get an aggregate total of the relevant
values. I was kind of thinking ..

=SUMPRODUCT((ALPHA=A1)*(BETA=B1)*(BETA)) would do the trick but it
doesn't , I only get a return of #VALUE :(

Can anyone help me please ? :)


--
Timmy Mac1
------------------------------------------------------------------------
Timmy Mac1's Profile:
http://www.excelforum.com/member.php...o&userid=15188
View this thread: http://www.excelforum.com/showthread...hreadid=345976



  #3   Report Post  
Timmy Mac1
 
Posts: n/a
Default


Julie

Many many thanks. I've got it to work with a slight change to what you
had..

=SUMPRODUCT((ALPHA=A1)*(BETA=B1),(BETA))

(sorry I wasn't sure what the -- represents )

It's really bugged me this thing so once again thanks for taking the
time to respond and getting me in the right direction :)



JulieD Wrote:
Hi Timmy

=SUMPRODUCT(--(alpha=A1),--(beta=B1)*beta)

should give you what you're after

Cheers
JulieD

"Timmy Mac1" wrote in
message
...

Tried this yesterday and have only just realised that my message

didn't
actually load up.

I have a column range of IDs named ALPHA alongside a column range of
values named BETA.

I want to find out, for a given ID in cell A1, both the number of
values which exceed a given value in B1, and the aggregate of those
values.

I can get the number of values by the following formula....

=SUMPRODUCT((ALPHA=A1)*(BETA=B1))

However I'm struggling to get an aggregate total of the relevant
values. I was kind of thinking ..

=SUMPRODUCT((ALPHA=A1)*(BETA=B1)*(BETA)) would do the trick but it
doesn't , I only get a return of #VALUE :(

Can anyone help me please ? :)


--
Timmy Mac1

------------------------------------------------------------------------
Timmy Mac1's Profile:
http://www.excelforum.com/member.php...o&userid=15188
View this thread:

http://www.excelforum.com/showthread...hreadid=345976



--
Timmy Mac1
------------------------------------------------------------------------
Timmy Mac1's Profile: http://www.excelforum.com/member.php...o&userid=15188
View this thread: http://www.excelforum.com/showthread...hreadid=345976

  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

Timmy,

Your formula works fine for me.

The only thing I can think is that you have a text string in one of the
cells in BETA.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Timmy Mac1" wrote in message
...

Tried this yesterday and have only just realised that my message didn't
actually load up.

I have a column range of IDs named ALPHA alongside a column range of
values named BETA.

I want to find out, for a given ID in cell A1, both the number of
values which exceed a given value in B1, and the aggregate of those
values.

I can get the number of values by the following formula....

=SUMPRODUCT((ALPHA=A1)*(BETA=B1))

However I'm struggling to get an aggregate total of the relevant
values. I was kind of thinking ..

=SUMPRODUCT((ALPHA=A1)*(BETA=B1)*(BETA)) would do the trick but it
doesn't , I only get a return of #VALUE :(

Can anyone help me please ? :)


--
Timmy Mac1
------------------------------------------------------------------------
Timmy Mac1's Profile:

http://www.excelforum.com/member.php...o&userid=15188
View this thread: http://www.excelforum.com/showthread...hreadid=345976



Reply
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
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Another Sumproduct & #N/A problem Dave Davis Excel Worksheet Functions 3 January 10th 05 03:59 PM
Sumproduct ... Empty Cells vs Spaces? Ken Excel Discussion (Misc queries) 9 December 17th 04 08:03 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 05:11 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"