+ Reply to Thread
Results 1 to 5 of 5

SUMIF - but including only items with certain characters included

  1. #1
    Registered User
    Join Date
    10-09-2009
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    38

    Thumbs up SUMIF - but including only items with certain characters included

    I can easily use SUMIF() to get totals based on the contents of cells in a column, but is there any way to do the same to add up, for example, only the cells that include the character "I" (or any other character) anywhere in the string?

    e.g.
    817001 - I - 16/07/14 (include this)
    3567777 23/6/14 (exclude this)
    235555 I 22/7/14 (include this)

    I know I can use the FIND function to look at each cell, but this would mean adding in an extra column to store the answer I need to use for the adding up. It's not my file and is live so I don't want to do that.

    Any ideas? Thanks.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: SUMIF - but including only items with certain characters included

    I'm not sure if this meets your requirement or not... Are you using a column to extract the countable digits? If so, use this instead. Only those with an I will come over...
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    10-09-2009
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: SUMIF - but including only items with certain characters included

    Hi,

    Thanks, I'm trying to do this without having an extra column. There are a number of ways I could do it with the extra column to store either the find results or the values for adding up. I don't want to change the format of the file being used at all as it is not mine and is live. The figure worked out will go into my own separate summary file without changing the original file. I need to be able to update regularly so I wouldn't want to just copy the file each time to work out the amount.

    Thanks

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: SUMIF - but including only items with certain characters included

    Try using wildcards, e.g.

    =SUMIF(B:B,"*I*",A:A)

    that will sum column A if the corresponding cell in column B contains an "I" (possibly amongst other data)

    Note: it isn't case-sensitive
    Audere est facere

  5. #5
    Registered User
    Join Date
    10-09-2009
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: SUMIF - but including only items with certain characters included

    Quote Originally Posted by daddylonglegs View Post
    Try using wildcards, e.g.

    =SUMIF(B:B,"*I*",A:A)

    that will sum column A if the corresponding cell in column B contains an "I" (possibly amongst other data)

    Note: it isn't case-sensitive
    Excellent. This works perfectly. I didn't know wildcards could be used with SUMIF. Thank you very much.
    Last edited by FCFalkirk; 08-04-2014 at 11:34 AM.

+ 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] Keep first 11 characters (including spaces) in a column.
    By janlee43 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-06-2013, 05:17 PM
  2. <SOLVED> 2007: SUMIF not working when text is included in sum range
    By 4am in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-22-2010, 12:06 PM
  3. Pivot Tables - % of Total Including *all* Items
    By ss2 in forum Excel General
    Replies: 4
    Last Post: 08-30-2006, 05:34 AM
  4. [SOLVED] count number of items in a row? help *file included*
    By Carlos in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-29-2005, 09:06 AM
  5. InputBox including list of items
    By Mirja in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2005, 05:06 AM

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