+ Reply to Thread
Results 1 to 4 of 4

Trying to use wildcards in a sum array formula

  1. #1
    Registered User
    Join Date
    01-12-2015
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    20

    Trying to use wildcards in a sum array formula

    After receiving some great help with an array formula, I have run into another problem - using wildcards.

    In the attached workbook on sheet1, I have the product numbers sold in quantities for each day. On sheet2 I am trying to sum these in a report. This works fine if I want to see which product is sold (Row 1) but I want to drill down at the substring level as this corresponds to a particular product configuration, and I want to see how many of this option have been sold.

    What I want to do is hard code something like '?????A0?????????" or ??????????????1A". Better still, I would like to be able to type into row 1, A0, and just hard-code the position in the substring that these would be analyzed, if that makes sense.

    I have tried hard-coding into my sum array formula but it returns 0 results.

    If anyone can help to get me there I would be very grateful.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Trying to use wildcards in a sum array formula

    Hi Andi,

    Your problem gets a lot easier if you rearrange your data into a better table. See the attached. Then I did an advanced filter using *A0* and could then sum the numbers.

    Time to learn Advanced Filters and wildcard filters?
    http://www.contextures.com/xladvfilter01.html#WildCard
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Trying to use wildcards in a sum array formula

    In B1 Cell

    A0


    In B2 Cell - Normal Formula


    =IFERROR(SUMIF(INDEX(Sheet1!$B$2:$K$14,,MATCH($A2,Sheet1!$B$1:$K$1,0)),"*"&B$1&"*",INDEX(Sheet1!$B$2:$K$14,,MATCH($A2,Sheet1!$B$1:$K$1,0)+1)),"")


    Drag it down and right...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    01-12-2015
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    20

    Re: Trying to use wildcards in a sum array formula

    Thanks MarvinP. I am constrained to a certain format. Thanks for your response, I appreciate it.

    Sixthsense, thanks, I was able to use this to suit my needs. Really appreciate the solution.

+ 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] VBA - AutoFilter an array containing wildcards?
    By Tunesmith in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-03-2014, 01:48 PM
  2. Array Forumlae and Text/Wildcards
    By Arnie P in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-07-2014, 02:19 PM
  3. lookup array of values using wildcards
    By skalaima in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-10-2013, 03:01 AM
  4. Wildcards in Array formula
    By judasdac in forum Excel General
    Replies: 2
    Last Post: 07-08-2009, 12:00 PM
  5. Array with two wildcards
    By Watson2 in forum Excel General
    Replies: 3
    Last Post: 06-10-2009, 03:59 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