+ Reply to Thread
Results 1 to 12 of 12

Sumproduct

  1. #1
    Registered User
    Join Date
    01-20-2008
    Location
    Sevenoaks, Kent Great Britain
    MS-Off Ver
    2010
    Posts
    54

    Sumproduct

    Hi I've tried to work out my problem and have read the SumProduct notes but just cant seem to get it right.

    what I need to do:-

    If column C (rows 15-2500) = "Cheque Deposit" and column B = "Jan" then add the amount in column G as a running total.

    Many thanks

    David
    Last edited by EXCELNEWCOMER; 01-20-2010 at 02:29 PM.

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

    Re: Sumproduct Help

    Try

    =Sumproduct(--($C$15:$C$2500="Cheque Deposit"),--($B$15:$B$2500="Jan"),$G$15:$G$2500)

    This only works if "Jan" is text string written that way and not a date formatted as MMM

    If so, then

    =Sumproduct(--($C$15:$C$2500="Cheque Deposit"),--(TEXT($B$15:$B$2500,"MMM")="Jan"),$G$15:$G$2500)
    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.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sumproduct Help

    deleted -same as nbvc
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    01-20-2008
    Location
    Sevenoaks, Kent Great Britain
    MS-Off Ver
    2010
    Posts
    54

    Re: Sumproduct Help

    Hi I have put it in as follows but it is not picking up a number

    =SUMPRODUCT(--($C$15:$C$2500="*Cheque Deposit*"),--($B$15:$B$2500="*Jan*"),$G$15:$G$2500)


    Paying
    Jan £0.00 should be £1111
    Feb £0.00
    Mar £0.00
    Apr £0.00
    May £0.00
    June £0.00
    July £0.00
    Aug £0.00
    Sept £0.00
    Oct £0.00
    Nov £0.00
    Dec £0.00
    Date Issued Transaction Type Payable to or Recd From Chq # CC Date Amount Paid Amount Recd Recon'd
    1st January Cheque Deposit Allianz - Cornhill 11 22nd September £1,111.00 £5,890.42 Yes
    22nd September Commission from Insurer(Name Pls) Property Risk Mangement 12

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

    Re: Sumproduct Help

    Why do you have "wildcards" around "Jan"?

    is it an actual date in that range?

    Is so, then use:

    =Sumproduct(--($C$15:$C$2500="Cheque Deposit"),--(TEXT($B$15:$B$2500,"MMM")="Jan"),$G$15:$G$2500)

    and "Jan" in the formula above can be replaced by a cell reference in your summary table, so that you can copy the formula down without editing it..

  6. #6
    Registered User
    Join Date
    01-20-2008
    Location
    Sevenoaks, Kent Great Britain
    MS-Off Ver
    2010
    Posts
    54

    Re: Sumproduct Help

    Hi the date is just a text string selected from a drop down list. I dont really understand what you mean. Basically need it to look at c if the word Cheque Deposit appears in it and colums b has Jan in it add up column g.

    Its me being thick not your explanation but i dont have the knowledge to work it out.

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

    Re: Sumproduct Help

    If they are text strings containing just the word "Jan" then the first one should have worked...

    If more than just "Jan" is contained in the cell, then What about?


    =Sumproduct(--($C$15:$C$2500="Cheque Deposit"),--ISNUMBER(SEARCH("Jan",$B$15:$B$2500),$G$15:$G$2500)

    Maybe also look to see if your list has extra spaces before/after the strings... if so, fix them.

    If still a problem, post a sample workbook.

  8. #8
    Registered User
    Join Date
    01-20-2008
    Location
    Sevenoaks, Kent Great Britain
    MS-Off Ver
    2010
    Posts
    54

    Re: Sumproduct Help

    Hi I attach a copy of the worksheet as an attachment.

    David

    Thank you for your time.
    Attached Files Attached Files

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

    Re: Sumproduct

    Try:

    =SUMPRODUCT(--($C$15:$C$2500="Cheque Deposit"),--ISNUMBER(SEARCH(A2,$B$15:$B$2500)),$G$15:$G$2500)

    copied down...

  10. #10
    Registered User
    Join Date
    01-20-2008
    Location
    Sevenoaks, Kent Great Britain
    MS-Off Ver
    2010
    Posts
    54

    Re: Sumproduct

    Sorry to be ignorant but what does "copied down" mean

  11. #11
    Registered User
    Join Date
    01-20-2008
    Location
    Sevenoaks, Kent Great Britain
    MS-Off Ver
    2010
    Posts
    54

    Re: Sumproduct

    It works. If you have time would you be able to explain how each bit works and what it does?

    =SUMPRODUCT(--($C$15:$C$2500="Cheque Deposit"),--ISNUMBER(SEARCH(A2,$B$15:$B$2500)),$G$15:$G$2500)

    Many thanks

    David

  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

    Sumpoduct() is well explained here: http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Take a look..

+ 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