Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2008

Tip: Looking for answers? Try searching our database.

If  Statement to select a letter

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Karl - 07 Feb 2008 23:56 GMT
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
Pete_UK - 08 Feb 2008 01:21 GMT
Try this if the "i" is always at the end:

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

Hope this helps.

Pete

> Hello,
> I have a column containing trap names which are labeled as a letter
[quoted text clipped - 18 lines]
> Just wondering if this is possible and what my IF statement should read.
> Thanks
JMB - 08 Feb 2008 01:28 GMT
you could try:
=IF(RIGHT(A1,1)="i", "inside", IF(RIGHT(A1,1)="o", "outside",""))

> Hello,
> I have a column containing trap names which are labeled as a letter followed
[quoted text clipped - 14 lines]
> Just wondering if this is possible and what my IF statement should read.
> Thanks
Karl - 08 Feb 2008 16:01 GMT
Thanks guys,
Exactly what I was looking for.

Karl

> Hello,
> I have a column containing trap names which are labeled as a letter followed
[quoted text clipped - 14 lines]
> Just wondering if this is possible and what my IF statement should read.
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.