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 / January 2008

Tip: Looking for answers? Try searching our database.

IF function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BAS - 17 Jan 2008 16:32 GMT
Is it possible to perform an IF function on a certain character? For example:

In this model string, 0068T21N00A025T32E5X8Q4C4, I would like to perform an
IF function on the 11th character. If the 11th character = N, I would like
the true value = 0 and the false value = 1.

THanks,
B
Pete_UK - 17 Jan 2008 16:36 GMT
Try this, with your data in A1:

=IF(MID(A1,11,1)="N",0,1)

Hope this helps.

Pete

> Is it possible to perform an IF function on a certain character? For example:
>
[quoted text clipped - 4 lines]
> THanks,
> B
BAS - 17 Jan 2008 17:01 GMT
It worked... THanks!

> Try this, with your data in A1:
>
[quoted text clipped - 12 lines]
> > THanks,
> > B
Pete_UK - 17 Jan 2008 17:14 GMT
You're welcome - glad it worked for you.

Pete

> It worked... THanks!
>
[quoted text clipped - 16 lines]
>
> - Show quoted text -
Teethless mama - 17 Jan 2008 16:40 GMT
=--(NOT(MID(A1,11,1)="N"))

> Is it possible to perform an IF function on a certain character? For example:
>
[quoted text clipped - 4 lines]
> THanks,
> B
 
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.