+ Reply to Thread
Results 1 to 10 of 10

Help using Index/Match for multiple rows with same value

  1. #1
    Registered User
    Join Date
    01-22-2015
    Location
    london
    MS-Off Ver
    2010
    Posts
    8

    Help using Index/Match for multiple rows with same value

    Hi there,

    I am looking to create a summary tab within a workbook.

    the data tab I wish to summarise has multiple rows with varying descriptions, but these have been mapped to standardised descriptions in another column.

    These standardised descriptions, for example 'Turnover', 'Cost of Sales' etc, occur many times in the column, and thus are an issue for match formulas which can only pick up 1 instance.

    There are also multiple columns e.g 'Company 1' 'Company2' etc.

    I wish to have a summary tab, where when you change the name from company 1 to company 2 (I created list through data validation), it populates the appropriate cells, e.g it will pull through the turnover relating to company 2 when company 2 is selected.

    The method I have previously tried is as follows:

    =INDEX(Sheet2!$A$3:$E$8,MATCH(A3,Sheet2!A3:A8,0),Sheet1!C1)

    as an explanation - the index array is the data set in sheet 2, the rows to lookup is a match formula, matching 'turnover' to the column in sheet 2 where all the turnovers are mapped, and the column ref in the index formula is linked to sheet 1 c1. Sheet 1 c1 is a match formula, looking up 'company 1' within the data sheet, and returning the column reference.

    The formula picks up the correct reference from the right company, however the problem I have is match only returns the first value in the data set, when there are for example 10 instances of turnover.

    How do you sum all of company 1, or 2 etc without just picking up 1 row? I have tried to play around with INDIRECT formulas without success.

    I'd appreciate any help on this.

    many thanks,
    Alex

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Help using Index/Match for multiple rows with same value

    Hello
    Can you please attach a sample of your workbook so that we can get a better understanding of your problem...
    You can do so by pressing the Go advanced button and then clicking on the paper clip icon...
    http://www.excelforum.com/members/da...ch-a-file.html

  3. #3
    Registered User
    Join Date
    01-22-2015
    Location
    london
    MS-Off Ver
    2010
    Posts
    8

    Re: Help using Index/Match for multiple rows with same value

    Quote Originally Posted by sourabhg98 View Post
    Hello
    Can you please attach a sample of your workbook so that we can get a better understanding of your problem...
    You can do so by pressing the Go advanced button and then clicking on the paper clip icon...
    http://www.excelforum.com/members/da...ch-a-file.html

    Please find attached a very basic version of what I mean.

    The list in Sheet 1 B1 can be changed, and the sum in B3 should be the total turnover for that particular company, for example 888 for company 2.

    As you can see it returns 112, the first line matched to turnover.

    I hope this helps.

    Regards,
    Alex
    Attached Files Attached Files

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Help using Index/Match for multiple rows with same value

    Try this.....
    On Sheet1
    in B3
    Please Login or Register  to view this content.
    and copy down.

    Is this what you are trying to achieve?
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Registered User
    Join Date
    01-22-2015
    Location
    london
    MS-Off Ver
    2010
    Posts
    8

    Re: Help using Index/Match for multiple rows with same value

    Quote Originally Posted by sktneer View Post
    Try this.....
    On Sheet1
    in B3
    Please Login or Register  to view this content.
    and copy down.

    Is this what you are trying to achieve?


    This formula still only returns the first line of turnover, I need it to sum all instances of turnover for that company.

    The issue is with the match formula in the rows I think

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Help using Index/Match for multiple rows with same value

    Try SUMPRODUCT, instead...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Help using Index/Match for multiple rows with same value

    Try this.....

    In B3
    Please Login or Register  to view this content.
    and copy down.

  8. #8
    Registered User
    Join Date
    01-22-2015
    Location
    london
    MS-Off Ver
    2010
    Posts
    8

    Re: Help using Index/Match for multiple rows with same value

    Quote Originally Posted by sktneer View Post
    Try this.....

    In B3
    Please Login or Register  to view this content.
    and copy down.
    thats perfect thanks!

  9. #9
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Help using Index/Match for multiple rows with same value

    Hey I got your problem
    Sorry for the late reply
    Check out this one in B3
    =SUMPRODUCT((Sheet2!C1:E1=B1)*(Sheet2!C3:E5))
    Hope this helps..
    If it works you can thank me by pressing the add reputation button below..
    Regards

  10. #10
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Help using Index/Match for multiple rows with same value

    You're welcome.
    If that takes care of your question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.

+ 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] INDEX/MATCH (multiple critera in multiple rows and columns)
    By swma in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-01-2016, 10:02 AM
  2. [SOLVED] Index & Match Multiple Rows & Columns
    By brad_x81 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-22-2014, 07:26 AM
  3. [SOLVED] Index Match VBA Multiple Worksheets Many Rows
    By Mad-Dog in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2014, 05:42 AM
  4. Sum Multiple Rows with an Index/Match
    By amartin575 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-20-2013, 06:13 AM
  5. Index and Match with multiple columns/rows
    By fab121 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-18-2012, 02:33 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