Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 271
Default Sum if and statement

i am trying to put together a formula that sums a column based on the
information in two other columns. The two columns that need to be evaluated
have Dept name and Customer name. there are approximately 80 rows that need
to be evaluated in each column, and i want the sum to be only of the values
that match the criteria for the Dept & Customer names.

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,358
Default Sum if and statement

assuming your data is in cells A2:C100, Dept Name is col A, Cust Name is col
B, and value to sum is col C.

=SUMPRODUCT(--($A$2:$A$100=deptname),--($B$2:$B$100=custname),($C$2:$C$100))

Hope this helps.
--
John C


"Susan" wrote:

i am trying to put together a formula that sums a column based on the
information in two other columns. The two columns that need to be evaluated
have Dept name and Customer name. there are approximately 80 rows that need
to be evaluated in each column, and i want the sum to be only of the values
that match the criteria for the Dept & Customer names.

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
Sum if statement with a left statement Eric D Excel Discussion (Misc queries) 4 July 23rd 08 05:31 PM
SUMIF statement with AND statement Eric D Excel Discussion (Misc queries) 2 July 14th 08 07:24 PM
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM


All times are GMT +1. The time now is 10:11 PM.

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"