LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Explanation of SUMPRODUCT

Could someone please explain how the following works:

=SUMPRODUCT(1/(COUNTIF(A1:A10,A1:A1))

I understand this calculates the number of unique values in a list so if
A1:A5 contains 1 and A6:A10 contains 2 the answer is 2 (items). For example,
I don't understand how COUNTIF works in this situation i.e where the
comparator is an array.

In a recent question, Bob Phillips used SUMPRODUCT to convert an alpha
string e.g. abcde to a numbers (12345) and summed them. Any explanation of
how this works would also be appreciated.

I have looked at the XLD site article on SUMPRODUCT and understand the
basics but these more advanced uses are baffling me!

Many thanks in advance.

John

 
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
formula explanation Hoops Excel Discussion (Misc queries) 3 January 20th 10 03:59 PM
formula explanation Hoops Excel Discussion (Misc queries) 0 January 20th 10 03:54 PM
Explanation of when & how to use ( ) { } : ; , ! etc? Paul (Sydney Australia) New Users to Excel 4 May 2nd 07 01:54 AM
Explanation of code Matt Excel Programming 3 January 15th 04 12:12 PM
Formula Explanation Kirk[_4_] Excel Programming 2 November 24th 03 07:31 PM


All times are GMT +1. The time now is 11:34 PM.

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"