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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A1 (Header)[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]859[/TD]
[TD]859_[/TD]
[/TR]
[TR]
[TD]859A[/TD]
[TD]859A_[/TD]
[/TR]
</tbody>[/TABLE]

Keyword sheet
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Find (A1)[/TD]
[TD]Replace (B1)[/TD]
[/TR]
[TR]
[TD]859[/TD]
[TD]859_[/TD]
[/TR]
[TR]
[TD]859A[/TD]
[TD]859A_[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

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