+ Reply to Thread
Results 1 to 7 of 7

Using text in a cell as criteria in SUMIFS

  1. #1
    Registered User
    Join Date
    10-16-2014
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2011 Mac
    Posts
    13

    Using text in a cell as criteria in SUMIFS

    Hi! I am struggling to find a solution to taking the text in a cell instead of just writing text to use as a criteria in a SUMIFS formula.

    For example,

    Screen Shot 2014-10-16 at 9.53.16 AM.png

    I can use the formula =SUMIFS(B1:B7,C1:C7,"*stream*") to get what I want, but what if I put the word stream into a cell?

    Is there any way to reference the text that is in the cell, such as =SUMIFS(B1:B7,C1:C7,"E13")? The problem is that the string of letters stream can appear anywhere in the cells in column C.

    Any help would be greatly appreciated! Thanks!

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Using text in a cell as criteria in SUMIFS

    =sumifs(b1:b7,c1:c7,"*"&e13&"*")
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    10-16-2014
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2011 Mac
    Posts
    13

    Re: Using text in a cell as criteria in SUMIFS

    I think I figured it out - =SUMIFS(B1:B8,C1:C8,"*"&E13&"*")

    Thanks!

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Using text in a cell as criteria in SUMIFS

    Try this: =SUMIFS(B1:B7,C1:C7,"*" & E13 & "*")
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: Using text in a cell as criteria in SUMIFS

    use this formula in cell where you want to your result

    =SUMIFS(A1:A10,B1:B10,D1)

    and in d1 ="*"&C1&"*"

    searching text in column c1

  6. #6
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Using text in a cell as criteria in SUMIFS

    Or may be an alternative

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Using text in a cell as criteria in SUMIFS

    Quote Originally Posted by boopathiraja View Post
    Or may be an alternative

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    For users with Excel>=2007, i can not find even 1 reason that someone will use SUMPRODUCT rather than SUMIF(S) in cases like this(not horizontally data..)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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] Sumifs using multiple text criteria
    By chouston in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-14-2014, 11:39 AM
  2. [SOLVED] SumIf / SumIfs with multiple Contains Text criteria
    By theweirdone in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-13-2012, 05:22 AM
  3. Replies: 3
    Last Post: 11-21-2012, 04:57 PM
  4. SUMIFS with specific text as criteria
    By Bjordion in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-05-2011, 04:26 PM
  5. Replies: 5
    Last Post: 09-07-2011, 11:14 PM

Tags for this Thread

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