+ Reply to Thread
Results 1 to 4 of 4

Sum depending on searching contents of another column

  1. #1
    Registered User
    Join Date
    10-09-2009
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    38

    Sum depending on searching contents of another column

    Hi.

    In a list of transactions, I want to find those with a certain word included in 1 of the columns, and then add the figure in another column where this word is found.

    Thought about using search but have problems with the error when the word is not found.

    Any ideas, folks?

    Thanks
    Last edited by FCFalkirk; 12-15-2010 at 09:07 AM. Reason: solved

  2. #2
    Registered User
    Join Date
    11-18-2010
    Location
    Johannesburg South Africa
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Sum depending on searching contents of another column

    Describe your problem with "what I have and what I want"
    Better stil attach a spreadsheet containing your work so far.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sum depending on searching contents of another column

    try
    =SUMPRODUCT(--ISNUMBER(SEARCH("mytext",A1:A100)),C1:C100)
    oops better still
    =SUMIF(A1:A100,"*mytext*",C1:C100)
    Last edited by martindwilson; 12-15-2010 at 08:52 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    10-09-2009
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Sum depending on searching contents of another column

    Thank you, kind sir. Your great advice has solved my problem.

    Many thanks
    Emma

+ 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