Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default how do I substitute text in Excel?

I need to convert imported data to plain English. In one column there are
rows containing one of four values (either A,B, C or D), which I want to
replace with their descriptors (Spring, Summer, Autumn, Winter).

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default how do I substitute text in Excel?

Highlight the column and CTRL-H (Find & Replace), then:

Find What: A
Replace With: Spring
Click Replace All

With the range still highlighted, do CTRL-H again, and:

Find What: B
Replace With: Summer
Click Replace All

and again to change C into Autumn, and finally to change D into
Winter.

Hope this helps.

Pete

On Oct 24, 10:59 pm, Geordie
wrote:
I need to convert imported data to plain English. In one column there are
rows containing one of four values (either A,B, C or D), which I want to
replace with their descriptors (Spring, Summer, Autumn, Winter).



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default how do I substitute text in Excel?

Thanks, but I'm looking for a quicker way, like a formula I can use that
would substitute all values at once.

"Pete_UK" wrote:

Highlight the column and CTRL-H (Find & Replace), then:

Find What: A
Replace With: Spring
Click Replace All

With the range still highlighted, do CTRL-H again, and:

Find What: B
Replace With: Summer
Click Replace All

and again to change C into Autumn, and finally to change D into
Winter.

Hope this helps.

Pete

On Oct 24, 10:59 pm, Geordie
wrote:
I need to convert imported data to plain English. In one column there are
rows containing one of four values (either A,B, C or D), which I want to
replace with their descriptors (Spring, Summer, Autumn, Winter).




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default how do I substitute text in Excel?

You should post your layout. Are you really saying A,B,C,D or is it
something else. Whole word in cell or part of a string? etc.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Geordie" wrote in message
...
I need to convert imported data to plain English. In one column there are
rows containing one of four values (either A,B, C or D), which I want to
replace with their descriptors (Spring, Summer, Autumn, Winter).


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default how do I substitute text in Excel?

I have a column with various values in random order, e.g,:
A
B
A
D
C
B
etc (for another 300 rows).
I want to replace each letter with a word (A to equal "Spring", B to equal
"Summer", C to equal "Autumn", D to equal "Winter"). I'm looking for a
formula which will do this in one step, rather than using find & replace.
This is raw data which i want to convert to use in a mailmerge.

"Don Guillett" wrote:

You should post your layout. Are you really saying A,B,C,D or is it
something else. Whole word in cell or part of a string? etc.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Geordie" wrote in message
...
I need to convert imported data to plain English. In one column there are
rows containing one of four values (either A,B, C or D), which I want to
replace with their descriptors (Spring, Summer, Autumn, Winter).





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default how do I substitute text in Excel?

In an adjacent column enter this formula and drag/copy down.

=LOOKUP(A1,{"A","B","C","D"},{"Spring","Summer","A utumn","Winter"})


Gord Dibben MS Excel MVP

On Wed, 24 Oct 2007 14:59:00 -0700, Geordie
wrote:

I need to convert imported data to plain English. In one column there are
rows containing one of four values (either A,B, C or D), which I want to
replace with their descriptors (Spring, Summer, Autumn, Winter).


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default how do I substitute text in Excel?

On Oct 24, 6:37 pm, Gord Dibben <gorddibbATshawDOTca wrote:
In an adjacent column enter this formula and drag/copy down.

=LOOKUP(A1,{"A","B","C","D"},{"Spring","Summer","A utumn","Winter"})

Gord Dibben MS Excel MVP

On Wed, 24 Oct 2007 14:59:00 -0700, Geordie
wrote:



I need to convert imported data to plain English. In one column there are
rows containing one of four values (either A,B, C or D), which I want to
replace with their descriptors (Spring, Summer, Autumn, Winter).- Hide quoted text -


- Show quoted text -


IF YOU TAKE GORD DIBBEN'S FORMULA AND EXPAND IT TO THE FOLLOWING IF
STATEMENT IT WILL ERROR TRAP ANY LETTERS GREATER THAN D GIVING A BLANK
CELL INSTEAD OF "WINTER"

=IF(A1"D","",LOOKUP(A1,{"A","B","C","D"},
{"Spring","Summer","Autumn","Winter"}))

HOPE THIS HELPS

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default how do I substitute text in Excel?

that does the trick superbly. Thanks, really appreciated.

"BIG D" wrote:

On Oct 24, 6:37 pm, Gord Dibben <gorddibbATshawDOTca wrote:
In an adjacent column enter this formula and drag/copy down.

=LOOKUP(A1,{"A","B","C","D"},{"Spring","Summer","A utumn","Winter"})

Gord Dibben MS Excel MVP

On Wed, 24 Oct 2007 14:59:00 -0700, Geordie
wrote:



I need to convert imported data to plain English. In one column there are
rows containing one of four values (either A,B, C or D), which I want to
replace with their descriptors (Spring, Summer, Autumn, Winter).- Hide quoted text -


- Show quoted text -


IF YOU TAKE GORD DIBBEN'S FORMULA AND EXPAND IT TO THE FOLLOWING IF
STATEMENT IT WILL ERROR TRAP ANY LETTERS GREATER THAN D GIVING A BLANK
CELL INSTEAD OF "WINTER"

=IF(A1"D","",LOOKUP(A1,{"A","B","C","D"},
{"Spring","Summer","Autumn","Winter"}))

HOPE THIS HELPS


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default how do I substitute text in Excel?

Good point Big D


Gord

On Wed, 24 Oct 2007 18:53:28 -0700, BIG D wrote:

On Oct 24, 6:37 pm, Gord Dibben <gorddibbATshawDOTca wrote:
In an adjacent column enter this formula and drag/copy down.

=LOOKUP(A1,{"A","B","C","D"},{"Spring","Summer","A utumn","Winter"})

Gord Dibben MS Excel MVP

On Wed, 24 Oct 2007 14:59:00 -0700, Geordie
wrote:



I need to convert imported data to plain English. In one column there are
rows containing one of four values (either A,B, C or D), which I want to
replace with their descriptors (Spring, Summer, Autumn, Winter).- Hide quoted text -


- Show quoted text -


IF YOU TAKE GORD DIBBEN'S FORMULA AND EXPAND IT TO THE FOLLOWING IF
STATEMENT IT WILL ERROR TRAP ANY LETTERS GREATER THAN D GIVING A BLANK
CELL INSTEAD OF "WINTER"

=IF(A1"D","",LOOKUP(A1,{"A","B","C","D"},
{"Spring","Summer","Autumn","Winter"}))

HOPE THIS HELPS


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Substitute a numeric value for a text value in a calculation. Jeff Excel Discussion (Misc queries) 11 May 16th 07 07:48 PM
How do I substitute text for numbers Eric Excel Discussion (Misc queries) 1 April 20th 07 12:40 AM
similar function for SUBSTITUTE in excel? neb Excel Discussion (Misc queries) 3 September 8th 06 10:46 AM
Substitute text with assigned values TD Excel Discussion (Misc queries) 2 July 7th 06 10:28 PM
SUBSTITUTE (more than one in Excel ?) Andy100 New Users to Excel 6 September 7th 05 06:20 AM


All times are GMT +1. The time now is 12:14 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"