Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Magnus Oskarsson
 
Posts: n/a
Default Sum with multiple conditions in Excel 2000

I have a sum problem described below. I have checked the help, a book
and this newsgroup for similar examples and tried to mimic the code,
but with no success so far. So if you know how to solve this, please
reply with an explicit formula, and not something like "try array
formulas".

A B C D
1 P1 P2 Val Fea
2 MO 5 F1
3 JL 2 F2
4 MO 12 F1
5 JL 1 F3
6 JL 4 F1
7
8 P1: MO 5
9 JL 6
10
11 9 F1
12 2 F2
13 0 F3

Row 1 contains column headers and rows 2-6 data. Rows 8-13 contains
various sums for when there are non-blank values in the P1 column.
Rows 14- (which I have omitted) contains similar sums related to when
the P2 column is populated.

C8 is a formula that sums up the values in the Val column where the
value in the P1 column equals that in B8. C9 i similar. This is no
problem, I use SUMIF (actually called SUMMA.OM in my swedish Excel
2000) which handles a single condition.

My problem is to write the formula in C11 (and C12 and C13). It should
sum up the values in the Val column where the value in the Fea column
matches D11, and the value in the P1 column is non-empty.
How do I do this?

Regards

Magnus Oskarsson
  #3   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
use SUMPRODUCT. See:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Regards
Frank Kabel
Frankfurt, Germany
"Magnus Oskarsson" schrieb im Newsbeitrag
om...
I have a sum problem described below. I have checked the help, a book
and this newsgroup for similar examples and tried to mimic the code,
but with no success so far. So if you know how to solve this, please
reply with an explicit formula, and not something like "try array
formulas".

A B C D
1 P1 P2 Val Fea
2 MO 5 F1
3 JL 2 F2
4 MO 12 F1
5 JL 1 F3
6 JL 4 F1
7
8 P1: MO 5
9 JL 6
10
11 9 F1
12 2 F2
13 0 F3

Row 1 contains column headers and rows 2-6 data. Rows 8-13 contains
various sums for when there are non-blank values in the P1 column.
Rows 14- (which I have omitted) contains similar sums related to when
the P2 column is populated.

C8 is a formula that sums up the values in the Val column where the
value in the P1 column equals that in B8. C9 i similar. This is no
problem, I use SUMIF (actually called SUMMA.OM in my swedish Excel
2000) which handles a single condition.

My problem is to write the formula in C11 (and C12 and C13). It should
sum up the values in the Val column where the value in the Fea column
matches D11, and the value in the P1 column is non-empty.
How do I do this?

Regards

Magnus Oskarsson



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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM
Excel 2000 file when opened in Excel 2003 generates errors? Doug Excel Discussion (Misc queries) 13 December 25th 04 10:20 PM
pivotcell object to excel 2000 Kellyc Excel Discussion (Misc queries) 0 December 1st 04 03:45 PM
Statistical Excel Function Question within Excel 2000... Drew H Excel Worksheet Functions 3 October 31st 04 06:55 PM


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