Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 114
Default If Statement to select a letter

Hello,
I have a column containing trap names which are labeled as a letter followed
by and number and an "i" or "o" depending on whether its and inside trap or
outside trap. So I want to make a column using an If statement that if the
trap name column contains an "i" its value is inside and if not its value is
outside.

Example Data is shown below

Column A Column B
Trap Name Trap Location
A1i If Column A contains "*i" value = inside, if not value
= outside.
A12o
B12i

Just wondering if this is possible and what my IF statement should read.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default If Statement to select a letter

Try this if the "i" is always at the end:

=IF(RIGHT(A1,1)="i","Inside","Outside")

Hope this helps.

Pete

"Karl" wrote in message
...
Hello,
I have a column containing trap names which are labeled as a letter
followed
by and number and an "i" or "o" depending on whether its and inside trap
or
outside trap. So I want to make a column using an If statement that if the
trap name column contains an "i" its value is inside and if not its value
is
outside.

Example Data is shown below

Column A Column B
Trap Name Trap Location
A1i If Column A contains "*i" value = inside, if not
value
= outside.
A12o
B12i

Just wondering if this is possible and what my IF statement should read.
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default If Statement to select a letter

you could try:
=IF(RIGHT(A1,1)="i", "inside", IF(RIGHT(A1,1)="o", "outside",""))


"Karl" wrote:

Hello,
I have a column containing trap names which are labeled as a letter followed
by and number and an "i" or "o" depending on whether its and inside trap or
outside trap. So I want to make a column using an If statement that if the
trap name column contains an "i" its value is inside and if not its value is
outside.

Example Data is shown below

Column A Column B
Trap Name Trap Location
A1i If Column A contains "*i" value = inside, if not value
= outside.
A12o
B12i

Just wondering if this is possible and what my IF statement should read.
Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 114
Default If Statement to select a letter

Thanks guys,
Exactly what I was looking for.

Karl

"Karl" wrote:

Hello,
I have a column containing trap names which are labeled as a letter followed
by and number and an "i" or "o" depending on whether its and inside trap or
outside trap. So I want to make a column using an If statement that if the
trap name column contains an "i" its value is inside and if not its value is
outside.

Example Data is shown below

Column A Column B
Trap Name Trap Location
A1i If Column A contains "*i" value = inside, if not value
= outside.
A12o
B12i

Just wondering if this is possible and what my IF statement should read.
Thanks

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
Creating ODBC link within SELECT statement Ron Coderre Excel Worksheet Functions 0 January 31st 06 01:57 PM
Creating ODBC link within SELECT statement Ron Coderre Charts and Charting in Excel 0 January 31st 06 01:57 PM
Creating ODBC link within SELECT statement Ed Ferrero Charts and Charting in Excel 0 January 31st 06 07:48 AM
how do I make drop-down list select based on 1st letter entered? Missykender Excel Discussion (Misc queries) 3 October 6th 05 11:55 PM
can i select from list by typing first letter of word? LISAWATKIN Excel Discussion (Misc queries) 1 May 13th 05 09:31 PM


All times are GMT +1. The time now is 01:38 PM.

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"