I am using Excel 2013.
I downloaded a Bank of America Export that shows many transactions that have originated from employees using their Debit Cards. Each Debit card ends in a different set of 4 digits. I am trying to create a formula to FIND these 4 digits (they are usually after a bunch of XXXXs) and take those digits to look up which department the employee is in, and to put that department in the cell.
For Example, the export looks like this:
DELTA AIR 00623828305 DELTA.COM CA 24717057132871320458739 CKCD 3058 XXXXXXXXXXXX4466 XXXX XXXX XXXX 4466
4466 is the last four digits of the Debit Card. As you can see, the last four digits might show up 2x in the cell. This employee belongs to the department "Corporate".
I would like the results of the formula to show me "Corporate" in the cell.
I have a chart that looks something like this which is where the Formula should look for when pulling the Departments. Or if its easier to embed it in the formula, I could do that too.
[TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl63, width: 64, bgcolor: transparent"]4524
[/TD]
[TD="width: 76, bgcolor: transparent"]Bev Hills
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]4516
[/TD]
[TD="bgcolor: transparent"]Bev Hills
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]4573
[/TD]
[TD="bgcolor: transparent"]Corp
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]0421
[/TD]
[TD="bgcolor: transparent"]Corp
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]8129
[/TD]
[TD="bgcolor: transparent"]Madison
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]6248
[/TD]
[TD="bgcolor: transparent"]Miami
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]4540
[/TD]
[TD="bgcolor: transparent"]Wall Street
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]4482
[/TD]
[TD="bgcolor: transparent"]Wholesale
[/TD]
[/TR]
</tbody>[/TABLE]
Please help!! =] THANKS
I downloaded a Bank of America Export that shows many transactions that have originated from employees using their Debit Cards. Each Debit card ends in a different set of 4 digits. I am trying to create a formula to FIND these 4 digits (they are usually after a bunch of XXXXs) and take those digits to look up which department the employee is in, and to put that department in the cell.
For Example, the export looks like this:
DELTA AIR 00623828305 DELTA.COM CA 24717057132871320458739 CKCD 3058 XXXXXXXXXXXX4466 XXXX XXXX XXXX 4466
4466 is the last four digits of the Debit Card. As you can see, the last four digits might show up 2x in the cell. This employee belongs to the department "Corporate".
I would like the results of the formula to show me "Corporate" in the cell.
I have a chart that looks something like this which is where the Formula should look for when pulling the Departments. Or if its easier to embed it in the formula, I could do that too.
[TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl63, width: 64, bgcolor: transparent"]4524
[/TD]
[TD="width: 76, bgcolor: transparent"]Bev Hills
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]4516
[/TD]
[TD="bgcolor: transparent"]Bev Hills
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]4573
[/TD]
[TD="bgcolor: transparent"]Corp
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]0421
[/TD]
[TD="bgcolor: transparent"]Corp
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]8129
[/TD]
[TD="bgcolor: transparent"]Madison
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]6248
[/TD]
[TD="bgcolor: transparent"]Miami
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]4540
[/TD]
[TD="bgcolor: transparent"]Wall Street
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]4482
[/TD]
[TD="bgcolor: transparent"]Wholesale
[/TD]
[/TR]
</tbody>[/TABLE]
Please help!! =] THANKS