Multiple Matched values Formula help needed

seekerarcane

Board Regular
Joined
Dec 18, 2016
Messages
104
I want to return the multiple matched values from Coloumn A, based on 2 lookup values "1", or "All" from Column F, ranged F3:F9.


Used this formula, but Its not returning the correct results in cell range A16:A20 in provided image here.


Imgur: The most awesome images on the Internet


Following array formula has been used, but need some fix;


=IFERROR(INDEX(A:A,SMALL(IF(OR($F$3:$F$9=1,$F$3:$F$9="All"),ROW($F$3:$F$9)),ROW(A1))),"")



Please look into it and revert with correction. Thanks
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Excel 2016
ABCDEF
1CATEGORYHOURSTRAINING TITLEREFERENCEFREQUENCY2017
2Healty & Safety
3Health & Safety2HS 1:Asbesots TrainingNKFR-TrainingAnnual1
4Health & Safety2HS 2: Bloodborne PathogensNKFR-TrainingAnnual1
5Health & Safety1HS 4: Hearing Loss PreventionNKFR-TrainingAnnual2
6Health & Safety1HS 5: Heat And Cold StressNKFR-TrainingAnnual3
7Health & Safety2HS 6: Medical Protection(Infection)NKFR-TrainingAnnual3
8Health & Safety2HS 7:Personal Protective EquipmentNKFR-TrainingAnnual4
9Health & Safety1HS 8:Safety MeetingNKFR-TrainingQuaterlyAll
10
11
12
13CATEGORY
14Health & Safety
15Health & Safety
16Health & Safety
17
18
19
Sheet6
Cell Formulas
RangeFormula
A14{=IFERROR(INDEX($A$3:$A$9,SMALL(IF(($F$3:$F$9=1)+($F$3:$F$9="All"),ROW($F$3:$F$9)-ROW($F$3)+1),ROWS(A$14:A14))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
In case if the category remains same and you just want to populate the category the number of times it meets the criteria then you can use this:


Excel 2016
ABCDEF
1CATEGORYHOURSTRAINING TITLEREFERENCEFREQUENCY2017
2Healty & Safety
3Health & Safety2HS 1:Asbesots TrainingNKFR-TrainingAnnual1
4Health & Safety2HS 2: Bloodborne PathogensNKFR-TrainingAnnual1
5Health & Safety1HS 4: Hearing Loss PreventionNKFR-TrainingAnnual2
6Health & Safety1HS 5: Heat And Cold StressNKFR-TrainingAnnual3
7Health & Safety2HS 6: Medical Protection(Infection)NKFR-TrainingAnnual3
8Health & Safety2HS 7:Personal Protective EquipmentNKFR-TrainingAnnual4
9Health & Safety1HS 8:Safety MeetingNKFR-TrainingQuaterlyAll
10
11
12
13CATEGORY
14Health & Safety
15Health & Safety
16Health & Safety
17
18
19
Sheet6
Cell Formulas
RangeFormula
A14=IF(ROWS(A$14:A14)>SUMPRODUCT(COUNTIF($F$3:$F$9,{1,"All"})),"","Health & Safety")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,129
Messages
6,129,046
Members
449,482
Latest member
al mugheen

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