tusharsharma24
New Member
- Joined
- Sep 3, 2018
- Messages
- 4
I have a data set with 4 columns - Original Bank , Acquiring Bank, Acquired Status ( Yes/ No) , Final Bank Name
Depending on whether the acquired status is yes or no, I want to copy the bank name to column Final Bank Name. Following rules apply :-
a) If the bank under column Original bank has been acquired, the acquiring bank name will be in second column and this name will be copied to Final bank name
b) If the bank under Original bank has not been acquired, then Final bank name will have name from Original Bank name
The complication is that a particular bank can occur in both Original bank name list and acquiring bank name list. Here is a sample table below :-
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Original Bank Name[/TD]
[TD]Acquiring Bank[/TD]
[TD]Acquired Status [/TD]
[TD]Final Bank Name[/TD]
[/TR]
[TR]
[TD]Bank of America Corp.[/TD]
[TD][/TD]
[TD]No[/TD]
[TD]Bank of America Corp.[/TD]
[/TR]
[TR]
[TD]JPMorgan Chase & Co.[/TD]
[TD][/TD]
[TD]No[/TD]
[TD]JPMorgan Chase & Co.[/TD]
[/TR]
[TR]
[TD]Bancshares, Inc.[/TD]
[TD]Bank of the Ozarks, Inc.[/TD]
[TD]Yes[/TD]
[TD]JP Morgan [/TD]
[/TR]
[TR]
[TD]First National Bank of Shelby[/TD]
[TD]Bank of the Ozarks, Inc.[/TD]
[TD]Yes[/TD]
[TD]JP Morgan [/TD]
[/TR]
[TR]
[TD]Summit Bancorp, Inc.[/TD]
[TD]Bank of the Ozarks, Inc.[/TD]
[TD]Yes[/TD]
[TD]JP Morgan [/TD]
[/TR]
[TR]
[TD]Bank of the Ozarks, Inc.[/TD]
[TD]JP Morgan [/TD]
[TD]Yes[/TD]
[TD]JP Morgan [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The column Final Bank name needs to show the name of final parent. How can I do this in excel ? Does it need VBA formula ? Can anyone help with this.
Depending on whether the acquired status is yes or no, I want to copy the bank name to column Final Bank Name. Following rules apply :-
a) If the bank under column Original bank has been acquired, the acquiring bank name will be in second column and this name will be copied to Final bank name
b) If the bank under Original bank has not been acquired, then Final bank name will have name from Original Bank name
The complication is that a particular bank can occur in both Original bank name list and acquiring bank name list. Here is a sample table below :-
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Original Bank Name[/TD]
[TD]Acquiring Bank[/TD]
[TD]Acquired Status [/TD]
[TD]Final Bank Name[/TD]
[/TR]
[TR]
[TD]Bank of America Corp.[/TD]
[TD][/TD]
[TD]No[/TD]
[TD]Bank of America Corp.[/TD]
[/TR]
[TR]
[TD]JPMorgan Chase & Co.[/TD]
[TD][/TD]
[TD]No[/TD]
[TD]JPMorgan Chase & Co.[/TD]
[/TR]
[TR]
[TD]Bancshares, Inc.[/TD]
[TD]Bank of the Ozarks, Inc.[/TD]
[TD]Yes[/TD]
[TD]JP Morgan [/TD]
[/TR]
[TR]
[TD]First National Bank of Shelby[/TD]
[TD]Bank of the Ozarks, Inc.[/TD]
[TD]Yes[/TD]
[TD]JP Morgan [/TD]
[/TR]
[TR]
[TD]Summit Bancorp, Inc.[/TD]
[TD]Bank of the Ozarks, Inc.[/TD]
[TD]Yes[/TD]
[TD]JP Morgan [/TD]
[/TR]
[TR]
[TD]Bank of the Ozarks, Inc.[/TD]
[TD]JP Morgan [/TD]
[TD]Yes[/TD]
[TD]JP Morgan [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The column Final Bank name needs to show the name of final parent. How can I do this in excel ? Does it need VBA formula ? Can anyone help with this.
Last edited by a moderator: