LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default VBA €“ Problem with compound SUMIF function

I am trying to select criteria from two columns and then do a sum on two
other columns. The first SUMIF works fine (with any single criteria) but I
am unable to add the second criteria. When I try, I get a €œtype mismatch€
error.

This works:
Total = SUMIF (Application.SUMIF (Range (€œL4:L500)", ItemEmp, Range
("M4:N500€))

This does not work:

Total = SUMIF (Application.SUMIF ( (Range (€œL4:L500") =ItemEmp) * (Range
(€œD4:D500") =ItemColor), Range ("M4:N500€))

Thanks,

gary
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUMIF function problem Zorba Excel Worksheet Functions 6 January 15th 09 05:40 PM
Excel SUMIF function problem harperma Excel Worksheet Functions 3 December 17th 07 09:40 PM
SUMIF Function Problem Chad Excel Discussion (Misc queries) 3 June 22nd 07 11:24 PM
Problem in SUMIF Function Kelvin Lee Excel Discussion (Misc queries) 1 August 25th 06 05:06 AM
SUMIF - Compound Condition Mike McLellan Excel Discussion (Misc queries) 3 January 11th 06 10:56 AM


All times are GMT +1. The time now is 01:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"