+ Reply to Thread
Results 1 to 12 of 12

SUMIF Formula with exact text match, ignoring numbers

  1. #1
    Registered User
    Join Date
    01-27-2023
    Location
    hamburg, germany
    MS-Off Ver
    2021 for Mac
    Posts
    6

    SUMIF Formula with exact text match, ignoring numbers

    Hi guys!

    I need your help! I'm using the SUMIF formula in my inventory to calculate quantities that are referred to with a code. The information is located on another sheet. The code typically consists of 2-5 letters and 1-3 numbers so for example BESSR213. Now I've been using: =SUMIF(Sheet6!E5:E500,"*BES*",Sheet6!I5:I500) but that way all codes including "BES", e.g BESS, BESSH, and so on are included in the result.
    I've been investigating here and on other forums to find solutions and actually found someone here with the exact same problem but the solution =SUMPRODUCT(SUMIF(Sheet6!$E5:$E500,CHOOSE({1,2,3},$A5&" *","* "&$A5,"* "&$A5&" *"),Sheet6!I5:I500)) does not work for me. The result is always 0. I've been trying to modify the formula but without success.

    Thanks in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: SUMIF Formula with exact text match, ignoring numbers

    Hi try to attach a worksheet with some relevant information and some espected results
    See the yellow banner at the top of this page
    "Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen."
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  3. #3
    Registered User
    Join Date
    01-27-2023
    Location
    hamburg, germany
    MS-Off Ver
    2021 for Mac
    Posts
    6

    Re: SUMIF Formula with exact text match, ignoring numbers

    Sorry, here the example.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: SUMIF Formula with exact text match, ignoring numbers

    All codes after letters begin with 0?
    In this case:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by tanasedn; 01-28-2023 at 05:36 PM.

  5. #5
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,411

    Re: SUMIF Formula with exact text match, ignoring numbers

    pls try this formula
    worksheet or Tab name : Sheet2
    Cell C4 formula , Drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-27-2023
    Location
    hamburg, germany
    MS-Off Ver
    2021 for Mac
    Posts
    6

    Re: SUMIF Formula with exact text match, ignoring numbers

    I could modify all the code to make all codes to begin with 0 after the letters but ideally, that should not matter.
    Thanks in advance!

  7. #7
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,411

    Re: SUMIF Formula with exact text match, ignoring numbers

    Hi @catsamjewelry You're Welcome. Glad to help . Thank You for the feedback.


    If you finally get a solution please mark your thread as SOLVED:
    - Click Thread Tools above your first post,you will see the word PREFIX on the upper left, press the button to select [SOLVED] select "Mark your thread as Solved".
    - Please click on the *Add Reputation button at the bottom left. Whoever helps you, give it to whoever you like

  8. #8
    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,036

    Re: SUMIF Formula with exact text match, ignoring numbers

    Hi.

    Is your forum profile showing the Excel PRODUCT that you need this request to work with? I have no idea what 15.13.3 means.

    The best solutions often rely on knowing WHICH Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date. If you aren't sure, in Excel go to File/Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent Excel PRODUCTS are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the Version number in your profile (e.g. MS365 (PC) Version 2211). The version number is in the About Excel section further down the Account page.

    Cheers,

    Glenn.
    Attached Images Attached Images
    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

  9. #9
    Registered User
    Join Date
    01-27-2023
    Location
    hamburg, germany
    MS-Off Ver
    2021 for Mac
    Posts
    6

    Re: SUMIF Formula with exact text match, ignoring numbers

    Just modified it. I'm working with excel 2015 for mac. In the "about" is displayed: version 15.13.3 (150815).
    I would be really thankful for a solution that does not require the first number of the code to be a 0.
    Thanks for your effort in advance!
    Last edited by catsamjewelry; 01-29-2023 at 05:30 AM.

  10. #10
    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,036

    Re: SUMIF Formula with exact text match, ignoring numbers

    You'll almost certainly need to use a helper column,as your Excel version is rather dated. I put it in sheet 1, but it can even be on another (hidden) sheet.

    The helper is:
    =IFERROR(LEFT(B4,MIN(IF(ISERROR(FIND({1;2;3;4;5;6;7;8;9;0},$B4)),"",FIND({1;2;3;4;5;6;7;8;9;0},$B4)))-1)&" ","")

    Then the formula is:

    =SUMIF(Sheet1!H:H,Sheet2!B4&" ",Sheet1!F:F)


    see file.
    Attached Files Attached Files

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

    Re: SUMIF Formula with exact text match, ignoring numbers

    Also, you can use this formula for the helper column:

    =LEFT(B4,AGGREGATE(15,6,FIND({1;2;3;4;5;6;7;8;9;0},$B4&0),1)-1)&" "

  12. #12
    Registered User
    Join Date
    01-27-2023
    Location
    hamburg, germany
    MS-Off Ver
    2021 for Mac
    Posts
    6

    Re: SUMIF Formula with exact text match, ignoring numbers

    Thanks for your time and effort!
    This actually worked out, I'm still considering getting newer hardware to run a newer version of excel since its quite a detour.
    But you made it possible with what I have. Really appreciate it!

+ 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. How to match cells that have numbers & text and aren't exact matches
    By manleyjd14 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-09-2020, 12:11 PM
  2. SUMIF Formula with exact match text
    By Perlapimpim in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-27-2019, 08:34 AM
  3. [SOLVED] sumif which finds text, not an exact match, but a close match instead
    By Beefy1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2014, 08:29 PM
  4. [SOLVED] Exact text match within a SUMIF function
    By afgoody in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-17-2013, 11:35 PM
  5. [SOLVED] Formula to add numbers but ignoring text
    By Ehezve in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-17-2013, 11:47 PM
  6. [SOLVED] Find Exact Match Text String Using Formula
    By sweetrevelation in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-12-2012, 10:53 AM
  7. Replies: 2
    Last Post: 03-13-2012, 07:01 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