Find & Replace

A

anna

Hello,

I have a list of items which stores in column A as listed below and I
want to write a macro to find from each cell within this column if any cell
contains "43" replace that cell with 43 and if any cell contains "AA" replace
that cell with AA. How can I do this? Please help!

Column A
AA4350D
AC4390A
CS3024D
43AA30D
BB4325X
AZ204CS

Thanks in advance for your help!
Anna
 
W

Wigi

What is the order of importance for a cell like AA4350D?

Can't you use an IF statement instead of VBA?
 
D

Dave Peterson

Record a macro when you select column A
Edit|Replace
what: *43*
with: 43
replace all

Edit|Replace
what: *AA*
with: AA
replace all
 
A

anna

Hello Dave,

I tried to record a macro and it work perfectly.

Thank you!
Anna

---------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top