What does the data look like? Give us examples of the problems.
Regards,
Fred
Hi Fred,
Thank you for getting back to me. The name on one is Barry Zeltzer When I
use the formula below I get the last oka but the first name comes out as
Barry Z. On the next which is Paula Gonsalves i get last name ok but the
first name comes out as Paula Gonzale. What could I be doing wrong. Again
thank you for you help.
=LEFT('[Package.xls]Highest Paid Employee'!$C$16,LEN('[Package.xls]Highest
Paid Employee'!$C$16)-FIND(" ",'[Package.xls]Highest Paid Employee'!$C$16))
> What does the data look like? Give us examples of the problems.
>
[quoted text clipped - 41 lines]
> >> > Paid Employee'!$C$18)-FIND("",'[Packagae.xls]Highest Paid
> >> > Employee'!$C$18))
Pete_UK - 07 Mar 2008 16:17 GMT
Hi Mac,
I put "John Smith" (without the quotes) in A1 and this formula in B1:
=LEFT(A1,LEN(A1)-FIND(" ",A1))
and I got John in B1, as expected because the formula is equivalent to
yours - you just happen to be looking in different files/sheets. If
you have extra spaces in the text, however, then you will get
different results. For example, " John Smith" in A1 (one space at the
beginning) will give me " John Smit" in B1.
So, I would suggest that you look at your data carefully and remove
any extra spaces - you can use the TRIM function to do this.
Incidentally, the formula returns the space at the end of the first
name, so it would be better as:
=LEFT(A1,LEN(A1)-FIND(" ",A1)-1)
so you can put -1 near the end of your formula (between the last two
brackets).
Hope this helps.
Pete
> Hi Fred,
>
[quoted text clipped - 54 lines]
>
> - Show quoted text -
Fred Smith - 08 Mar 2008 18:24 GMT
The formula you have was designed to give you the last name, but it should
be using the Right function, rather than Left.
So the proper formulas are:
Last Name: =right(c16,len(c16)-find(" ",c16))
First Name: =left(c16,find(" ",c16)-1)
I'll let you substitute the full cell address in each case.
Sorry I didn't pick this up the first time.
Regards,
Fred.
> Hi Fred,
>
[quoted text clipped - 58 lines]
>> >> > Paid Employee'!$C$18)-FIND("",'[Packagae.xls]Highest Paid
>> >> > Employee'!$C$18))