+ Reply to Thread
Results 1 to 6 of 6

Issues with =SUMPRODUCT((A$3:A$160=C2)*(B$3:B$160="M"))

  1. #1
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Issues with =SUMPRODUCT((A$3:A$160=C2)*(B$3:B$160="M"))

    Evening,

    I am using the formula:

    =SUMPRODUCT((A$3:A$160=C2)*(B$3:B$160="A"))

    However, I now need to change the "A" at the end to A*, however this causes it to confuse the A* and A.

    Any ideas how to adapt the formula would be appreciated.

    Thanks
    Last edited by Cmorgan; 08-14-2013 at 02:41 PM.

  2. #2
    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
    52,926

    Re: Issues with =SUMPRODUCT((A$3:A$160=C2)*(B$3:B$160="M"))

    However, I now need to change the "A" at the end to A*, however this causes it to confuse the A* and A.
    if you mean A followed by a period, thats exactly what that will do...it will look for anything starting with A - apple, abc, a123, all of us....you name it
    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

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Issues with =SUMPRODUCT((A$3:A$160=C2)*(B$3:B$160="M"))

    If A* is the only 2-character entry, then you could make the second term:

    (LEN(B$3:B$160)=2)

    or you could add that on as a third term with an * before it (i.e. AND).

    Hope this helps.

    Pete

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Issues with =SUMPRODUCT((A$3:A$160=C2)*(B$3:B$160="M"))

    This regular formula returns the count of rows where the Col_A value matches C2 and the Col_B value contains 2 or more characters and begins with A
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Issues with =SUMPRODUCT((A$3:A$160=C2)*(B$3:B$160="M"))

    Many thanks

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Issues with =SUMPRODUCT((A$3:A$160=C2)*(B$3:B$160="M"))

    How about..

    =SUMPRODUCT((A$3:A$16=C2)*(EXACT(B$3:B$16,"A*")))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  2. ""All Day Event"" Check Box Issues
    By champs in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 04-03-2009, 07:10 AM
  3. Qustions about "COUNTIF" and "SUMPRODUCT"
    By grg in forum Excel General
    Replies: 4
    Last Post: 11-21-2008, 06:20 PM
  4. Sumproduct with column that "contains" instead of "equals"
    By Portuga in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-11-2008, 03:26 PM
  5. SUMPRODUCT(--ISNUMBER(FIND("AM",C5:160))*(k5:k160="")
    By redneck joe in forum Excel General
    Replies: 5
    Last Post: 08-18-2006, 03:31 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