View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tim Green Tim Green is offline
external usenet poster
 
Posts: 17
Default "Sumif" on multiple values

That "--" trick to turn a logical value into a number is also news to me, so
thank you for educating and informing me!

"Max" wrote:

In Sheet2

Put in B1:
=SUMPRODUCT(--ISNUMBER(MATCH(Sheet1!A2:A100,A1:A10,0)),Sheet1!C2 :C100)
Adapt the Sheet1 ranges to suit your actual
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Tim Green" wrote:
Hi Max,

Sorry if I wasn't clear, let me explain: my output needs to be something like:
Company Turnover (£000s)
Group X 120
Group Y 15
Company A 200

...where the 120 is a sum of all 10 accounts belonging to group X. The list
of accounts belonging to group X is the array 'Sheet 2'!A1:A10.

I hope that makes sense.

Thanks