+ Reply to Thread
Results 1 to 12 of 12

How to SUMIF from cells that contain certain word (among other words in a cell)

  1. #1
    Registered User
    Join Date
    08-31-2015
    Location
    Belgrade
    MS-Off Ver
    8.1
    Posts
    22

    How to SUMIF from cells that contain certain word (among other words in a cell)

    Hello Guys,

    Can anyone help me with this:

    qqqqqq.JPG


    Thanks!
    Stevan
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to SUMIF from cells that contain certain word (among other words in a cell)

    Try this:

    =SUMIF(D:D,"*Industrial (Always On)*",E:E)

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: How to SUMIF from cells that contain certain word (among other words in a cell)

    In "A1" mark * before after : Like *Industrial (Always On)*
    In "B2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: How to SUMIF from cells that contain certain word (among other words in a cell)

    Hi,

    For your uploaded sample, in B1 use:

    =SUMIF(D1:D1000,"*"&A1&"*",E1:E1000)

    Change adjust cell references/ranges to suit your actual data.

  5. #5
    Registered User
    Join Date
    08-31-2015
    Location
    Belgrade
    MS-Off Ver
    8.1
    Posts
    22

    Re: How to SUMIF from cells that contain certain word (among other words in a cell)

    Thank you so much, guys!
    This works, thanks!

    Stevan

  6. #6
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: How to SUMIF from cells that contain certain word (among other words in a cell)

    You're welcome, glad to help, thanks for the feedback.

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to SUMIF from cells that contain certain word (among other words in a cell)

    Glad we could help. Thanks for the rep!

  8. #8
    Registered User
    Join Date
    08-31-2015
    Location
    Belgrade
    MS-Off Ver
    8.1
    Posts
    22

    Re: How to SUMIF from cells that contain certain word (among other words in a cell)

    Hi Guys,

    does anyone know if this work with sumproduct?
    I think I will crash computer, trying over and over again and can't find why sumproduct can;t use this formula.
    Can anyone confirm if this doesn't work with sumproduct or I'm doing something incorrectly?

    Thanks,
    Stevan

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to SUMIF from cells that contain certain word (among other words in a cell)

    If you want to use SUMPRODUCT, you can do that like this:

    =SUMPRODUCT((ISNUMBER(SEARCH(A1,D$1:D$4)))*(E$1:E$4))

  10. #10
    Registered User
    Join Date
    08-31-2015
    Location
    Belgrade
    MS-Off Ver
    8.1
    Posts
    22

    Re: How to SUMIF from cells that contain certain word (among other words in a cell)

    Thanks a lot Falcon!
    It works

    I don't understand why sumproduct can't use the same formula format "*"&A1&"*" to pick up the cell that contains text from A1 cell as you guys showed me for sumif?

    Anyway, thanks one more time!

  11. #11
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: How to SUMIF from cells that contain certain word (among other words in a cell)

    If the SUMIF formula does what you need, you should stick with the SUMIF as it's more efficient (less resource intensive) and faster than SUMPRODUCT.

  12. #12
    Registered User
    Join Date
    08-31-2015
    Location
    Belgrade
    MS-Off Ver
    8.1
    Posts
    22

    Re: How to SUMIF from cells that contain certain word (among other words in a cell)

    Thanks Jtakw,

    I needed additional thing (to pull data between a specific data range, for a cell whose text is contained in another range of cells).
    I didn't know how to do this with sumif, but I guess there is a way.

    Thanks for the advice!
    S.

+ 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. [SOLVED] Extract word or words from Cell
    By cutebeach in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2017, 04:59 AM
  2. Transpose each word in sentence into individual cells/Count the repeat words...???
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 12-21-2013, 02:38 PM
  3. [SOLVED] detect when a particular set of words are followed by another word in the cell below
    By tlacloche in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-12-2013, 10:11 AM
  4. Splitting a cell with multiple words into a column of cells with one word.
    By Cr4zYb00 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2013, 03:39 PM
  5. Replies: 3
    Last Post: 04-26-2011, 11:57 AM
  6. [SOLVED] Delete words in cell if that word is in red
    By kaiser in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2005, 03:05 AM
  7. Separate last word in cell with more than 2 words?
    By Pat Mayton in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-24-2005, 12:06 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