+ Reply to Thread
Results 1 to 9 of 9

Three conditional sumproduct - what have I done wrong??

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    southampton
    MS-Off Ver
    Excel 2003
    Posts
    76

    Three conditional sumproduct - what have I done wrong??



    Hi all,

    I have the following:

    Please Login or Register  to view this content.
    AH:AH - a range of dates. Coutning those in Novemeber
    AJ:AJ - a range of subjects, counting those that match the subjects in the table
    F:F - a range of other subjects that includes Near Miss

    The code is coming back with NA

    Any thoughts?

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,079

    Re: Three conditional sumproduct - what have I done wrong??

    There's probably a text value in one of those three columns
    SUMPRODUCT works on ALL numbers only, if a cell contains text SUMPRODUCT will throw up an error.

    Put in one condition at a time so you can isolate which column it is
    If they have formulas in those columns it could be one of the cells is throwing up an error and causing your SUMPRODUCT error.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    05-14-2013
    Location
    southampton
    MS-Off Ver
    Excel 2003
    Posts
    76

    Re: Three conditional sumproduct - what have I done wrong??

    Oh dear the last condition is to look up a specific text among a column of text only values..

    Would I use a CountIF for this instead then

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Three conditional sumproduct - what have I done wrong??

    SP should work OK with this.

    As suggested, try 1 condition at a time and build up, see if you can find where it crashes.

    If you still have a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,079

    Re: Three conditional sumproduct - what have I done wrong??

    I may have made a mistake in my explanation.
    I'm sure there's some kind of problem with SUMPRODUCT and text though
    Perhaps someone could enlighten us on the specifics of SUMPRODUCT and text.

    Or maybe it's when a formula returns #N/A ?
    Last edited by Special-K; 11-27-2014 at 11:04 AM.

  6. #6
    Registered User
    Join Date
    05-14-2013
    Location
    southampton
    MS-Off Ver
    Excel 2003
    Posts
    76

    Re: Three conditional sumproduct - what have I done wrong??

    Hi Special-K,

    Thanks for the suggestion, I have found that the error is in the date column that it is not seeing the dates as dates.

    I have tried adding a column to change each date in column C into a 'date' by:
    Please Login or Register  to view this content.
    I even tried
    Please Login or Register  to view this content.
    But nothing seems to work!!

    Any suggestions??

  7. #7
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Three conditional sumproduct - what have I done wrong??

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Click just below left if it helps, Boo?ath?

  8. #8
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,984

    Re: Three conditional sumproduct - what have I done wrong??

    If you are using Excel 2003 as your profile says, you cannot use entire column references in a SUMPRODUCT formula.
    Everyone who confuses correlation and causation ends up dead.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Three conditional sumproduct - what have I done wrong??

    First, limit your ranges instead of having full column ranges. Excel 2003 can't handle the full columns in this formula.

    Make sure that your dates in column AH are real Excel recognizable dates.

    Having tried your formula with the above limitations, your formula will give you a count of the records that match all the criteria.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What's Wrong with my sumproduct Formula?
    By Rwilliams_09 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-23-2013, 11:38 AM
  2. [SOLVED] Why the SUMPRODUCT() function is wrong?
    By BNCOXUK in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-16-2013, 05:19 PM
  3. SumProduct going wrong
    By este994 in forum Excel General
    Replies: 3
    Last Post: 04-20-2011, 12:51 PM
  4. SUMPRODUCT gives wrong answer
    By DaveBarratt in forum Excel General
    Replies: 4
    Last Post: 10-15-2008, 06:41 AM
  5. [SOLVED] SUMPRODUCT is showing wrong Amount
    By msbutton27 in forum Excel General
    Replies: 2
    Last Post: 01-25-2006, 11:45 AM

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