Extract data with several instances

ORoxo

Board Regular
Joined
Oct 30, 2016
Messages
149
Guys,

I have two sheets:

Sheet "Riscos" where I have several rows with different risks and one range/column named "Departamento" (Department, in English). Each department can have several risks.

Sheet "Riscos_formula_extraction"

On Sheet Extraction, I want to extract data from sheet "Riscos" based on a criteria which will on the cell A1 of Sheet "Riscos_formula_extraction".

In order to do that, I was trying to use the following formula

Code:
=INDEX(Riscos!$B$3:$AK$223;MATCH(Riscos_formula_extraction!$A2&Riscos_formula_extraction!$A$1;[B][COLOR=#ff0000](ROW(A2)-1)[/COLOR][/B]&Departamento;0);MATCH(Riscos_formula_extraction!J$1;Riscos!$B$2:$AK$2;0))

However, the part in red is confusing me because its' not working as expected.

This it the overall layout of sheet "Riscos_formula_extraction"

[TABLE="width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[/TR]
[TR]
[TD]COM (name of the department I want to look data for)[/TD]
[TD]Nº of the risk[/TD]
[/TR]
[TR]
[TD]1 (# of the instance I want to look up for)[/TD]
[TD]FORMULA ABOVE[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Any hint on how to go around this issue?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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