Macros & search /replace

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Use a macro to convert data files imported as CSV files into the correct
format for importation into another program.
Column A contains words COW, BULL, STEER,HEIFER

Need to add to my macro a formula that will examine column A and insert in
adjacent cell column G a "M" if the Column A cell contains Bull, "F" if the
A Cell contains COW or HEIFER; and "C" if it contains Steers

Any help greatly appreciated

thanks
 
Hi Anthony
Try
=IF(A1="","",IF(OR(A1="HEIFER",A1="COW"),"F",IF(A1="BULL","M","C")))
 

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

Back
Top