EXCEL MACRO: Find & Replace based on sheet

harky

Active Member
Joined
Apr 8, 2010
Messages
405
Office Version
  1. 2021
  2. 2019
Platform
  1. Windows
I need some help again :D


I need to find from Column A2 below from Data (sheet)
and replace from Column A2 below keyword (Sheet)

replace format as what found in Keyword sheet


A1 is header
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
oh my sound strange.. i think i got it wrong?

A1 is header
My result sheet is at DATA sheet A2 below

I suppose need to had 2 table on KEYWORD Sheet?

Table 1 (A2) is the text which found at DATA Sheet?
Table 2 (B2) is the text to be replaced?
If cannot find, just ignore and process the next (no changed done)
 
Last edited:
Upvote 0
Data sheet
A1 (Header)Result
859859_
859A859A_

<tbody>
</tbody>

Keyword sheet
Find (A1)Replace (B1)
859859_
859A859A_

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,185
Members
448,554
Latest member
Gleisner2

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