Solved

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

Posted on 2013-06-17
5
402 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
  • 3
  • 2
5 Comments
 
LVL 23

Expert Comment

by:NBVC
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
That's clever !
Many thanks.
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

728 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now