+ Reply to Thread
Results 1 to 8 of 8

Sumproduct, Combine if multiple results

  1. #1
    Registered User
    Join Date
    01-09-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    27

    Sumproduct, Combine if multiple results

    My formula is on google sheets but I think that this is more of a formula question and doesn't really matter if it is Sheets or Excel. Hope this is the correct place to post.

    I have a sheet that ALMOST does exactly what I need.

    In the sheets "SS", "Sci", "ELA", "Math" I have data about individual teachers with the rooms and periods they teach. I use the sheet "Scrap" to pull off all the information from those 4 sheets into one and retype the periods into individual days. Lastly, on the "Rooms" sheet I want to see which rooms are used during each period AND what teacher uses that room at that time.

    https://docs.google.com/spreadsheets...it?usp=sharing

    This is a small sample of what I end up with which works GREAT!!!
    At the moment, what happens is that if there is 1 match then it returns a name but >1 match returns a number.

    Is there a way to add on to this formula in order to make it so that when there is >1 match it will concatenate the names together (maybe with "/" between the names).

    (for example on the sheet "Rooms" instead of G24 saying "2" I'd want it to say "Jim/Sam". I want to be able to drag the formula across and down to the entire area. And it could have several names concatenated together)

    Thank you very much for your help. This forum always seems to come through!
    Traggs
    Attached Files Attached Files
    Last edited by traggs25; 01-09-2019 at 10:53 AM.

  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
    80,977

    Re: Sumproduct, Combine if multiple results

    Please attach the workbook directly here.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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
    Registered User
    Join Date
    01-09-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    27

    Re: Sumproduct, Combine if multiple results

    I shared the link. I put it on google docs so that it was easily accessible.

  4. #4
    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
    80,977

    Re: Sumproduct, Combine if multiple results

    Not all forum members will follow external links. Please attach it here, as requested in post #2.

  5. #5
    Registered User
    Join Date
    01-09-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    27

    Re: Sumproduct, Combine if multiple results

    Should be all set now.

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Sumproduct, Combine if multiple results

    Please try at G24 in Google sheet

    =ArrayFormula(TEXTJOIN("/",true,IF(MMULT((Scrap!$B$3:$B$1000=$A34)*(Scrap!$G$3:$L$1000=H$1),TRANSPOSE(COLUMN(Scrap!$G$3:$L$1000)^0)),Scrap!$A$3:$A$1000,"")))

  7. #7
    Registered User
    Join Date
    01-09-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    27

    Re: Sumproduct, Combine if multiple results

    AMAZING!!!! It Worked!!!

    I can not thank you enough! I have been waiting like a year posting in forums.

    Now I just need to learn how it works! LOL

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

    Re: Sumproduct, Combine if multiple results

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Combine sumif/sumproduct or sumproduct with multiple criteria
    By sab128 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-16-2018, 08:25 AM
  2. Sub to remove duplicate IDs and combine multiple lookup results into single cells
    By Max, Singapore in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-19-2017, 04:30 AM
  3. search multiple sheets, combine data, post all results
    By Allseasons in forum Excel General
    Replies: 2
    Last Post: 08-20-2014, 04:05 PM
  4. [SOLVED] Combine Multiple Formula With Array Into One (SUMPRODUCT Approach Fail)
    By jackgan in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 05-16-2014, 11:01 AM
  5. [SOLVED] VBA to combine results from multiple workbooks to one spreadsheet - loop/copy not working
    By wonderdunder in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-10-2014, 11:58 AM
  6. Replies: 1
    Last Post: 09-06-2013, 10:05 AM
  7. combine B results for multiple matches in A?
    By toms4n in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 12-29-2006, 04:49 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