Dear Deepak,

I have used following formula:-
{=SUM(LARGE(SUMPRODUCT(($A$1:$A$11=E1)*($B$1:$B$11>0)*($B$1:$B$11)),ROW($A$1:$A$3)))}

SumProduct will select the rows in which Column A data equal to E1, Column B
data greater than Zero.
LARGE function will fetch out 3 largest values, because ROW function will
fetch out (1,2,3) respectively, when used in Array format (Ctrl + Shift +
Enter)
and finally, SUM function is adding these 3 largest values.

Hope this helps.

Best Regards,
-- 
DILIP KUMAR PANDEY
   MBA-HR,B COM(Hons.),BCA
Mobile: +91 9810929744
dilipan...@gmail.com
dilipan...@yahoo.com
New Delhi - 110062


On 11/8/09, Deepak Rai <daksh1...@gmail.com> wrote:
>
> Hi Dilip,
>
> Just wanted to know your formula in detail, I tried this formula also
> =SUMPRODUCT(($A$1:$A$11=$E$1)*($B$1:$B$11>0)*($B$1:$B$11)) , which is giving
> me the same result. I passed two criteria first is A1:A11 = E1 & second one
> is value greater then 0. Please explain for my knowledge please.
>
> Regards,
>
> Deepak
>
>
>  On Sat, Nov 7, 2009 at 6:53 PM, Deepak Rai <daksh1...@gmail.com> wrote:
>
>> Hi,
>>
>> Please find the enclosed attachment, hope this will help.
>>
>> Regards,
>>
>> Deepak
>>
>>
>>   On Fri, Nov 6, 2009 at 9:35 PM, Tony from Work <xerses...@gmail.com>wrote:
>>
>>>
>>> Hello!
>>> Given 2 unsorted columns I'm trying to find a formula that gives me
>>> the sum of the first 3 values greater than  zero and equal to a
>>> certain label, for example:
>>>
>>> D 2
>>> B 3
>>> A 1
>>> B 2
>>> C 3
>>> A -1
>>> A 0
>>> A 3
>>> C 2
>>> A 2
>>> A 5
>>>
>>> I have to find the sum only of the first 3 A that are greater than
>>> zero; in this case the result is 6.
>>>
>>> Many thanks for your time,
>>>
>>> Tony
>>>
>>>
>>>
>>>
>>>
>
>
> --
> Thanks,
>
> Deepak Rai
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
----------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe
-~----------~----~----~----~------~----~------~--~---

Reply via email to