+ Reply to Thread
Results 1 to 5 of 5

Using Trim Function to remove excess space in Sumif function

  1. #1
    Forum Contributor
    Join Date
    05-17-2010
    Location
    Nigeria, Owerri
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    247

    Using Trim Function to remove excess space in Sumif function

    Hello all,

    Please in the attached file, I want to use trim function to remove excess space in "Emmanuel" and then add all the "33" bought by customer Emmanuel. The trim function works very well for Sumproduct but not working for Sumif. How do I make it work for Sumif?

    Thanks.
    Attached Files Attached Files
    Last edited by st_judeu@yahoo.com; 10-08-2013 at 10:43 AM.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Using Trim Function to remove excess space in Sumif function

    I don't think you can get it to work with Sumif. However, it would just give you the same answer as your sumproduct formula. So just use that instead?

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using Trim Function to remove excess space in Sumif function

    You can't use Trim (or any other funciton) on the CriteriaRange or SumRange in Sumif.

    But you can use wildcards
    =SUMIF(B3:B27,"*Emmanuel*",C3:C27)

  4. #4
    Forum Contributor
    Join Date
    05-17-2010
    Location
    Nigeria, Owerri
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    247

    Re: Using Trim Function to remove excess space in Sumif function

    Jonmo1 thanks greatly. It worked perfectly.
    Thanks again

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using Trim Function to remove excess space in Sumif function

    You're welcome.

+ 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] Trim Specific Values and Remove last right space
    By jantonio in forum Excel General
    Replies: 3
    Last Post: 05-02-2012, 08:40 AM
  2. Replies: 4
    Last Post: 02-07-2012, 07:47 AM
  3. Trying to trim a trailing space char and the Trim function isn't working
    By Psychochook in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2007, 11:28 PM
  4. Function to remove a space from text in cell WITHOUT macro??
    By me@me.com in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-27-2005, 10:05 PM
  5. Trim function doesn't clean out ASCII Code 160 (Space)
    By Ronald Dodge in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-27-2005, 12: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