Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stefan
 
Posts: n/a
Default sumproduct problem

Hi all. I am trying to count the number of occurrences of a set of
conditions in my table, but with one of the criteria including 2 conditions.
My current formula is:
=SUMPRODUCT(--(H3:H50="FLINDERS"),--(J3:J50="MODERATE"),--(B3:B50="STRAT
6"),--(K3:K50={"ALLOCATED","CONSIDER"}))

However, this produces a #value answer. If I simplify it to just have one
condition in the last set (e.g.
=SUMPRODUCT(--(H3:H50="FLINDERS"),--(J3:J50="MODERATE"),--(B3:B50="STRAT
6"),--(K3:K50="ALLOCATED"))
everything works fine and it will return the number of rows that meet this
criteria.
How can I make it work so that it will count rows that have "allocated" or
"consider" as the third condition?
Help appreciated - it's been driving me nuts!!
Oh for a 'not equal to' sign on the keyboard or in excel!!!
Thanks in advance to anyone who can help.
Steve

--
Stef
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default sumproduct problem

Hi

=SUMPRODUCT(--(H3:H50="FLINDERS"),--(J3:J50="MODERATE"),--(B3:B50="STRAT
6"),(K3:K50="ALLOCATED")+(K3:K50="CONSIDER"))


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"Stefan" wrote in message
...
Hi all. I am trying to count the number of occurrences of a set of
conditions in my table, but with one of the criteria including 2
conditions.
My current formula is:
=SUMPRODUCT(--(H3:H50="FLINDERS"),--(J3:J50="MODERATE"),--(B3:B50="STRAT
6"),--(K3:K50={"ALLOCATED","CONSIDER"}))

However, this produces a #value answer. If I simplify it to just have one
condition in the last set (e.g.
=SUMPRODUCT(--(H3:H50="FLINDERS"),--(J3:J50="MODERATE"),--(B3:B50="STRAT
6"),--(K3:K50="ALLOCATED"))
everything works fine and it will return the number of rows that meet this
criteria.
How can I make it work so that it will count rows that have "allocated" or
"consider" as the third condition?
Help appreciated - it's been driving me nuts!!
Oh for a 'not equal to' sign on the keyboard or in excel!!!
Thanks in advance to anyone who can help.
Steve

--
Stef



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stefan
 
Posts: n/a
Default sumproduct problem

Thanks Arvi - works a treat!!
Steve
--
Stef


"Arvi Laanemets" wrote:

Hi

=SUMPRODUCT(--(H3:H50="FLINDERS"),--(J3:J50="MODERATE"),--(B3:B50="STRAT
6"),(K3:K50="ALLOCATED")+(K3:K50="CONSIDER"))


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"Stefan" wrote in message
...
Hi all. I am trying to count the number of occurrences of a set of
conditions in my table, but with one of the criteria including 2
conditions.
My current formula is:
=SUMPRODUCT(--(H3:H50="FLINDERS"),--(J3:J50="MODERATE"),--(B3:B50="STRAT
6"),--(K3:K50={"ALLOCATED","CONSIDER"}))

However, this produces a #value answer. If I simplify it to just have one
condition in the last set (e.g.
=SUMPRODUCT(--(H3:H50="FLINDERS"),--(J3:J50="MODERATE"),--(B3:B50="STRAT
6"),--(K3:K50="ALLOCATED"))
everything works fine and it will return the number of rows that meet this
criteria.
How can I make it work so that it will count rows that have "allocated" or
"consider" as the third condition?
Help appreciated - it's been driving me nuts!!
Oh for a 'not equal to' sign on the keyboard or in excel!!!
Thanks in advance to anyone who can help.
Steve

--
Stef




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 Display Problem Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 0 April 19th 05 05:25 PM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
SUMPRODUCT Problem Mestrella31 Excel Discussion (Misc queries) 2 December 21st 04 07:01 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
SUMPRODUCT problem Jane Excel Worksheet Functions 3 November 8th 04 11:58 PM


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