Forum

Notifications
Clear all

Change text in column to match earlier row

4 Posts
2 Users
0 Reactions
73 Views
(@tborg51)
Posts: 5
Active Member
Topic starter
 

Suppose I have the following data:

ADVISOR # ADVISOR NAME
123 Steve
123 Steve
123 Steve
456 Steve
456 Steve
456 Steve
456 Steve
456 Stephen

For any Advisor #, I want to search the Advisor Name column and if the name is different, change it to the first name entry for that Advisor #.

So in this example, there would be no change for Advisor # 123.  However, for Advisor # 456, the name Stephen would be changed to Steve, which is the first entry for that Advisor #.  Is there a way to do this?

 
Posted : 12/09/2018 1:16 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Tom

Assuming your data is in columns A and B starting from row 1.

In cell C2 enter 

=IF(A2=A1,B1,B2)

Copy the formula down column C

Hope this helps

Sunny

 
Posted : 12/09/2018 7:19 pm
(@tborg51)
Posts: 5
Active Member
Topic starter
 

Thanks, Sunny.  That is close, but where it breaks down is when there are other, different names to be considered.  For example, see the sample data below which adds other Advisor Names.  When "Steve" is no longer the Advisor, the names get offset by one row (see the 4th column).

ADVISOR # ADVISOR NAME CUSTOMER  
123 Steve Rose B Steve
123 Steve Anne W Steve
123 Steven Ralph M Steve
456 Steve Charles R Steve
456 Steve Adelaide A Steve
456 Steve Julian R Steve
456 Steve Cathy D Steve
456 Stephen Isabella B Clay
789 Clay Stephen C Clay
789 Clay Beth B Robert
1011 Robert Carolyn M Robert
1011 Robert Sharon P Robert
1011 Robert Jill H Robert
1011 Robert Marissa C Robert
1011 Robert Sharon P Robert
1011 Robert Staci H Robert
1011 Robert Elizabeth H Daniel
1213 Daniel Gia B Richard
1415 Richard Debra S Richard
1415 Richard Maureen D Timothy
1617 Timothy Beverly K Timothy
1617 Timothy Charles R Bryan
1819 Bryan Deborah M Bryan

Ideas?

Thanks,

Tom

 
Posted : 13/09/2018 10:01 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Tom

I don't have any problem with the formula. Did you copy the formula to the correct cell?

Please refer my attachment. If it is not correct, please let us know what are the expected results in column F.

Sunny

 
Posted : 13/09/2018 7:04 pm
Share: