Problem with Index Match

olympiac

Board Regular
Joined
Sep 26, 2010
Messages
158
Scenario:
Table in sheet(1) has got rows with the following headings
A1=System ; B1=Name; C1=status

Table in Sheet(2) has got a matrix where the systems are on the top(columns) and the names are on the left side(rows)

I need a formula in sheet(2) that gives me in the intersection between the system and the name the status from sheet(1)
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Scenario:
Table in sheet(1) has got rows with the following headings
A1=System ; B1=Name; C1=status

Table in Sheet(2) has got a matrix where the systems are on the top(columns) and the names are on the left side(rows)

I need a formula in sheet(2) that gives me in the intersection between the system and the name the status from sheet(1)
Sheet2, B2...

Control+shift+enter, not just enter, and copy across then down:

=INDEX(Sheet1!$C$2:$C$10,MATCH(1,IF(Sheet1!$A$2:$A$10=B$1,IF(Sheet1!$B$2:$B$10=$A2,1)),0))

where B1 is a system and A2 a name, as you specified.
 
Upvote 0
Please - help.

The table in Sheet(2) is already populated with a formula (Eg. =H3) that gives a status.
The way it works is that the status in Sheet(2) will have to be updated if the formula that you provided me is not N/A. If it's N/A then then Nothing (the result will be the one from cell H3).
I need to integrate your formula with a "=IF(ISERROR".
I tried this
Code:
=IF(ISERROR(INDEX(Sheet1!$C$2:$C$10,MATCH(1,IF(Sheet1!$A$2:$A$10=B$1,IF(Sheet1!$B$2:$B$10=$A2,1)),0))),H3,INDEX(Sheet1!$C$2:$C$10,MATCH(1,IF(Sheet1!$A$2:$A$10=B$1,IF(Sheet1!$B$2:$B$10=$A2,1)),0)))

I split the formula for better understanding:
Code:
=IF(ISERROR(
=INDEX(Sheet1!$C$2:$C$10,MATCH(1,IF(Sheet1!$A$2:$A$10=B$1,IF(Sheet1!$B$2:$B$10=$A2,1)),0)))
,H3,
=INDEX(Sheet1!$C$2:$C$10,MATCH(1,IF(Sheet1!$A$2:$A$10=B$1,IF(Sheet1!$B$2:$B$10=$A2,1)),0)))
What's wrong with the formula? I get the value from cell H6 everywhere.
 
Upvote 0
Please - help.

The table in Sheet(2) is already populated with a formula (Eg. =H3) that gives a status.
The way it works is that the status in Sheet(2) will have to be updated if the formula that you provided me is not N/A. If it's N/A then then Nothing (the result will be the one from cell H3).
I need to integrate your formula with a "=IF(ISERROR".
I tried this
Code:
=IF(ISERROR(INDEX(Sheet1!$C$2:$C$10,
MATCH(1,IF(Sheet1!$A$2:$A$10=B$1,IF(Sheet1!$B$2:$B$10=$A2,1)),0))),H3,INDEX(Sheet1!$C$2:$C$10,
MATCH(1,IF(Sheet1!$A$2:$A$10=B$1,IF(Sheet1!$B$2:$B$10=$A2,1)),0)))
I split the formula for better understanding:
Code:
=IF(ISERROR(
=INDEX(Sheet1!$C$2:$C$10,MATCH(1,IF(Sheet1!$A$2:$A$10=B$1,
IF(Sheet1!$B$2:$B$10=$A2,1)),0)))
,H3,
=INDEX(Sheet1!$C$2:$C$10,MATCH(1,IF(Sheet1!$A$2:$A$10=B$1,
IF(Sheet1!$B$2:$B$10=$A2,1)),0)))
What's wrong with the formula? I get the value from cell H6 everywhere.

Let B2 house the formula and H2 the previous status value. Having this, we can invoke:

Control+shift+enter, not just enter:
Rich (BB code):
=LOOKUP(REPT("z",255),CHOOSE({1,2},
   INDEX(Sheet1!$C$2:$C$10,MATCH(1,IF(Sheet1!$A$2:$A$10=B$1,
    IF(Sheet1!$B$2:$B$10=$A2,1)),0))),$H2))
Does this cover your intent?

Note that the status value is expected to be text.
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,519
Members
452,921
Latest member
BBQKING

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top