#1   Report Post  
Posted to microsoft.public.excel.misc
TimmerSuds
 
Posts: n/a
Default If then help


I have a column with the following text entries:

in process
production
inspection

There are several thousand records

I would like to be able to create an if/then formula and apply it to
the entire column that makes the following changes:

if "in process" then "01"
if "production" then "02"
if "inspection" then "03"

Can this be done?

Thanks!


--
TimmerSuds
------------------------------------------------------------------------
TimmerSuds's Profile: http://www.excelforum.com/member.php...o&userid=35596
View this thread: http://www.excelforum.com/showthread...hreadid=553661

  #2   Report Post  
Posted to microsoft.public.excel.misc
Timmy Mac1
 
Posts: n/a
Default If then help


Would the find and replace function not do the trick?


--
Timmy Mac1
------------------------------------------------------------------------
Timmy Mac1's Profile: http://www.excelforum.com/member.php...o&userid=15188
View this thread: http://www.excelforum.com/showthread...hreadid=553661

  #3   Report Post  
Posted to microsoft.public.excel.misc
starguy
 
Posts: n/a
Default If then help


try the following formula.

I supposed that your data starts from cell A1, you can change reference
according to your requirement.

=IF(A1="in
process","01",IF(A1="production","02",IF(A1="inspe ction","03")))


--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=553661

  #4   Report Post  
Posted to microsoft.public.excel.misc
TimmerSuds
 
Posts: n/a
Default If then help


starguy Wrote:
try the following formula.

I supposed that your data starts from cell A1, you can change reference
according to your requirement.

=IF(A1="in
process","01",IF(A1="production","02",IF(A1="inspe ction","03")))



How would I apply this to an existibg column of records?
Thanks


--
TimmerSuds
------------------------------------------------------------------------
TimmerSuds's Profile: http://www.excelforum.com/member.php...o&userid=35596
View this thread: http://www.excelforum.com/showthread...hreadid=553661

  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default If then help

Insert a new column to the right of the original data
Type that formula in the first cell
and drag down the range.

Excel will adjust the range in the copied cells.

TimmerSuds wrote:

starguy Wrote:
try the following formula.

I supposed that your data starts from cell A1, you can change reference
according to your requirement.

=IF(A1="in
process","01",IF(A1="production","02",IF(A1="inspe ction","03")))


How would I apply this to an existibg column of records?
Thanks

--
TimmerSuds
------------------------------------------------------------------------
TimmerSuds's Profile: http://www.excelforum.com/member.php...o&userid=35596
View this thread: http://www.excelforum.com/showthread...hreadid=553661


--

Dave Peterson


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"