Find and Replace Excel Help

jazzys2

New Member
Joined
Apr 17, 2015
Messages
6
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]1[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD][/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]jdoe[/TD]
[TD]Acct[/TD]
[TD][/TD]
[TD]jdoe[/TD]
[TD]Accounting[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]jsmith[/TD]
[TD]Business[/TD]
[TD][/TD]
[TD]jsmith[/TD]
[TD]Business Office[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]tmax[/TD]
[TD]HR[/TD]
[TD][/TD]
[TD]tmax[/TD]
[TD]Human Resources[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]hgerald[/TD]
[TD]Acct[/TD]
[TD][/TD]
[TD]hgerald[/TD]
[TD]Accounting[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]dhummer[/TD]
[TD]Admin[/TD]
[TD][/TD]
[TD]dhummer[/TD]
[TD]Administration[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]dlane[/TD]
[TD]Sec[/TD]
[TD][/TD]
[TD]dlane[/TD]
[TD]Security[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]rsmith[/TD]
[TD]Admin[/TD]
[TD][/TD]
[TD]rsmith[/TD]
[TD]Administration
[/TD]
[/TR]
</tbody>[/TABLE]














I need to take Column A and compare with Column D, and if they Match, then I need it to Replace Column B with Column E.

So if jdoe (A2) matched a Column D Value, then replace Acct with Accounting.

Any Thoughts? Hopefully I've explained it well enough.

Jazz
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Maybe I'm not seeing the big picture, but if your data is laid out like your example is (comparing columns A & D of the same row), perhaps you could get away with a simple formula in column B?

Something like:
=IF(A2=D2,E2,"")

Hope it helps.
 
Upvote 0
So imagine column D has many different names in it. I need it to search column D for the right match.
jCQ8ZQX
 
Upvote 0
Using your example as range A1:E11, you could use VLOOKUP like so.
In B2, enter the formula:
Code:
=VLOOKUP(A2,D$2:E$11,2,0)
and copy it down column B.

Hope it helps.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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