You can Use this =SUMPRODUCT((B2:B13>0)*(D2:D13)) Regards Aman S Arora
________________________________ From: excel-macros@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Jeffries Sent: Saturday, December 06, 2008 2:40 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: Required Formula Here's a function (TotalFee) that does what you describe. Take a look at the attached file. Tom On Thu, Dec 4, 2008 at 6:26 AM, Ahmedhonest <[EMAIL PROTECTED]> wrote: Please find the attach file and suggest your valuable answers Expecting for a faster reply -- Ahmed Bawazir --~--~---------~--~----~------------~-------~--~----~ Visit the blog to download Excel tutorials at http://www.excel-macros.blogspot.com To post to this group, send email to excel-macros@googlegroups.com For more options, visit this group at http://groups.google.com/group/excel-macros?hl=en Visit & Join Our Orkut Community at http://www.orkut.com/Community.aspx?cmm=22913620 Visit the blog to download Excel tutorials at http://www.excel-macros.blogspot.com To Learn VBA Macros Please visit http://www.vbamacros.blogspot.com To see the Daily Excel Tips, Go to: http://exceldailytip.blogspot.com -~----------~----~----~----~------~----~------~--~---