Re: 93245 - descr-ip24tion: Q-how do i only extract 93245?
- From: Pete_UK <pashurst@xxxxxxxxxxx>
- Date: Wed, 26 Mar 2008 18:22:16 -0700 (PDT)
Assuming your data is in A1, use this to extract the number before the
hyphen:
=TRIM(LEFT(A1,FIND("-",A1)-1))*1
Your example has a space before the hyphen, so TRIM will get rid of
that. Multiplying by 1 converts the result to a number, but you can
leave this off if you want it as a text value. Copy the formula down
as required.
Hope this helps.
Pete
On Mar 27, 1:08 am, ChrisV <Chr...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,
I have a number and a description (which may at times also contain a number
as well as -) within a cell in excel separated by a - . How do i extract
only the number at the front as in the subject. Numbers are of varying
lengths.
Regards,
Chris
.
- Prev by Date: Re: Arguments Count Function problem
- Next by Date: Re: 93245 - descr-ip24tion: Q-how do i only extract 93245?
- Previous by thread: Arguments Count Function problem
- Next by thread: Re: 93245 - descr-ip24tion: Q-how do i only extract 93245?
- Index(es):
Relevant Pages
|