+ Reply to Thread
Results 1 to 3 of 3

Matching multiple columns using Match function

  1. #1
    Registered User
    Join Date
    12-07-2018
    Location
    London
    MS-Off Ver
    Professional Plus 2010
    Posts
    2

    Matching multiple columns using Match function

    I am trying to extract the total of certain lines and certain columns from a big P&L by department spreadsheet, I am currently using this formula:

    =(SUMPRODUCT(("Revenue"='[Mapping and PL-BS inputs.xlsx]ProfitandLoss'!$A$11:$A$300)*("Rental Income"='[Mapping and PL-BS inputs.xlsx]ProfitandLoss'!$B$11:$B$300)*(INDEX('[Mapping and PL-BS inputs.xlsx]ProfitandLoss'!D$11:AZ$300,,MATCH("DEPARTMENT NAME",'[Mapping and PL-BS inputs.xlsx]ProfitandLoss'!D$7:AZ$7,0))))/1000)

    Revenue being the top classification, rental income being the sub-classification, I want to be able to do this for multiple department names (column headings) within the same sumproduct, not just doing +(the whole formula again).

    I have tried using an array in place of department name, but I couldn't get that to work.

    Thanks for your help.

  2. #2
    Forum Guru Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    19,825

    Re: Matching multiple columns using Match function

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually).

    4. Try to avoid using merged cells. They cause lots of problems!

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



  3. #3
    Registered User
    Join Date
    12-07-2018
    Location
    London
    MS-Off Ver
    Professional Plus 2010
    Posts
    2

    Re: Matching multiple columns using Match function

    I believe I have attached the file correctly.

    Sheet 1 contains the formulae I am trying to improve, if you look at cell F6 for example, I am trying to sum all revenue lines for divisions 1 and 3 and have done this by duplicating the formula I initially posted.

    I am dealing with 30-50 entities/divisions, so this can make the formula very long and difficult to understand if I am summing a lot of entities/divisions, I would like to be able to replace the "Division 3" say with something like {"Division 1", "Division 4", "Division 6"}.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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