+ Reply to Thread
Results 1 to 11 of 11

sumif for Text cells? What works?

  1. #1
    Registered User
    Join Date
    01-09-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    5

    sumif for Text cells? What works?

    Good afternoon, I am currently trying to do the same function as =sumif(range,”Value”,range) for cells that contain text and have the text show as the value in the cell. Any help would be greatly appreciated, thanks

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    sumif for Text cells???? What works???

    Since SUMIF returns numeric values....Can you post some sample data, what you want the formula to look for, and what value the formula should return?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,614
    That's very vague. Please attach a sample wrkbk or, at least describe the layout of the sheet. I.e., the cells/contents being examined and what you need from the formula.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    01-09-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    5
    I would like for it to look for "C" and return the data that is entered in the Cell, which will be an "Project Name", ie Excel Help Forum Building A.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Are you expecting to return a value from a single cell? This seems like a job for a lookup function rather than SUMIF. If you want to search for "C" in A1:A10 and return the corresponding value from B1:B10 try

    =VLOOKUP("C",A1:B10,2,0)

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    sumif for Text cells???? What works???

    Quote Originally Posted by Jirime View Post
    I would like for it to look for "C" and return the data that is entered in the Cell, which will be an "Project Name", ie Excel Help Forum Building A.
    It sounds like you need a lookup formula.

    Example:
    With this list in A1:B3

    Please Login or Register  to view this content.

    and
    D1: C

    This formula returns the Project Name associated with the value in D1
    Please Login or Register  to view this content.

    In the above example, the formula returns: New Project.

    Is that something you can work with?

  7. #7
    Registered User
    Join Date
    01-09-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    5
    Workbook layout is 45 individual sheets I am taking the values both numeric and alpha from 13 separate sheets to compile in to one sheet, I found that I can use the sum if for the numeric values for both ranges and single cells, to transfer the date by using =SUMIF('2008'!E5,"C",'2008'!P5), Yet I also need to sort the alpha values the same way to only be captured if it is “C”. I am not sure if I am explaining it correctly, but hopefully this will explain a bit better.

  8. #8
    Registered User
    Join Date
    01-09-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    5
    Quote Originally Posted by Ron Coderre View Post
    It sounds like you need a lookup formula.

    Example:
    With this list in A1:B3

    Please Login or Register  to view this content.

    and
    D1: C

    This formula returns the Project Name associated with the value in D1
    Please Login or Register  to view this content.

    In the above example, the formula returns: New Project.

    Is that something you can work with?




    Will this give me only the one that are in Column A that meet the stated criteria of "C"

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    If you are only looking at a single cell perhaps you should use an IF formula, i.e.

    =IF('2008'!E5="C",'2008'!P5,"")

    This will work for both numeric and text values

  10. #10
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,614
    Still confused.
    1. You said:
    Workbook layout is 45 individual sheets...
    It would help much if you would post a single sheet with representative data.
    2. and:
    ...I found that I can use the sumif for the numeric values for both ranges and single cells, to transfer the date by using =SUMIF('2008'!E5,"C",'2008'!P5)...
    SUMIF returns a "CONDITIONAL TOTAL". So, what do you mean when you say that you "transferred" data?
    3. finally:
    ...I also need to sort (??) the alpha values the same way to only be captured if it is “C”....
    Again, a workbook with, say, 25 - 30 rows of sample data (both "C" and "non-C") will help greatly.
    Last edited by protonLeah; 01-09-2009 at 05:35 PM.

  11. #11
    Registered User
    Join Date
    01-09-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Perfect!!!!!!

    Quote Originally Posted by daddylonglegs View Post
    If you are only looking at a single cell perhaps you should use an IF formula, i.e.

    =IF('2008'!E5="C",'2008'!P5,"")

    This will work for both numeric and text values

    THANKS!!!!!! This work perfectly!!!!

+ 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