LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default sumproduct problem

It is used to coerce an array of TRUE/FALSE to their 1/0 equivalents. For
instance J3:J300=J3 will return TRUE for each match, FALSE for each
non-match. Thus you get an array like {TRUE,TRUE,FALSE,TRUE,FALSE,...}.
The -- changes that to {1,1,0,1,0,...} which SUMPRODUCT can work with.

--
__________________________________
HTH

Bob

"Norbert" wrote in message
...
you are right, I've changed it to this:
=SUMPRODUCT(--(J3:J300=3),--(N3:N300Date_no+TIME(17,30,0)))
Also looks much better.

Can you please explain the "--" in the formula?


Bob Phillips wrote:
I wouldn't use 17.5/24 personally. Although it will likely make little
difference in this case, fractions are often not accurate in representing
time due to the FP processor in Excel.




 
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 problem [email protected] Excel Worksheet Functions 6 December 12th 08 07:18 PM
sumproduct problem nada Excel Worksheet Functions 4 April 3rd 08 09:17 AM
sumproduct problem? Tolga Excel Discussion (Misc queries) 6 July 5th 06 05:27 PM
sumproduct problem andy New Users to Excel 2 March 29th 06 01:52 PM
Problem using sumproduct Hiughs Excel Worksheet Functions 4 March 5th 05 11:28 AM


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