+ Reply to Thread
Results 1 to 5 of 5

Multiple SUMIF formula based on first few characters of cell...

  1. #1
    Forum Contributor
    Join Date
    01-28-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    147

    Multiple SUMIF formula based on first few characters of cell...

    Hi there,

    I was wandering if it is possible to do a SUMIF formula...based on 2 values and if the first few characters of a cell are xxx?

    So for example, in the example spreadsheet...

    I want the sum of column F if the value of C = Natural Person and the first 3 characters of cell A start with ISA
    I then want the same but C = Natural Person and the first 2 characters of cell A start with LD
    For the Legal Entity, I am presuming I can just use one SUMIF?

    I hope this is clear, but if not please do not hesitate to email.

    Thankyou so much
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,602

    Re: Multiple SUMIF formula based on first few characters of cell...

    Use this for your first query:

    =SUMIFS(F:F,C:C,"Natural Person",A:A,"ISA*")

    and this for your second:

    =SUMIFS(F:F,C:C,"Natural Person",A:A,"LD*")

    The asterisk is the wildcard character, meaning any (or none) characters.

    Hope this helps.

    Pete

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,891

    Re: Multiple SUMIF formula based on first few characters of cell...

    I can just use one SUMIF?
    Try:

    =SUM(SUMIFS(F:F,C:C,"Natural Person",A:A,{"ISA*","LD*"}))

  4. #4
    Forum Contributor
    Join Date
    01-28-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    147

    Re: Multiple SUMIF formula based on first few characters of cell...

    Dear Pete / Phuocam,

    Many thanks for coming back so quickly. Pete, your formulas were just what I was looking for. Thankyou very much for coming back so quickly.
    Phuocam, I appreciate your formula as well, but this adds the combined two together, wanted separately.
    Thankyou though.

    Regards

    Nim

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,602

    Re: Multiple SUMIF formula based on first few characters of cell...

    Hi Nim,

    glad it helped you, and thanks for the rep.

    Pete

+ 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. SUMIF or SUMPRODUCT formula to SUM totals based on multiple criteria
    By relmasri in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-01-2016, 01:08 PM
  2. [SOLVED] Need a formula to count values in a cell, separated by multiple characters
    By saeedaltaf in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-12-2015, 05:40 PM
  3. Look up a formula based on characters in a cell
    By mshaw200 in forum Excel General
    Replies: 13
    Last Post: 09-13-2015, 03:49 PM
  4. IF's and SUMIF's Formula to forecast based on multiple Criterias
    By Bolwahnn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-24-2014, 01:01 AM
  5. Sumif based on first few characters of a column
    By Mile029 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-14-2013, 06:08 PM
  6. Replies: 6
    Last Post: 09-06-2012, 01:07 AM
  7. SumIF formula based on text in Cell
    By gambinus2 in forum Excel General
    Replies: 1
    Last Post: 02-23-2009, 09:08 PM

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