+ Reply to Thread
Results 1 to 6 of 6

SUMIF reference cell is text only

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    43

    SUMIF reference cell is text only

    Is there a way to SUMIF cells in the reference column do not contain any numbers?

    I am successfully using the below to extract and sum numbers from the reference column (I), but I also need to sum the numbers in column B if column I contains the text in A47 (and other text) without any numbers. Sample is attached.


    {=SUM(IFERROR(IF(ISNUMBER(FIND(A47,$I$4:$I$44)),VALUE(LEFT($I$4:$I$44,FIND(A47,$I$4:$I$44)-1)),0),0))}
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,422

    Re: SUMIF reference cell is text only

    Do you expect 6 in B13, only the sum of the red numbers in column B?

    In that case please try in B13
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Result is 6.

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,422

    Re: SUMIF reference cell is text only

    In the sample sheet A47 is empty.
    I don't quite understand what exactly should happen with A47 if that cell is or is not filled. Can you give some examples of that?

  4. #4
    Registered User
    Join Date
    02-20-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: SUMIF reference cell is text only

    Thanks! I was actually trying to reduce B13 by the red numbers, so subtracting your formula from the broader sum formula as below works perfectly for the example. (Sorry about the confusion with cell A47, it was A13 on the sample; I pasted the formula before redacting my workbook into a sample size.)

    =SUMIF($I$4:$I$10,"*"&A13&"*",$B$4:$B$10)-SUMIF($I$4:$I$10,"?*"&A13&"*",$B$4:$B$10)

    NOTE FOR OTHERS: This solution works based on the layout of my text (single character preceding reference text) and is not generally applicable to all situations that the title references.

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,422

    Re: SUMIF reference cell is text only

    Good to see you were able to use my share of the solution. Would you consider adding reputation if you think the answer is worth it?

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,422

    Re: SUMIF reference cell is text only

    Thx for the rep.

+ 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] sumif less than a cell reference
    By Sasquatch2014 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2018, 02:34 PM
  2. [SOLVED] Help with SUMIF using a cell as a reference
    By UK_Richie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-16-2017, 06:18 PM
  3. [SOLVED] Shorten SUMIF + SUMIF + SUMIF each with same reference range but different criteria???
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2014, 09:25 PM
  4. sumif looking for a text reference not working
    By gjjh25 in forum Excel General
    Replies: 9
    Last Post: 12-07-2011, 09:12 AM
  5. Sumif with cell reference as criteria
    By sonyap in forum Excel General
    Replies: 4
    Last Post: 03-04-2010, 10:05 PM
  6. Using Cell Reference in SUMIF
    By tklaty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-13-2007, 10:47 PM
  7. I want to use sumif( > a cell reference) and not a value. How?
    By Corie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-05-2006, 03:25 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