Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mangesh_yadav
 
Posts: n/a
Default


=SUMPRODUCT(--($A$10:$A$15=A1),--($B$10:$B$15=B1),$C$10:$C$15)

The first part
$A$10:$A$15=A1
checks all the cells in the column, and when equal returns something
like
False, True, False, False, False
The -- preceding it converts this to
0,1,0,0,0
Same with the second column (B10:B15), The last column has actual
values. The sumproduct simply multiplies each element row-wise and then
adds up. So we have
0,1,0,0,0 * 0,1,0,0,0 * 11,12,13,14,15
=0,12,0,0,0
=12

You can select the cell which holds the formula and click on 'Evaluate
formula' to see how it works.

Mangesh

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=378013

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
Pivot table field types stevehere Excel Discussion (Misc queries) 2 June 1st 05 11:54 AM
Stop text from stringing into next field when empty NothingButRomance Excel Worksheet Functions 7 May 17th 05 02:22 AM
Stop text from stringing into next field when empty NothingButRomance Excel Worksheet Functions 2 May 15th 05 05:32 PM
Drop time in date/time field Gail Excel Worksheet Functions 1 March 21st 05 08:21 PM
Problems with Pivot Table Field Sorting in Excel 2002 Phoenix71555 Excel Discussion (Misc queries) 1 February 27th 05 11:25 PM


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