#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Sum (IF

Not sure if the 1st posting ever was posted - I can not see it - I
apoligize itf this is a 2nd posting

I can not get t his to work
=SUM(IF($E$1:$E$20,"=1",IF($I$1:$I$20,"=2",$A$1:$A $20)))

per the below help text this is excatly what I want to do
If column is = 1 and column i = 2 sum of the value in column A

Creates a total value for one range based on two conditions.
For example, you want to calculate the total value of the cells
in F5:F25 where B5:B25 contains "Northwind" and the range
C5:C25 contains the region name "Western".


=SUM(IF(B5:B25="Northwind",
IF(C5:C25="Western",F5:F25)))


*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Sum (IF

I think you are looking for a sumproduct formula...

=SUMPRODUCT(($E$1:$E$20=1)*($I$1:$I$20=2)*$A$1:$A$ 20)

Check out this link...
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
HTH...

Jim Thomlinson


"Kathy Goldie" wrote:

Not sure if the 1st posting ever was posted - I can not see it - I
apoligize itf this is a 2nd posting

I can not get t his to work
=SUM(IF($E$1:$E$20,"=1",IF($I$1:$I$20,"=2",$A$1:$A $20)))

per the below help text this is excatly what I want to do
If column is = 1 and column i = 2 sum of the value in column A

Creates a total value for one range based on two conditions.
For example, you want to calculate the total value of the cells
in F5:F25 where B5:B25 contains "Northwind" and the range
C5:C25 contains the region name "Western".


=SUM(IF(B5:B25="Northwind",
IF(C5:C25="Western",F5:F25)))


*** Sent via Developersdex http://www.developersdex.com ***

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Sum (IF

=SUMPRODUCT(('reference data'!$E$2:$E$125=1)*('reference
data'!$I$2:$I$125=1)*('reference data'!$A$2:$A$125))


this word - here is the formula I used
THANK YOU!



*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Sum (IF


Kathy,
Try this array formula. After you type in the formula enter it b
using CtrlShiftEnter and it should look like this.

{=SUM(IF($E$1:$E$20=1,IF($I$1:$I$20=2,$A$1:$A$20), 0))}

HT

--
Case

-----------------------------------------------------------------------
Casey's Profile: http://www.excelforum.com/member.php...nfo&userid=454
View this thread: http://www.excelforum.com/showthread.php?threadid=47594

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



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