+ Reply to Thread
Results 1 to 4 of 4

date counting..

  1. #1
    Registered User
    Join Date
    05-29-2007
    Posts
    2

    Question date counting..

    Basically I need to work out, for each financial year, the total spend of all clients.
    So looking for something like a count data in column X if date is between 2004 and 2005..

    But have no idea how to turn this into an excel formula!

    Any help would be greatly appreciated as I've got to the smack-head-against-wall stage and still no further forwards..

    Many thanks,

    Gem

  2. #2
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520
    [QUOTE=fairy_gemsy]Basically I need to work out, for each financial year, the total spend of all clients.
    So looking for something like a count data in column X if date is between 2004 and 2005..

    Assuming dates are within A1:A10, amounts within B1:B10

    Try something along these lines in say, C1:
    =SUMPRODUCT((A1:A10>=--"1-Jan-2004")*(A1:A10<--"1-Jan-2006"),B1:B10)

    C1 will return the sum of amounts in col B for which the dates in col A are between 2004 - 2005. Adapt the ranges and criteria to suit.
    Max
    Singapore

  3. #3
    Registered User
    Join Date
    05-29-2007
    Posts
    2
    [QUOTE=Max, Singapore]
    Quote Originally Posted by fairy_gemsy
    Basically I need to work out, for each financial year, the total spend of all clients.
    So looking for something like a count data in column X if date is between 2004 and 2005..

    Assuming dates are within A1:A10, amounts within B1:B10

    Try something along these lines in say, C1:
    =SUMPRODUCT((A1:A10>=--"1-Jan-2004")*(A1:A10<--"1-Jan-2006"),B1:B10)

    C1 will return the sum of amounts in col B for which the dates in col A are between 2004 - 2005. Adapt the ranges and criteria to suit.

    Thanks Max- will give it a go! xx

  4. #4
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520
    welcome, it should work fine.

+ 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