Solved

How do I use INDEX and MATCH in this specific Excel example ?

Posted on 2013-06-17
5
408 Views
Last Modified: 2013-06-17
Hi,

I have an Excel 2010 workbook made up of two sheets (Dashboard and Summary) which shows the results from mobile app testing.  I'm trying to use INDEX and MATCH in the Dashboard sheet to return percentage values from the Summary sheet.

The idea is to locate the correct % value on the Summary sheet by providing a mobile device name (eg. iPhone 5) and a test result description (eg Pass).

The reason I am using INDEX/MATCH is because the device names may change, or new devices may be added. Therefore, I want to make it as flexible and maintainable as possible.

I've attached a mock-up of the original workbook.

Regards
Toco
iOS-Test-Control-Panel.xlsm
0
Comment
Question by:Tocogroup
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 23

Expert Comment

by:NBVC
ID: 39253078
Try:

=INDEX(INDEX(Summary!$D:$D,MATCH($B3,Summary!$A:$A,0)):Summary!$D$1000,MATCH(C$2,INDEX(Summary!$B:$B,MATCH($B3,Summary!$A:$A,0)):Summary!$B$1000,0))

copied across the matrix.

Note:  This formula allows for items in Summary upto row 1000.. can be adjusted.
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39253096
Another way might be, first insert a column in Summary sheet before column A.. this can be hidden afterward....

Then insert formula in new A3:

=LOOKUP(REPT("z",255),B$3:B3)

copied down.


Now formula in Dashboard C3 is:

=SUMIFS(Summary!$E:$E,Summary!$A:$A,$B3,Summary!$C:$C,C$2)

copied across the matrix
0
 

Author Comment

by:Tocogroup
ID: 39253237
Thank you. This works a treat.

I'm trying to understand how it works......how does the nested INDEX/MATCH combinations work ?
0
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39253312
Basically, since your column A lists the Mobile Devices once, per group, I am trying to index from the position of the matched Mobile Device to the end.... making the starting cell dynamic based on the mobile device.

This part:

INDEX(Summary!$D:$D,MATCH($B3,Summary!$A:$A,0))

finds the cell in column D that corresponds to the Mobile Device to search for.  This is where the outer INDEX function starts from, and it ends at D1000 according to:

INDEX(INDEX(Summary!$D:$D,MATCH($B3,Summary!$A:$A,0)):Summary!$D$1000

similarly, this inner INDEX function:

INDEX(Summary!$B:$B,MATCH($B3,Summary!$A:$A,0)):Summary!$B$1000,0)

finds the cell in column B that corresponds to match of mobile device in A.. and sets that as the start point, so that it gets the first occurance of the relevant Result for that mobile device.
0
 

Author Closing Comment

by:Tocogroup
ID: 39253358
That's clever !
Many thanks.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question