+ Reply to Thread
Results 1 to 4 of 4

Adding text using sumproduct

  1. #1
    Registered User
    Join Date
    03-26-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Red face Adding text using sumproduct

    Got sheet with 2 columns I need to add - suggested solution is to use sumproduct - which works. Only problem is that it counts only text as it appears in the calculation. I need to count the responses to a question and the location of the submitter - sumproduct works but will not pick up lines where the reponse doesn't exactly match. For example: need to count "yes" but some entries in sheet are "yes " (spaces) - using a wildcard i.e. "yes*" not working - any ideas?

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Adding text using sumproduct

    You could either use SEARCH

    =SUMPRODUCT(--(ISNUMBER(SEARCH("yes",A1:A100)),--(other test))

    where A1:A100 = Answer range

    or TRIM the answer range prior to evaluating

    =SUMPRODUCT(--(TRIM(A1:A100)="yes"),--(other test))

  3. #3
    Registered User
    Join Date
    03-26-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Adding text using sumproduct

    Great the 1st one worked - much appreciated

    One other quick Q - I need to replicate across multiple columns but when I do the calc uses subsequent columns - when pasted - how can I get round this?

    thanks again...

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Adding text using sumproduct

    Not sure I understand the question - are you perhaps talking of absolute/relative referencing ? http://www.ozgrid.com/Excel/free-tra...n-16-basic.htm

+ 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