Find and Replace Excel Help

jazzys2

New Member
Joined
Apr 17, 2015
Messages
6
1ABDE
2jdoeAcctjdoeAccounting
3jsmithBusinessjsmithBusiness Office
4tmaxHRtmaxHuman Resources
5hgeraldAccthgeraldAccounting
6dhummerAdmindhummerAdministration
7dlaneSecdlaneSecurity
8rsmithAdminrsmithAdministration

<tbody>
</tbody>














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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,215,483
Messages
6,125,063
Members
449,206
Latest member
Healthydogs

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