Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Formula with multiple critera

Hello,
I am trying to sum one column but need to pull critera from two different
columns. Does anybody have any suggestions?

Here's an example.

Coulmn A has property codes 33-40-41 etc..., coulmn B has the dollar amount
and coulmn C has if it is an F=fixed asset or N=non fixed asset. I need to
sum the dollar amounts in column B only if coulmn A = 33 and coulmn C=F (see
below) My total should be $1300.00. Is there a way without using a pivot
table?

A B C
33 50.55 N
40 100.25 F
40 200.00 N
33 800.00 F
33 500.00 F
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Formula with multiple critera

Try this:

=SUMPRODUCT(--(A2:A6=33),--(C2:C6="F"),B2:B6)

Better to use cells to hold the crieria:

E2 = 33
F2 = F

=SUMPRODUCT(--(A2:A6=E2),--(C2:C6=F2),B2:B6)

--
Biff
Microsoft Excel MVP


"jjohnsonofduluthMN" wrote in
message ...
Hello,
I am trying to sum one column but need to pull critera from two different
columns. Does anybody have any suggestions?

Here's an example.

Coulmn A has property codes 33-40-41 etc..., coulmn B has the dollar
amount
and coulmn C has if it is an F=fixed asset or N=non fixed asset. I need
to
sum the dollar amounts in column B only if coulmn A = 33 and coulmn C=F
(see
below) My total should be $1300.00. Is there a way without using a pivot
table?

A B C
33 50.55 N
40 100.25 F
40 200.00 N
33 800.00 F
33 500.00 F



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Formula with multiple critera

Anytime you need to address multiple criteria, consider using =SUMPRODUCT().

It's like SUMIF() on steriods.

=SUMPRODUCT((A1:A10=33)*(C1:C10="F"),(B1:B10))

For more information:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
Gary''s Student - gsnu200843


"jjohnsonofduluthMN" wrote:

Hello,
I am trying to sum one column but need to pull critera from two different
columns. Does anybody have any suggestions?

Here's an example.

Coulmn A has property codes 33-40-41 etc..., coulmn B has the dollar amount
and coulmn C has if it is an F=fixed asset or N=non fixed asset. I need to
sum the dollar amounts in column B only if coulmn A = 33 and coulmn C=F (see
below) My total should be $1300.00. Is there a way without using a pivot
table?

A B C
33 50.55 N
40 100.25 F
40 200.00 N
33 800.00 F
33 500.00 F

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Formula with multiple critera


Hi

Try
=Sumproduct($A$1:$A$100=33)*($C$1:$C$100="F")8$B$1 :$B$100)


--
Roger Govier
------------------------------------------------------------------------
Roger Govier's Profile: http://www.thecodecage.com/forumz/member.php?userid=81
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=82545

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
Sumproduct Lookup with multiple critera? RayportingMonkey Excel Worksheet Functions 4 February 5th 09 01:27 AM
sumif with multiple critera range and sum_range DocBrown Excel Worksheet Functions 5 December 21st 08 06:54 AM
Multiple critera with in a sumif statement Mark Allen Excel Discussion (Misc queries) 5 October 30th 08 07:09 PM
help with sumif formula with multiple critera Matt Excel Worksheet Functions 4 October 13th 07 06:56 PM
SUMPRODUCT multiple critera from different worksheets nx3 Excel Worksheet Functions 2 November 21st 06 02:47 PM


All times are GMT +1. The time now is 01:15 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"