LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 87
Default SumProduct & Countif?

I'm not sure of the best way to write this formula...

What I need to do is look to an external workbook for cells with a specific
value that happen to be within a specified Month/Year combination

AND

Divide that number by a count of the total number of cells within the same
Month/Year combination.

I have devised a SumProduct as follows:
=SUMPRODUCT(--(YEAR(LOB_ALT.xls!DATERANGE)=YEAR(TODAY()-1)),--(MONTH(LOB_ALT.xls!DATERANGE)=IF(Scorecard!$M$6="Q 1",1,IF(Scorecard!$M$6="Q2",4,IF(Scorecard!$M$6="Q 3",7,10)))),LOB_ALT.xls!CV_FOR_VAR)

But, all this does is SUM the cells I want... I need to COUNT the cells with
a value between 0 and 10.

Is there a COUNTPRODUCT or something else I should be using other then
SUMPRODUCT???

Thanks,
Ray
 
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
Countif or Sumproduct Tom Excel Worksheet Functions 2 April 25th 07 06:58 PM
Sumproduct and Countif together [email protected] Excel Discussion (Misc queries) 3 April 2nd 07 05:00 PM
CountIf or sumproduct timmulla Excel Discussion (Misc queries) 1 January 18th 07 03:49 AM
Sumproduct or countif? phatbusa Excel Discussion (Misc queries) 9 December 13th 06 10:48 PM
SumProduct or CountIf Kim Excel Worksheet Functions 7 July 9th 05 12:04 AM


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