Microsoft Office Forums


Reply
Thread Tools Display Modes

Find MAX for sumproduct

 
 
Mike
Guest
Posts: n/a

 
      04-29-2005, 12:48 AM
Good evening...
I have the formula: =SUMPRODUCT((B1:B5)*(A1:A5="baltimore")) to give the
sum of numbers that match Baltimore.
e.g.:

A B
--------------------------------
1. New York 85
2. Baltimore 33
3. New York 38
4. New York 77
5. Baltimore 45

I want to write the formula to find the largest (MAX) number that matches
Baltimore, in this case 45.

Any help would be appreciated.

Mike


 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a

 
      04-29-2005, 01:00 AM
Good morning ! (It's already 9 am, 29 Apr over here <g>)

Try, array-entered (Press CTRL+SHIFT+ENTER):
=MAX(IF($A$1:$A$5="Baltimore",$B$1:$B$5))
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <at>yahoo<dot>com
----
"Mike" <(E-Mail Removed)> wrote in message news:zvfce.40$%44.0@lakeread06...
> Good evening...
> I have the formula: =SUMPRODUCT((B1:B5)*(A1:A5="baltimore")) to give the
> sum of numbers that match Baltimore.
> e.g.:
>
> A B
> --------------------------------
> 1. New York 85
> 2. Baltimore 33
> 3. New York 38
> 4. New York 77
> 5. Baltimore 45
>
> I want to write the formula to find the largest (MAX) number that matches
> Baltimore, in this case 45.
>
> Any help would be appreciated.
>
> Mike
>
>



 
Reply With Quote
 
Mike
Guest
Posts: n/a

 
      04-29-2005, 01:24 AM
Thanks Max, works great!!
Mike
"Max" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Good morning ! (It's already 9 am, 29 Apr over here <g>)
>
> Try, array-entered (Press CTRL+SHIFT+ENTER):
> =MAX(IF($A$1:$A$5="Baltimore",$B$1:$B$5))
> --
> Rgds
> Max
> xl 97
> ---
> GMT+8, 1° 22' N 103° 45' E
> xdemechanik <at>yahoo<dot>com
> ----
> "Mike" <(E-Mail Removed)> wrote in message news:zvfce.40$%44.0@lakeread06...
>> Good evening...
>> I have the formula: =SUMPRODUCT((B1:B5)*(A1:A5="baltimore")) to give the
>> sum of numbers that match Baltimore.
>> e.g.:
>>
>> A B
>> --------------------------------
>> 1. New York 85
>> 2. Baltimore 33
>> 3. New York 38
>> 4. New York 77
>> 5. Baltimore 45
>>
>> I want to write the formula to find the largest (MAX) number that matches
>> Baltimore, in this case 45.
>>
>> Any help would be appreciated.
>>
>> Mike
>>
>>

>
>



 
Reply With Quote
 
Max
Guest
Posts: n/a

 
      04-29-2005, 01:38 AM
You're welcome !
Thanks for the feedback
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <at>yahoo<dot>com
----
"Mike" <(E-Mail Removed)> wrote in message news:A1gce.45$%44.11@lakeread06...
> Thanks Max, works great!!
> Mike



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Sumproduct If Q JulieD Excel Newsgroup 0 03-24-2005 03:16 PM
Re: Sumproduct If Q Dave Peterson Excel Newsgroup 0 03-24-2005 03:13 PM
sumproduct tlee Excel Newsgroup 8 12-20-2004 10:46 PM
sum(if ? or sumproduct whiZZfiZZ Excel Newsgroup 4 06-27-2004 02:08 PM
Sumproduct augam Excel Newsgroup 2 12-03-2003 08:47 AM



All times are GMT. The time now is 01:58 PM.