vba to replace old value by target value search almost key words matching

manilara

New Member
Joined
Feb 3, 2013
Messages
11
I have data in column D:D Header value is Source:


I have to align the values proper format like My target is CSV File But it has like CSV or CSV_File or CSV File so it got mis appropriate values of text in col
My target is CSV File from where find CSV
2nd target is Manual - CBT from where ever find CBT change as Manual - CBT
3rd target is Web Adi from where ever find Web or Adi or Web_Adi,wEb adi like
In 3rd condition main criteria is Web Adi MC_MT should not be change it should be as it is


Pls do needful find the attachment
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
show us 10 rows with the issue you have, please
EXPECTED RESULT
ReceiverCurrSourceReceiverCurrSource
UKINDManual - CBTUKINDManual - CBT
USAUDCBTUSAUDManual - CBT
UKIND- CBTUKINDManual - CBT
UKINDManualUKINDManual - CBT
AUSADEmANULAUSADEManual - CBT
NZWADEManual -NZWADEManual - CBT

<tbody>
</tbody>
 
Last edited:
Upvote 0
because manul is to become Manual - CBT a look up table where the first 3 letters of a word = man returns Manual - CBT will work, but will fail if there are any other words eg manager - I suppose you could make your look up table, apply it, and then do a "human check" on the results

as it stands the table would be - in first column -

- C
CBT
MAN

all returning Manual - CBT
 
Upvote 0

Forum statistics

Threads
1,214,984
Messages
6,122,601
Members
449,089
Latest member
Motoracer88

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