Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default SUMIF with two or more variables

I am trying to use the SUMIF function with two variables.
What I have is a worksheet with multiple columns. Let's say columns A and B
have data (names) and column C has numbers. What I want to do is check for
criteria in columns A and B and add column C if they match.

Job Skill Type Hours
abc wri 3
xyz wri 2
abc ill 3
xyz wri 5
abc wri 3

On a seperate worksheet in the same workbook I want it to determine the
total hours that "abc" worked "wri" only.
I have tried to imbed an AND function as part of the SUMIF function but
can't get it to work.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default SUMIF with two or more variables

=SUMPRODUCT(--(A2:A10="abc"),--(B2:B10="wri"),C2:C10)

for better usability replace abc and wri with cell references

=SUMPRODUCT(--(A2:A10=D2),--(B2:B10=E2),C2:C10)

then instead of editing the formula when you want to change names just
change the contents of D2 and E2


--

Regards,

Peo Sjoblom




"B Benton" <B wrote in message
...
I am trying to use the SUMIF function with two variables.
What I have is a worksheet with multiple columns. Let's say columns A and
B
have data (names) and column C has numbers. What I want to do is check for
criteria in columns A and B and add column C if they match.

Job Skill Type Hours
abc wri 3
xyz wri 2
abc ill 3
xyz wri 5
abc wri 3

On a seperate worksheet in the same workbook I want it to determine the
total hours that "abc" worked "wri" only.
I have tried to imbed an AND function as part of the SUMIF function but
can't get it to work.



Reply
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 formula for two variables in two columns luciemaxine Excel Worksheet Functions 2 December 3rd 06 04:13 PM
Sumif with multiple variables les8 Excel Discussion (Misc queries) 5 April 8th 06 02:16 AM
SUMIF Formuale with 2 variables CiaraG Excel Worksheet Functions 3 February 15th 06 02:10 PM
How do I set up a nested SUMIF formula for a number of variables? Nancy Excel Worksheet Functions 2 January 5th 06 05:57 PM
SUMIF variables Steve Excel Discussion (Misc queries) 2 February 18th 05 01:32 PM


All times are GMT +1. The time now is 07:48 AM.

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

About Us

"It's about Microsoft Excel"