Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Anthony
Try =IF(A1="","",IF(OR(A1="HEIFER",A1="COW"),"F",IF(A1 ="BULL","M","C"))) -- Regards Roger Govier Anthony wrote 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 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One way:
G1: =LOOKUP(A1,{"BULL","COW","HEIFER","STEER"},{"M","F ","F","C"}) In article , "Anthony" wrote: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel crashes while opening excel file imbeddied with macros | Excel Discussion (Misc queries) | |||
FAQ Spreadsheet with search function | Excel Discussion (Misc queries) | |||
problem:search results negative in excel docs with macros | Excel Discussion (Misc queries) | |||
Enabling macros | Excel Discussion (Misc queries) | |||
Transferring toolbars and macros to other computers | Excel Discussion (Misc queries) |