Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jlhart76
 
Posts: n/a
Default Nested SumIf statement


I'm trying to sum a group of numbers based on two variables. The SumIf
statement isn't working right, neither is SumProduct. Can someone help?
Here's what the formula should calculate:

IF (B2:B1589="ICM") and IF (C2:C1589="Yes"), then SUM (E2:E1589)


--
jlhart76
------------------------------------------------------------------------
jlhart76's Profile: http://www.excelforum.com/member.php...o&userid=30274
View this thread: http://www.excelforum.com/showthread...hreadid=499413

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default Nested SumIf statement

Hi

Try
=SUMPRODUCT(--(B2:B1589="BCN"),--(C2:C1589="Yes"),E2:E1589)
assuming values in E2:E1589 are numeric.

--
Regards

Roger Govier


"jlhart76" wrote
in message ...

I'm trying to sum a group of numbers based on two variables. The SumIf
statement isn't working right, neither is SumProduct. Can someone
help?
Here's what the formula should calculate:

IF (B2:B1589="ICM") and IF (C2:C1589="Yes"), then SUM (E2:E1589)


--
jlhart76
------------------------------------------------------------------------
jlhart76's Profile:
http://www.excelforum.com/member.php...o&userid=30274
View this thread:
http://www.excelforum.com/showthread...hreadid=499413



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John Michl
 
Posts: n/a
Default Nested SumIf statement

This works for me...
=SUMPRODUCT((B2:B1589="ICM")*(C2:C1589="YES")*(D3: D6))

- John
www.JohnMichl.com

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Daniel CHEN
 
Posts: n/a
Default Nested SumIf statement

Try to use array function (press ctrl+shift+enter after input the formula)

=SUM(IF((B2:B1589="ICM")*(C2:C1589="Yes"),E2:E1589 ))

Yongjun CHEN
Project Oriented Spreadsheet Development and Consulting
- http://www.geocities.com/udqservices/UDQConsulting.htm

=================================
"jlhart76" wrote in
message ...

I'm trying to sum a group of numbers based on two variables. The SumIf
statement isn't working right, neither is SumProduct. Can someone help?
Here's what the formula should calculate:

IF (B2:B1589="ICM") and IF (C2:C1589="Yes"), then SUM (E2:E1589)


--
jlhart76
------------------------------------------------------------------------
jlhart76's Profile:
http://www.excelforum.com/member.php...o&userid=30274
View this thread: http://www.excelforum.com/showthread...hreadid=499413



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Nested SumIf statement

I'd bet it doesn't, not with unequal ranges. #N/A is more likely.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"John Michl" wrote in message
oups.com...
This works for me...
=SUMPRODUCT((B2:B1589="ICM")*(C2:C1589="YES")*(D3: D6))

- John
www.JohnMichl.com





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John Michl
 
Posts: n/a
Default Nested SumIf statement

Thanks for the catch Bob. D3:D6 should be D2:D1589. I hadn't finished
editing my test formula.

- John

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default Nested SumIf statement

Hi

Where on earth did I get BCN from?
You were looking for ICM.
The formula should be (of course)
=SUMPRODUCT(--(B2:B1589="ICM"),--(C2:C1589="Yes"),E2:E1589)


--
Regards

Roger Govier


"Roger Govier" wrote in message
...
Hi

Try
=SUMPRODUCT(--(B2:B1589="BCN"),--(C2:C1589="Yes"),E2:E1589)
assuming values in E2:E1589 are numeric.

--
Regards

Roger Govier


"jlhart76"
wrote in message
...

I'm trying to sum a group of numbers based on two variables. The
SumIf
statement isn't working right, neither is SumProduct. Can someone
help?
Here's what the formula should calculate:

IF (B2:B1589="ICM") and IF (C2:C1589="Yes"), then SUM (E2:E1589)


--
jlhart76
------------------------------------------------------------------------
jlhart76's Profile:
http://www.excelforum.com/member.php...o&userid=30274
View this thread:
http://www.excelforum.com/showthread...hreadid=499413





  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jlhart76
 
Posts: n/a
Default Nested SumIf statement


It worked! Thanks so much.

& thanks to everyone else for helping me, I appreciate it.

Roger Govier Wrote:
Hi

Try
=SUMPRODUCT(--(B2:B1589="BCN"),--(C2:C1589="Yes"),E2:E1589)
assuming values in E2:E1589 are numeric.

--
Regards

Roger Govier



--
jlhart76
------------------------------------------------------------------------
jlhart76's Profile: http://www.excelforum.com/member.php...o&userid=30274
View this thread: http://www.excelforum.com/showthread...hreadid=499413

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
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
Problem with nested IF_OR statement DOOGIE Excel Worksheet Functions 7 June 24th 05 03:27 AM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
sumif statement Ted Metro Excel Worksheet Functions 1 January 7th 05 04:18 PM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM


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