+ Reply to Thread
Results 1 to 14 of 14

=SUMPRODUCT Problems with Date

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    7

    =SUMPRODUCT Problems with Date

    Hi All,

    Brand new to this, but require some help. Im using the =SUMPRODUCT function.

    I have used the =SUMPRODUCT successfully on the same sheet using the following;

    =SUMPRODUCT(--(E4:E303="Materials"),(F4:F303))

    - This produces the correct results

    However when I try the following;

    =SUMPRODUCT(--(B4:B303="01/05/2012"),(F4:F303))

    - I get no results. The format for the date is 01/05/2012 in cells B4:B303. Now if I change the string above to 01,05,2012 and then cell to 01,05,2012 it will work. However I cannot use the Filters correctly then. Am I missing something glaringly obvious or is it just that the Date with / will not function in this manner.

    Any help would be greatly appreciated.

    Regards
    Chris

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: =SUMPRODUCT Problems with Date

    Perhaps =SUMPRODUCT(--(B4:B303=DATEVALUE("01/05/2012"))*(F4:F303))

  3. #3
    Registered User
    Join Date
    07-04-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: =SUMPRODUCT Problems with Date

    Unfortunately that doesn't work, does anyone know of any other variations?

    It would be greatly appreciated

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: =SUMPRODUCT Problems with Date

    Hi and welcome to the forum.

    For me, best way is to use a cell reference for your date.

    Type in E1 your date and then use.

    =SUMPRODUCT(--(B4:B303=E1),(F4:F303))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    07-04-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: =SUMPRODUCT Problems with Date

    I think you have misunderstood the above, sorry

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: =SUMPRODUCT Problems with Date

    ..If you think so...

  7. #7
    Registered User
    Join Date
    07-04-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: =SUMPRODUCT Problems with Date

    The file is on the following link;

    http://www.maxsurl.com/link.php?ref=M1PRWTHSAB

    Can someone take a look for me?

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: =SUMPRODUCT Problems with Date

    Select column B and go to Data|Text to Columns... skip to 3rd window.. and select Date from column data format section, then select appropriate format from drop down beside the Date selection..

    click Ok.

    Does that fix it?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  9. #9
    Registered User
    Join Date
    07-04-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: =SUMPRODUCT Problems with Date

    No unfortunately not ;(

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: =SUMPRODUCT Problems with Date

    Can you attach the workbook here? use the paperclip icon in the Go Advanced reply window.

  11. #11
    Registered User
    Join Date
    07-04-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: =SUMPRODUCT Problems with Date

    Attached... Many thanks
    Attached Files Attached Files

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: =SUMPRODUCT Problems with Date

    I tried what Fotis1991 suggested, using $ to freeze you ranges, so you can copy down.

    =SUMPRODUCT(--($B$4:$B$303=K4),($F$4:$F$303))

    copied down.

    some are 0 since you don't have corresponding dates... but some have values.

    Btw, you have different date formats in column B and column K

  13. #13
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: =SUMPRODUCT Problems with Date

    Quote Originally Posted by cjeasom View Post
    Unfortunately that doesn't work, does anyone know of any other variations?

    It would be greatly appreciated
    Thank you for kindly indicating where it went wrong

  14. #14
    Registered User
    Join Date
    07-04-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: =SUMPRODUCT Problems with Date

    Legends! Cheers for this chaps...

+ 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