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