+ Reply to Thread
Results 1 to 9 of 9

Make an Index/Match Sum Array with wildcards

  1. #1
    Registered User
    Join Date
    04-24-2014
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Make an Index/Match Sum Array with wildcards

    Hello everyone, looong time lurker, first time poster. I've grown to be quite proficient with Excel thanks to reading through these forums! However I haven't been able to find a solution to my current problem.

    I have a series of data all on a single row. It works quite well for most of my purposes, but for this particular instance I'm running into an issue with collating related records. In the example below, I am doing a series of Index/Matches to find each example of a record from "Boyden" in order to sum up their unique visits. So for instance one record would have "cv.boyden.com" with the unique visits stored 2 columns after it. However, I have to list out every single permutation of boyden's sites individually, and there are quite a lot more than in the below example (.ch, .jp, etc).

    Please Login or Register  to view this content.

    It seems to me I should be able to make some sort of array formula (using CTRL+SHIFT+Enter) using wildcards (i.e. "*boyden*") to do this for me, however I tried a bunch of different ways to do it with no success. I don't want to make yet another intermediary page to reformat the data, so it has to pull from the single row from the other sheet. I'd greatly appreciate anyone who can point me in the right direction!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Make an Index/Match Sum Array with wildcards

    Hi and welcome to the forum

    You may be way overthinking this? Have you taken a look at using trhe sumif() or sumifS() function? It sounds like 1 of these may be what you want. If uyou still have a problem, upload a sample workbook for me to play with.

    See if this is along the lines or wehat you want?

    A
    B
    1
    Name Amt
    2
    aa1
    1
    3
    aa1
    2
    4
    bb1
    3
    5
    bb2
    4
    6
    cc1
    5
    7
    cc2
    6
    8
    9
    3


    B9=SUMIF($A$2:$A$7,"aa*",$B$2:$B$7)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-24-2014
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Make an Index/Match Sum Array with wildcards

    The problem is all the data is on a single row. Attached is an example (I hope):


    sample.xlsx
    Attached Images Attached Images

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Make an Index/Match Sum Array with wildcards

    Hi,

    What's your expected result for the attached?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Registered User
    Join Date
    04-24-2014
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Make an Index/Match Sum Array with wildcards

    Essentially I'm trying to do a SumIf from a single row. The formula from the OP works fine for every other instance, since they only have 1 or 2 permutations. But this particular firm has dozens of slightly different sites. I am trying to add up all the "New Users" for anything that matches "*Boyden*". However, I can't seem to make an array Match using wildcards like that, and Sumif doesn't work since all the data is stored in a single row.

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Make an Index/Match Sum Array with wildcards

    Quote Originally Posted by TheAlchemyst View Post
    and Sumif doesn't work since all the data is stored in a single row.
    Why do you say this?

    Assuming that "New Users" is always the next-but-one column on from "Name":

    =SUMIF(B3:VK3,"*boyden*",D3:VM3)

    Regards

  7. #7
    Registered User
    Join Date
    04-24-2014
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Make an Index/Match Sum Array with wildcards

    Well smoke me a kipper, that worked! I never thought of doing it like that.

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Make an Index/Match Sum Array with wildcards

    Haha! Is it breakfast time already?

    You're welcome!

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Make an Index/Match Sum Array with wildcards

    Glad you got the answer you needed

    You may have noticed that, apart from teh references, the formula I suggested...
    =SUMIF($A$2:$A$7,"aa*",$B$2:$B$7)
    is pretty much the same as XOR's...
    =SUMIF(B3:VK3,"*boyden*",D3:VM3)


+ 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. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  2. [SOLVED] if-index-match in an array
    By dourpil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2014, 05:13 AM
  3. Index Match array equation with sub-array calculation
    By glebbo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2012, 03:04 AM
  4. Replies: 2
    Last Post: 11-05-2011, 03:26 PM
  5. Nested Match(index()) vs. Match() array formula.
    By GeneralDisarray in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2011, 07:57 AM

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