+ Reply to Thread
Results 1 to 2 of 2

using sumproduct with containing a word

  1. #1
    Registered User
    Join Date
    09-24-2008
    Location
    SC, USA
    Posts
    14

    using sumproduct with containing a word

    Hi i need to some help with sumproduct. what i need is a way to use sumproduct with a fuction that contains a word. this is an example but doesn't work. =SUMPRODUCT(B2:B17,--($A2:$A17= contains "john")).
    my problem is i have a sheet with names on it and some times people enter whole names and some times they dont. i need a way to sum up a number even if the name is "John S." or "S, John". Thanks

    Thanks for your help that worked.
    Last edited by johnjohn5; 12-03-2008 at 01:18 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =SUMPRODUCT((ISNUMBER(SEARCH("john",$A2:$A17))*(B2:B17)))
    See link for more tips for sumproduct

    http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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