Re: Left() or Right()

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




giantwolf Wrote:
> Hi,
>
> I have a list of postcodes (zip codes) that I need to 'extract' part of
> and allocate to a new cell.
>
> eg:
>
> AL1 2TQ
> AL1 5RD
> AL22 9IP
>
> I need to take the first characters before the space however it could
> be 3 or 4 characters before each space. I need a formula that will
> start from the left and take anything before a space or one that starts
> from the right and takes anything before the righthand 3 characters and
> the space. I've tried left and right but can't quite get it to work.
>
> Any ideas? Thanks in advance.

Try this ...

=LEFT(A1,FIND(\" \",A1)-1)

and copy down as required.

Regards.


--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=11019
View this thread: http://www.excelforum.com/showthread.php?threadid=396875

.



Relevant Pages

  • Left() or Right()
    ... I have a list of postcodes that I need to 'extract' part of ... and allocate to a new cell. ... I need to take the first characters before the space however it could ...
    (microsoft.public.excel.misc)
  • Re: pointer concepts
    ... But the codes below works even if you input more than 10 characters? ... I don't see why would it work for more characters than you allocate. ... A programming tool that exists to allow structured programmers ...
    (comp.lang.c)
  • Re: POS Printer
    ... printer These special codes are non-printable ... characters ... I see no reason to be concerned with it at all. ... I know that a POS printer has an internal buffer so just because we send ...
    (microsoft.public.vc.mfc)
  • Re: Open Source on OpenVMS - A Progress Report
    ... *english* alphabet or that it must be 7-bit plain ASCII. ... ASCII codes must be stripped of those characters or encoded somehow to ... codes, Google Groups does so, and encodes with MIME using Quoted- ...
    (comp.os.vms)
  • Re: =?ISO-8859-1?Q?Soup=E7on_of_cedilles_and_aper=E7us?=
    ... Above that are the so-called "extended ASCII codes", ... neither of the non-7-bit-ASCII characters display. ... Unfortunately Mike does not have MIME enabled in his software, ... they are superior to the modern newsreaders. ...
    (alt.usage.english)