LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 5
Default Calculating a countif with sumproduct + Date

Hello,

Is it possible to improve this piece of code?

Currently I cannot run it, it tells me I need a ")" on the date paremeter.

Can somebody tell me what am I doing wrong?

Thanks in advance.

iIncidentsMC = iIncidentsMC + Application.WorksheetFunction.SumProduct(--(Sheets("Incidents").Range("F1:F65535"<=DATE(2012, 4, 31))*(--Sheets("Incidents").Range("F1:F65535"=Date(2012,4 ,1)*(Sheets("Incidents").Range("C1:C65535" = "Marcus Cominus"))
 
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 or Countif - Counting Occurances within a Date Range J_L_G Excel Worksheet Functions 1 March 9th 09 09:34 PM
Countif or sumproduct using a date range and another criteria michaelberrier Excel Discussion (Misc queries) 1 January 12th 09 02:25 AM
Calculating rates using sumproduct masterkeys Excel Worksheet Functions 0 April 26th 07 11:38 AM
Calculating recurring date in following month, calculating # days in that period Walterius Excel Worksheet Functions 6 June 4th 05 11:21 PM
SumProduct/CountIf dilemna + Date Range Jayded542 Excel Worksheet Functions 8 April 26th 05 01:05 AM


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