Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Array Formula Question

I am receiving "the formula you typed contains an error" when I try to
execute the following formulas. Any ideas why these don't work?

=COUNTIF((--(J2:J2000=E8),--(K2:K2000=E9)),M2:M2000)
=MAX(IF((--(J2:J2000=E8),--(K2:K2000=E9)),M2:M2000)))

when this one does...

=SUMPRODUCT(--(J2:J2000=E8),--(K2:K2000=E9),M2:M2000)
--
iperlovsky
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Array Formula Question

The syntax of COUNTIF is COUNTIF(range-A, criteria, range-B)
The syntax of SUMPRODUCT is SUMPRODUCT ( array-1, array-2, ...)
You are making arrays so SP works, Countif does not
any help?
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"IPerlovsky" wrote in message
...
I am receiving "the formula you typed contains an error" when I try to
execute the following formulas. Any ideas why these don't work?

=COUNTIF((--(J2:J2000=E8),--(K2:K2000=E9)),M2:M2000)
=MAX(IF((--(J2:J2000=E8),--(K2:K2000=E9)),M2:M2000)))

when this one does...

=SUMPRODUCT(--(J2:J2000=E8),--(K2:K2000=E9),M2:M2000)
--
iperlovsky



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Array Formula Question

I am trying to count and max in this array: M2:M2000 based on 2 criterion:
J2:J2000=E8 and K2:K2000=E9. Any ideas?
--
iperlovsky


"Bernard Liengme" wrote:

The syntax of COUNTIF is COUNTIF(range-A, criteria, range-B)
The syntax of SUMPRODUCT is SUMPRODUCT ( array-1, array-2, ...)
You are making arrays so SP works, Countif does not
any help?
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"IPerlovsky" wrote in message
...
I am receiving "the formula you typed contains an error" when I try to
execute the following formulas. Any ideas why these don't work?

=COUNTIF((--(J2:J2000=E8),--(K2:K2000=E9)),M2:M2000)
=MAX(IF((--(J2:J2000=E8),--(K2:K2000=E9)),M2:M2000)))

when this one does...

=SUMPRODUCT(--(J2:J2000=E8),--(K2:K2000=E9),M2:M2000)
--
iperlovsky




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Array Formula Question

Does:

=SUMPRODUCT(MAX((J2:J200=E8)*(K2:K200=E9)*(M2:M200 )))

Do what you want?

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"IPerlovsky" wrote in message
...
I am trying to count and max in this array: M2:M2000 based on 2 criterion:
J2:J2000=E8 and K2:K2000=E9. Any ideas?
--
iperlovsky


"Bernard Liengme" wrote:

The syntax of COUNTIF is COUNTIF(range-A, criteria, range-B)
The syntax of SUMPRODUCT is SUMPRODUCT ( array-1, array-2, ...)
You are making arrays so SP works, Countif does not
any help?
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"IPerlovsky" wrote in message
...
I am receiving "the formula you typed contains an error" when I try to
execute the following formulas. Any ideas why these don't work?

=COUNTIF((--(J2:J2000=E8),--(K2:K2000=E9)),M2:M2000)
=MAX(IF((--(J2:J2000=E8),--(K2:K2000=E9)),M2:M2000)))

when this one does...

=SUMPRODUCT(--(J2:J2000=E8),--(K2:K2000=E9),M2:M2000)
--
iperlovsky






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Array Formula Question

=SUMPRODUCT(--(J2:J2000=E8),--(K2:K2000=E9),M2:M2000)

That one is getting a conditional sum

For a conditional count:

=SUMPRODUCT(--(J2:J2000=E8),--(K2:K2000=E9))

For the conditional max:

Array entered using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

=MAX(IF((J2:J2000=E8)*(K2:K2000=E9),M2:M2000))

Biff

"IPerlovsky" wrote in message
...
I am trying to count and max in this array: M2:M2000 based on 2 criterion:
J2:J2000=E8 and K2:K2000=E9. Any ideas?
--
iperlovsky


"Bernard Liengme" wrote:

The syntax of COUNTIF is COUNTIF(range-A, criteria, range-B)
The syntax of SUMPRODUCT is SUMPRODUCT ( array-1, array-2, ...)
You are making arrays so SP works, Countif does not
any help?
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"IPerlovsky" wrote in message
...
I am receiving "the formula you typed contains an error" when I try to
execute the following formulas. Any ideas why these don't work?

=COUNTIF((--(J2:J2000=E8),--(K2:K2000=E9)),M2:M2000)
=MAX(IF((--(J2:J2000=E8),--(K2:K2000=E9)),M2:M2000)))

when this one does...

=SUMPRODUCT(--(J2:J2000=E8),--(K2:K2000=E9),M2:M2000)
--
iperlovsky








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Array Formula Question

I never heard The syntax of COUNTIF is COUNTIF(range-A, criteria, range-B) ???

The correct syntax for COUNTIF
COUNTIF(range-A,criteria)

The correct syntax for SUMIF
SUMIF(range-A, criteria, range-B)



"Bernard Liengme" wrote:

The syntax of COUNTIF is COUNTIF(range-A, criteria, range-B)
The syntax of SUMPRODUCT is SUMPRODUCT ( array-1, array-2, ...)
You are making arrays so SP works, Countif does not
any help?
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"IPerlovsky" wrote in message
...
I am receiving "the formula you typed contains an error" when I try to
execute the following formulas. Any ideas why these don't work?

=COUNTIF((--(J2:J2000=E8),--(K2:K2000=E9)),M2:M2000)
=MAX(IF((--(J2:J2000=E8),--(K2:K2000=E9)),M2:M2000)))

when this one does...

=SUMPRODUCT(--(J2:J2000=E8),--(K2:K2000=E9),M2:M2000)
--
iperlovsky




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Array Formula Question

Condition Count

=COUNT(IF(J2:J2000=E8,IF(K2:K2000=E9,M2:M2000)))
=COUNT(IF(J2:J2000=E8,IF(K2:K2000=E9,1)))
=SUM(IF(J2:J2000=E8,IF(K2:K2000=E9,1)))

Ctrl+Shift+Enter

Condition Max

=MAX(IF(J2:J2000=E8),IF(K2:K2000=E9,M2:M2000)))

Ctrl+Shift+Enter

On Mar 10, 4:42 am, IPerlovsky wrote:
I am receiving "the formula you typed contains an error" when I try to
execute the following formulas. Any ideas why these don't work?

=COUNTIF((--(J2:J2000=E8),--(K2:K2000=E9)),M2:M2000)
=MAX(IF((--(J2:J2000=E8),--(K2:K2000=E9)),M2:M2000)))

when this one does...

=SUMPRODUCT(--(J2:J2000=E8),--(K2:K2000=E9),M2:M2000)
--
iperlovsky



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
Array, Formula, Constant, IF Statement Question???? SayWhatAuto Excel Discussion (Misc queries) 4 January 1st 07 09:36 PM
Array Question keeblerjp Excel Discussion (Misc queries) 4 June 20th 06 04:21 PM
Formula/Array question with dates Renee Excel Worksheet Functions 1 November 24th 05 01:52 AM
Multicell Array Formula and List Question John Mansfield Excel Worksheet Functions 11 March 21st 05 01:36 AM
SUM array formula question Dan Excel Worksheet Functions 6 November 8th 04 05:49 AM


All times are GMT +1. The time now is 06:22 PM.

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"