Index Match Non-Blank Cells Multiple Matches

daveasu

Board Regular
Joined
Jan 4, 2012
Messages
53
I have a list of employees with their names and corresponding departments, and their annual bonus amount.

iamge.png


I need to find all matches by department, and return employee name and the bonus. There may be multiple matches per department.

If the department number to lookup is in D1, the following formula will only return the first match?

<c2:c8),0))
<c2:c8),0))
formula.png


(apologies for the image file of the formula, for some reason the 2nd half of the formula was being truncated)<c2:c8),0))<c2:c8),0))[ code]<="" html=""></c2:c8),0))<c2:c8),0))[></c2:c8),0))
</c2:c8),0))
 
Last edited:

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try:
The formula in D2 is an array formula and must be entered with CTRL-SHIFT-ENTER.
Drag formulas down column as needed.
Excel Workbook
ABCDE
1DeptNameBonus101
2100Emp11000Emp3500
3101Emp2Emp4250
4101Emp3500
5101Emp4250
6102Emp5
7103Emp6750
8103Emp7
Sheet
 
Upvote 0
AhoyNC THANK YOU!! I was just now able to test this on our large dataset -- it works perfectly!!
 
Upvote 0
You're welcome. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,456
Messages
6,124,939
Members
449,197
Latest member
k_bs

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