+ Reply to Thread
Results 1 to 6 of 6

matching dates and data - SUMPRODUCT?

  1. #1
    Registered User
    Join Date
    07-01-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    61

    matching dates and data - SUMPRODUCT?

    Hi all,

    From the attachment I am trying to figure out what formula I need to use to do the following:

    Match Column B with Column K so that I can see the mode of trans on each date or ideally within a range of dates. For example, I would like to see how many AF between 1st Feb and 28th Feb and so on.

    Many thanks in advance for your assistance.
    Attached Files Attached Files
    Last edited by sav1979; 05-15-2011 at 04:31 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,000

    Re: matching dates and data - SUMPRODUCT?

    =SUMPRODUCT(($K$6:$K$43="AF")*($B$6:$B$43>=DATE(2011,2,1))*($B$6:$B$43<=DATE(2011,2,28)))

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: matching dates and data - SUMPRODUCT?

    COUNTIFS() is preferable to SUMPRODUCT()

    =COUNTIFS($K$6:$K$43,"AF",$B$6:$B$43,">="&DATE(2011,2,1),$B$6:$B$43,"<="&DATE(2011,2,28))

    and the DATE() portions could (and should) be replaced with cell references holding the dates
    Last edited by Cutter; 05-15-2011 at 03:05 PM.

  4. #4
    Registered User
    Join Date
    07-01-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    61

    Re: matching dates and data - SUMPRODUCT?

    Thanks guys, I went with the COUNTIF, works perfectly. Thanks for your time and efforts

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: matching dates and data - SUMPRODUCT?

    You're welcome. Thanks for the "scales tap".

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,000

    Re: matching dates and data - SUMPRODUCT?

    Ditto. I'm struggling to break with the SUMPRODUCT Tradition (took a while to learn that).

    I realised that COUNTIFS would be better in 2007 but Cutter had already beaten me to it. Cheers

+ 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