# Return Account Holder Name matching up to five separate cells.

#### Funktion

##### New Member
Hi Gang,

I have a worksheet with two tabs; one is a Summary of charges per account, and the other contains all of the Charges on all of the accounts.

The account numbers are comprised of up to five separate segments. Those segments are in columns A, B, C, D, and E on both tabs.

There will always be something in column A.
There will always be something in column B.
Columns C, D and E may or may not contain numbers. There could be one, two or all three of them populated on various accounts.

Each account has a corresponding Account Holder Name, which resides on the Summary tab.

For each individual charge listed on the Charges tab, I want to have Excel find the appropriate account holder's name on the Summary tab and bring it into column H on the Charges tab.

I tried an Index and Match (which is not my comfort zone) and it wants to spill and doesn't work... Here's the formula I tried
=INDEX(Summary!G3:G10,MATCH(Summary!A3:A10&Summary!B3:B10&Summary!C3:C10&Summary!D3:D10&Summary!E3:E10,0))

Not sure what approach to take on this one. Any advice would be greatly appreciated.

#### Attachments

• Dummy Data for Funktion 2 - Summary.png
56.2 KB · Views: 14
• Dummy Data for Funktion 2 - Charges.png
104.8 KB · Views: 15

### Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

#### Fluff

##### MrExcel MVP, Moderator
Excel Formula:
``=IF(A3="","",FILTER(Summary!\$G\$3:\$G\$10,(Summary!\$A\$3:\$A\$10=A3)*(Summary!\$B\$3:\$B\$10=B3)*(Summary!\$C\$3:\$C\$10=C3)*(Summary!\$D\$3:\$D\$10=D3)*(Summary!\$E\$3:\$E\$10=E3),""))``

#### Funktion

##### New Member
Excel Formula:
``=IF(A3="","",FILTER(Summary!\$G\$3:\$G\$10,(Summary!\$A\$3:\$A\$10=A3)*(Summary!\$B\$3:\$B\$10=B3)*(Summary!\$C\$3:\$C\$10=C3)*(Summary!\$D\$3:\$D\$10=D3)*(Summary!\$E\$3:\$E\$10=E3),""))``
Thanks again, Fluff! It's working beautifully. Thanks for the quick reply.

#### Fluff

##### MrExcel MVP, Moderator
You're welcome & thanks for the feedback.

Replies
9
Views
1K
Replies
1
Views
185
Replies
1
Views
155
Replies
19
Views
538
Replies
0
Views
56

1,181,609
Messages
5,930,901
Members
436,766
Latest member
azex85

### 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.

### Which adblocker are you using?

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

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