View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme Bernard Liengme is offline
external usenet poster
 
Posts: 4,393
Default TOTAL A SPECIFIC COLUMN FOR EACH WORKSHEET

Send me (my private email) a copy of the file
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Wanda B" wrote in message
...
Thanks Bernard. I've popped in your formula but I get an error message
highlighting the , after the first criteria. Any particular reason this
would happen?
--
Wanda


"Bernard Liengme" wrote:

I have a sheet called January and a sheet called Recap
This seems to do what you want
=SUMPRODUCT(--(January!A1:A6=recap!B1:B6),--(January!E1:E6=recap!A1:A6),January!K1:K6)

Note that only in XL2007 can you use full column references as in
=SUMPRODUCT(--(January!A:A=recap!B:B),--(January!E:E=recap!A:A),January!K:K)

For more details on SUMPRODUCT
Bob Phillips
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
J.E McGimpsey
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Wanda" wrote in message
...
I work with 12 worksheets (XL2003) with recap sheets by department. I
have
been asked to add a new recap sheet but the formulas that I used for
the
others do not seem to work.

As an example, I need the total of column K in January if column A in
January matches column B in the recap and if column E in January also
matches
column A in the recap.

Help