+ Reply to Thread
Results 1 to 12 of 12

SUMPRODUCT Query with example book att

  1. #1
    Forum Contributor
    Join Date
    12-20-2006
    Posts
    127

    SUMPRODUCT Query with example book att

    I cant get the cell in column J to pick up on the data in my sumproduct query.....PLEASE HELP

    Book attached

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    No book is attached to your post!

  3. #3
    Forum Contributor
    Join Date
    12-20-2006
    Posts
    127

    here you go

    here you go
    Attached Files Attached Files

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

    Please Login or Register  to view this content.
    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.

  5. #5
    Forum Contributor
    Join Date
    12-20-2006
    Posts
    127

    why oh why

    i tried this method but without the +0 what is the +0 doing and why do i need it?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by jtwork
    i tried this method but without the +0 what is the +0 doing and why do i need it?
    It converts the date which is text (because of the quotes) to a numeric.

  7. #7
    Registered User
    Join Date
    05-10-2007
    Posts
    16

    Question

    What does the -- do in the formula?

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by NickiName
    What does the -- do in the formula?
    coerces the True/False results in each array to 1's and 0's, respectively, so that the arithmetic can be performed per Sumproduct() functionality.

  9. #9
    Registered User
    Join Date
    05-10-2007
    Posts
    16
    Thanks... Very useful!

  10. #10
    Forum Contributor
    Join Date
    12-20-2006
    Posts
    127

    whist ref to cell

    Is there a way to reffer to a cell for the date ratehr than placing the date in quotes and +0

    ive tried to datevalue() the cell and add 0 and have also tried to text(date,"dd/mm/yy")+0

    both dont seem to have worked?

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by jtwork
    Is there a way to reffer to a cell for the date ratehr than placing the date in quotes and +0

    ive tried to datevalue() the cell and add 0 and have also tried to text(date,"dd/mm/yy")+0

    both dont seem to have worked?
    You should be able to do that with just a cell reference:

    e.g.

    Please Login or Register  to view this content.
    where X1 houses the cell with a legitimate date in it.

  12. #12
    Forum Contributor
    Join Date
    12-20-2006
    Posts
    127

    sorted now thanks

    i sorted this in the end and could have sorted this out on my had i realised that the data exported by access was actually output as text even though it was numeric.

+ 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