+ Reply to Thread
Results 1 to 2 of 2

sumproduct with date range

  1. #1
    Registered User
    Join Date
    12-08-2008
    Location
    montreal
    Posts
    69

    sumproduct with date range

    I am trying to create a formula to count the number of rows that have a date greater than 11-mar-84 in column AA, I used the following formula and it returned 0, and I know there are some.
    =SUMPRODUCT('102_CAM_LOYALTY_TRACKING'!AA2:AA1000>DATEVALUE("11-mar-84"))

    Also need a formula to count the amount of rows in column B that have a date range of 06-mar-09 to 13-Mar-09.
    Last edited by vasto; 03-17-2009 at 12:31 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: sumproduct with date range

    For 1 condition use a standard COUNTIF

    =COUNTIF('102_CAM_LOYALTY_TRACKING'!AA2:AA1000,">11-MAR-84")

    For your other formula I would suggest you use:

    =SUM(COUNTIF('102_CAM_LOYALTY_TRACKING'!B2:B1000,{">=06-MAR-09",">13-Mar-09"})*{1,-1})

    ie given 1 condition can be applied twice better to use COUNTIF and SUM than use array (Sumproduct).

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1