Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Wazooli
 
Posts: n/a
Default Curious about SUMPRODUCT

Given the following array:

1024 20
100 30
600 20
700 10
800 10

Is there a COUNTIF equivalent to the following formula?
=SUMPRODUCT(--(A4:A8200),--(A4:A8/B4:B8=30))

I am just starting to appreciate the power of SUMPRODUCT, so I want to try
and understand limitations of it as well as replacement functions.
  #2   Report Post  
Dave R.
 
Posts: n/a
Default

Insofar as SUMPRODUCT will compute with elements from 2 arrays at once,
there is no equivilant COUNTIF (maybe unless it's teamed up with other
functions, but I wouldn't want to try it).

There are SUMPRODUCT statements that use the + operator (translates to "or"
in english) where 2 COUNTIFs can be used and summed together, though.


"Wazooli" wrote in message
...
Given the following array:

1024 20
100 30
600 20
700 10
800 10

Is there a COUNTIF equivalent to the following formula?
=SUMPRODUCT(--(A4:A8200),--(A4:A8/B4:B8=30))

I am just starting to appreciate the power of SUMPRODUCT, so I want to try
and understand limitations of it as well as replacement functions.



  #3   Report Post  
Bernard Liengme
 
Posts: n/a
Default

COUNTIF has only one criterion (notwithstanding that Help calls the last
parameter "criteria" in the plural) so there is equivalent to your formula.

best wishes

--
Bernard Liengme
www.stfx.ca/people/bliengme
remove CAPS in email address


"Wazooli" wrote in message
...
Given the following array:

1024 20
100 30
600 20
700 10
800 10

Is there a COUNTIF equivalent to the following formula?
=SUMPRODUCT(--(A4:A8200),--(A4:A8/B4:B8=30))

I am just starting to appreciate the power of SUMPRODUCT, so I want to try
and understand limitations of it as well as replacement functions.



  #4   Report Post  
Wazooli
 
Posts: n/a
Default

Thank you gentlemen. Much appreciated.

"Bernard Liengme" wrote:

COUNTIF has only one criterion (notwithstanding that Help calls the last
parameter "criteria" in the plural) so there is equivalent to your formula.

best wishes

--
Bernard Liengme
www.stfx.ca/people/bliengme
remove CAPS in email address


"Wazooli" wrote in message
...
Given the following array:

1024 20
100 30
600 20
700 10
800 10

Is there a COUNTIF equivalent to the following formula?
=SUMPRODUCT(--(A4:A8200),--(A4:A8/B4:B8=30))

I am just starting to appreciate the power of SUMPRODUCT, so I want to try
and understand limitations of it as well as replacement functions.




  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default

Also, check out http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--

HTH

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


"Wazooli" wrote in message
...
Thank you gentlemen. Much appreciated.

"Bernard Liengme" wrote:

COUNTIF has only one criterion (notwithstanding that Help calls the last
parameter "criteria" in the plural) so there is equivalent to your

formula.

best wishes

--
Bernard Liengme
www.stfx.ca/people/bliengme
remove CAPS in email address


"Wazooli" wrote in message
...
Given the following array:

1024 20
100 30
600 20
700 10
800 10

Is there a COUNTIF equivalent to the following formula?
=SUMPRODUCT(--(A4:A8200),--(A4:A8/B4:B8=30))

I am just starting to appreciate the power of SUMPRODUCT, so I want to

try
and understand limitations of it as well as replacement functions.








  #6   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
just in addition: maybe of interest for you:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Regards
Frank Kabel
Frankfurt, Germany
"Wazooli" schrieb im Newsbeitrag
...
Given the following array:

1024 20
100 30
600 20
700 10
800 10

Is there a COUNTIF equivalent to the following formula?
=SUMPRODUCT(--(A4:A8200),--(A4:A8/B4:B8=30))

I am just starting to appreciate the power of SUMPRODUCT, so I want to try
and understand limitations of it as well as replacement functions.



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
Sumproduct ... Empty Cells vs Spaces? Ken Excel Discussion (Misc queries) 9 December 17th 04 08:03 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM
Sumproduct in Excel Spreadsheet to read Access db table Jules Excel Worksheet Functions 1 November 9th 04 02:50 PM
SUMPRODUCT using offset from ROW if X marks the spot The Shaffer s Excel Worksheet Functions 3 November 2nd 04 06:14 AM


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