+ Reply to Thread
Results 1 to 6 of 6

Sumifs with =left() criteria

  1. #1
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    Sumifs with =left() criteria

    Doing a sumifs formula and I want to reference just the first two characters of a column of data like below.

    =sumifs(sales,left(warehouse,2),"pw")........)

    I want to total sales of all warehouses that begin with the letters "pw" but I can't get it to work.

    Any ideas?

  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

    Re: Sumifs with =left() criteria

    You can't perform operations on the referenced ranges in a SUMIFS function.
    Try something like this:
    =SUMIFS(sales,warehouse,"pw*")........)

    The asterisk is a wildcard that matches zero or more characters. In that example, it matches on warehouse values that begin with "pw".

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    Re: Sumifs with =left() criteria

    Not quite but you might be able to help me figure it out.

    examples in the warehouse column will be as follows. pw01,pw02,pw15,pw21,pwpd,pw29,al01,al03,alpd,al21,ge01,ge12,gepd,ge20,jgpd

    I want to total all sales in pwpd.....easy
    I want to total all sales in gepd....easy
    I want to total all sales that start with pw but not pwpd

    I guess I can do the pwpd sum, then subtract that total from the pw* sum......unless there is a better way.

    I hope this makes since

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

    Re: Sumifs with =left() criteria

    You could add another criteria for <>pwpd
    =SUMIFS(sales,warehouse,"pw*",warehouse,"<>pwpd*")........)

  5. #5
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    Re: Sumifs with =left() criteria

    Looks like that worked. Thank you!!

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

    Re: Sumifs with =left() criteria

    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. sumifs with left / sum product
    By papasmurfuo9 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2014, 11:39 AM
  2. Replies: 3
    Last Post: 11-21-2012, 04:57 PM
  3. Replies: 5
    Last Post: 09-07-2011, 11:14 PM
  4. Replies: 1
    Last Post: 05-16-2011, 05:00 PM
  5. SUMIFS Formula with LEFT Function
    By Sultix in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-18-2009, 06:43 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