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"

Column AColumn B
COM (name of the department I want to look data for)Nº of the risk
1 (# of the instance I want to look up for)FORMULA ABOVE
2
3
4

<tbody>
</tbody>

Any hint on how to go around this issue?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,215,515
Messages
6,125,274
Members
449,220
Latest member
Excel Master

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