Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Search A Cell for Certain Letters Then Output a Number

I have a column that has cells containing text. These cells could be in
three different formats. If they start with E, I want to output 50. If they
start with SP, I want to output 250. If they start with SPX, I want to
output 100. Any suggestions would be much appreciated.

Thanks

Adam
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Search A Cell for Certain Letters Then Output a Number

Hi Adam:
Try this
=IF(LEFT(A1)="E",50,IF(LEFT(A1,3)="SPX",100,IF(LEF T(A1,2)="SP",250,"what to
do elsewise?")))
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"
m wrote in message
...
I have a column that has cells containing text. These cells could be in
three different formats. If they start with E, I want to output 50. If
they
start with SP, I want to output 250. If they start with SPX, I want to
output 100. Any suggestions would be much appreciated.

Thanks

Adam



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Search A Cell for Certain Letters Then Output a Number

Assuming your data starts in A1, try this in B1:

=IF(LEFT(A1,1)="E",50,IF(LEFT(A1,3)="SPX",100,IF(L EFT(A1,2)="SP",
250,0)))

and copy down the column. This will output 0 if none of the conditions
are met.

Hope this helps.

Pete

On Mar 21, 4:23 pm,
m wrote:
I have a column that has cells containing text. These cells could be in
three different formats. If they start with E, I want to output 50. If they
start with SP, I want to output 250. If they start with SPX, I want to
output 100. Any suggestions would be much appreciated.

Thanks

Adam



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Search A Cell for Certain Letters Then Output a Number

Thanks a lot for your help guys. That worked perfectly.

Adam

"Pete_UK" wrote:

Assuming your data starts in A1, try this in B1:

=IF(LEFT(A1,1)="E",50,IF(LEFT(A1,3)="SPX",100,IF(L EFT(A1,2)="SP",
250,0)))

and copy down the column. This will output 0 if none of the conditions
are met.

Hope this helps.

Pete

On Mar 21, 4:23 pm,
m wrote:
I have a column that has cells containing text. These cells could be in
three different formats. If they start with E, I want to output 50. If they
start with SP, I want to output 250. If they start with SPX, I want to
output 100. Any suggestions would be much appreciated.

Thanks

Adam




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
Search range of cells, find a value, output adjoining cell. How? nyys Excel Worksheet Functions 3 January 5th 06 01:48 PM
Counting the number of letters in a cell beefycj5 Excel Discussion (Misc queries) 2 June 1st 05 08:28 PM
How do I enter a formula in a cell so that letters= a number i.e.. Alex New Users to Excel 3 February 24th 05 01:09 AM
How do I enter a formula in a cell so that letters= a number i.e.. Alex Excel Worksheet Functions 1 February 23rd 05 11:26 AM
How do I enter a formula in a cell so that letters= a number i.e.. Alex Excel Discussion (Misc queries) 2 February 23rd 05 11:19 AM


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

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

About Us

"It's about Microsoft Excel"