+ Reply to Thread
Results 1 to 6 of 6

SUMIF if cell cells contain a portion of text

  1. #1
    Registered User
    Join Date
    09-19-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    3

    SUMIF if cell cells contain a portion of text

    iUntitled.png

    Hi guys

    I need help using SUMIF function
    Please see attachment

    *Please ignore the exel sheet
    Please refer to the image attached instead'

    Thanks in advance
    Attached Files Attached Files
    Last edited by spsssw; 09-19-2013 at 05:06 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: SUMIF if cell cells contain a portion of text

    Try any of these.

    =SUMPRODUCT(1*(ISNUMBER(SEARCH({"KR1","KR2"},$A$4:$A$7)))*($B$4:$B$7))

    or

    =SUMPRODUCT((SUMIFS($B$4:$B$7,$A$4:$A$7,"*"&"KR1"&"*")+SUMIFS($B$4:$B$7,$A$4:$A$7,"*"&"KR2"&"*")))
    Last edited by ramananhrm; 09-19-2013 at 05:17 AM.
    Please click 'Add reputation', if my answer helped you.

  3. #3
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Valrico, FL USA
    MS-Off Ver
    Excel 2016
    Posts
    358

    Re: SUMIF if cell cells contain a portion of text

    See if the attached workbook is what you want
    Attached Files Attached Files

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: SUMIF if cell cells contain a portion of text

    welcome to the forum, spsssw. an alternative:
    =SUMIF(A4:A7,"KR1*",B4:B7)

    Edit:
    missed your picture. try:
    =SUM(SUMIF(A4:A7,{"KR1*","KR2*"},B4:B7))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Registered User
    Join Date
    09-19-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: SUMIF if cell cells contain a portion of text

    Thank you both great helpers!
    I really appreciate your help

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: SUMIF if cell cells contain a portion of text

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. SUMIF with cells that contain a PORTION of text conditions
    By mcarcharocles in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 10-30-2013, 06:31 AM
  2. Sumif containing portion of text
    By hektisk in forum Excel General
    Replies: 2
    Last Post: 04-06-2012, 07:18 AM
  3. cut a portion of a cell's contents and paste the cut portion into the net column
    By NJEvan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-12-2010, 05:08 AM
  4. Bold a portion of text in a cell
    By cr_ashok in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2007, 09:28 AM
  5. [SOLVED] Remove portion of text from cells
    By glenlee in forum Excel General
    Replies: 1
    Last Post: 09-23-2005, 09:05 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