+ Reply to Thread
Results 1 to 5 of 5

Using Wildcards with SUMIFS and an ARRAY

  1. #1
    Registered User
    Join Date
    11-18-2020
    Location
    Atlanta, GA
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Using Wildcards with SUMIFS and an ARRAY

    I am trying to create a SUMIFS formula that checks multiple criteria with a wildcard. If the cell contains and of these cases, "½" , "½ₓ", "½ ₓ", at the beginning of the string, I want the value column AN added to the sum.

    When I enter this formula below, I get the "There's a problem with this formula" error message.

    =SUM(SUMIFS($AN$4:$AN$487,$AP$4:$AP$487,$BN$3,$AO$4:$AO$487,{"½" & "*","½ₓ" & "*","½ ₓ" & "*"}))

    When I enter =SUM(SUMIFS($AN$4:$AN$487,$AP$4:$AP$487,$BN$3,$AO$4:$AO$487,{"½","½ₓ","½ ₓ"})), I don't get the same error, but the formula doesn't work as intended and does not collect all the values I am looking for.

    Does anyone have any suggestions? Thank you in advance!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,375

    Re: Using Wildcards with SUMIFS and an ARRAY

    Welcome to the forum.

    Which 'newest' version are you using? There are more than one and there are differences between them, so please update your profile with the specifics. Thanks.

    Administrative Note:

    Welcome to the forum.

    Although we value your privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, UAE, etc. will suffice).

    Thank you for helping us to help you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent SAC
    Posts
    8,885

    Re: Using Wildcards with SUMIFS and an ARRAY

    Did you try adding the wildcard?

    =SUM(SUMIFS($AN$4:$AN$487,$AP$4:$AP$487,$BN$3,$AO$4:$AO$487,{"½","½ₓ","½ ₓ"}&"*"))
    Rory

  4. #4
    Registered User
    Join Date
    11-18-2020
    Location
    Atlanta, GA
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Re: Using Wildcards with SUMIFS and an ARRAY

    That worked! Thank you! I am also trying to utilize this same formula with cell references in the place of the "½" inputs, but it seems that cell references cannot be used with array formulas, and I cannot concatenate the "ₓ" onto the end of the cell reference. Are cell references just not possible to use in this case?

  5. #5
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent SAC
    Posts
    8,885

    Re: Using Wildcards with SUMIFS and an ARRAY

    If those are separate characters to the 1/2, surely you can just use:

    =SUMIFS($AN$4:$AN$487,$AP$4:$AP$487,$BN$3,$AO$4:$AO$487,"½*")

    since they all begin with 1/2.

+ 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] Include and exclude items using SUMIFS and wildcards
    By Luis Ah-Hoy Jr. in forum Excel General
    Replies: 10
    Last Post: 03-16-2017, 03:33 PM
  2. [SOLVED] Sumifs with wildcards
    By rs1aj in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2016, 05:47 PM
  3. [SOLVED] Trying to use wildcards in a sum array formula
    By andikeep2580 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2015, 12:44 AM
  4. [SOLVED] VBA - AutoFilter an array containing wildcards?
    By Tunesmith in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-03-2014, 01:48 PM
  5. [SOLVED] Complex SUMIFS (SUMPRODUCT?) formula w/ wildcards (SEARCH?)
    By markl41 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-11-2012, 02:24 PM
  6. Wildcards in Array formula
    By judasdac in forum Excel General
    Replies: 2
    Last Post: 07-08-2009, 12:00 PM
  7. Array with two wildcards
    By Watson2 in forum Excel General
    Replies: 3
    Last Post: 06-10-2009, 03:59 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