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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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