+ Reply to Thread
Results 1 to 6 of 6

Sum data ignoring text using the sumproduct with logic

  1. #1
    Forum Contributor
    Join Date
    01-28-2008
    MS-Off Ver
    Excel 2016
    Posts
    149

    Sum data ignoring text using the sumproduct with logic

    Can someone please show me how to use the sumproduct with logic using logic such as (--(logic test))?

    The attached has a simple example. I thought using the * would return an error if it detects text, and using the comma would ignore the text.

    Thank you.
    Attached Files Attached Files

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

    Re: Sum data ignoring text using the sumproduct with logic

    I think, in this case, you have to use the asterisk (*) to multiply the matrices because they are different sizes.

    On the other hand, if the matrices are the same size, you can choose either approach.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.



    C14:C23=103 produces an array of TRUE or FALSE values. The double negative coerces these TRUE or FALSE values into 1 or 0 respectively. The matrix of 1 and 0 values is then multiplied by the matrix of values in F14:F23 and the results summed.

    Regards, TMS
    Trevor Shuttleworth - Excel Aid

    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
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,570

    Re: Sum data ignoring text using the sumproduct with logic

    This will ignore text:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    It's an array formula, it has to be entered with Ctrl + Shift + Enter.

    Well explained Trevor!
    Last edited by Jacc; 09-25-2014 at 04:53 PM.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2003,2007,2010
    Posts
    32,362

    Re: Sum data ignoring text using the sumproduct with logic

    @Jacc: thanks, and you're welcome.

    Regards, TMS

  5. #5
    Forum Contributor
    Join Date
    01-28-2008
    MS-Off Ver
    Excel 2016
    Posts
    149

    Re: Sum data ignoring text using the sumproduct with logic

    Thanks to all of you!

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

    Re: Sum data ignoring text using the sumproduct with logic

    You're welcome.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. logic behind sumproduct
    By ammartino44 in forum Excel General
    Replies: 4
    Last Post: 09-17-2014, 11:48 AM
  2. Sumproduct with multiple criteria and ignoring text values
    By soapy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-19-2014, 10:50 AM
  3. [SOLVED] Sumproduct with OR Logic
    By daffodil11 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-17-2014, 09:27 PM
  4. [SOLVED] SUMPRODUCT. using AND-OR logic with text
    By FAL22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-26-2013, 04:34 PM
  5. Ignoring text and errors with Sumproduct
    By SteveC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-01-2006, 02:10 PM

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