PC Review


Reply
Thread Tools Rate Thread

COPY DATA FROM 2 CELLS

 
 
confused deejay
Guest
Posts: n/a
 
      15th Oct 2008
hi
i have a worksheet with postcodes on it in column A in column M i have a
list of postcodes with a number in the adjacent column i.e

A (this is pasted in from another sheet) B (is where i want the answer)
cc1 1cc 9
aa2 2aa 7
bb3 3bb 8

column M(has the full list of postcodes) N (code relating to postcode in M)
aa2 2aa 7
bb3 3bb 8
cc1 1cc 9

the list in column A can be in any order and needs to find the correct code
and place it in column B

one code that has half worked is... in B2: =INDEX(N:N,MATCH(LEFT(A2,2),M:M,0))
but that was only using the first 2 letters of the postcode, i need the
whole postcode as cc1=9 cc2=4 etc.

--
deejay
 
Reply With Quote
 
 
 
 
Stefi
Guest
Posts: n/a
 
      15th Oct 2008
Simply omit LEFT from the formula:
=INDEX(N:N,MATCH(A2,M:M,0))

or
=VLOOKUP(A1,M:N,2,FALSE)

Regards,
Stefi

„confused deejay” ezt *rta:

> hi
> i have a worksheet with postcodes on it in column A in column M i have a
> list of postcodes with a number in the adjacent column i.e
>
> A (this is pasted in from another sheet) B (is where i want the answer)
> cc1 1cc 9
> aa2 2aa 7
> bb3 3bb 8
>
> column M(has the full list of postcodes) N (code relating to postcode in M)
> aa2 2aa 7
> bb3 3bb 8
> cc1 1cc 9
>
> the list in column A can be in any order and needs to find the correct code
> and place it in column B
>
> one code that has half worked is... in B2: =INDEX(N:N,MATCH(LEFT(A2,2),M:M,0))
> but that was only using the first 2 letters of the postcode, i need the
> whole postcode as cc1=9 cc2=4 etc.
>
> --
> deejay

 
Reply With Quote
 
confused deejay
Guest
Posts: n/a
 
      15th Oct 2008
thank you so so much i've been racking my brains for hours and hours tried
everythin i could think off.

thank you again my friend
--
deejay


"Stefi" wrote:

> Simply omit LEFT from the formula:
> =INDEX(N:N,MATCH(A2,M:M,0))
>
> or
> =VLOOKUP(A1,M:N,2,FALSE)
>
> Regards,
> Stefi
>
> „confused deejay” ezt *rta:
>
> > hi
> > i have a worksheet with postcodes on it in column A in column M i have a
> > list of postcodes with a number in the adjacent column i.e
> >
> > A (this is pasted in from another sheet) B (is where i want the answer)
> > cc1 1cc 9
> > aa2 2aa 7
> > bb3 3bb 8
> >
> > column M(has the full list of postcodes) N (code relating to postcode in M)
> > aa2 2aa 7
> > bb3 3bb 8
> > cc1 1cc 9
> >
> > the list in column A can be in any order and needs to find the correct code
> > and place it in column B
> >
> > one code that has half worked is... in B2: =INDEX(N:N,MATCH(LEFT(A2,2),M:M,0))
> > but that was only using the first 2 letters of the postcode, i need the
> > whole postcode as cc1=9 cc2=4 etc.
> >
> > --
> > deejay

 
Reply With Quote
 
Stefi
Guest
Posts: n/a
 
      15th Oct 2008
You are welcome! Thanks for the feedback!
Stefi

„confused deejay” ezt *rta:

> thank you so so much i've been racking my brains for hours and hours tried
> everythin i could think off.
>
> thank you again my friend
> --
> deejay
>
>
> "Stefi" wrote:
>
> > Simply omit LEFT from the formula:
> > =INDEX(N:N,MATCH(A2,M:M,0))
> >
> > or
> > =VLOOKUP(A1,M:N,2,FALSE)
> >
> > Regards,
> > Stefi
> >
> > „confused deejay” ezt *rta:
> >
> > > hi
> > > i have a worksheet with postcodes on it in column A in column M i have a
> > > list of postcodes with a number in the adjacent column i.e
> > >
> > > A (this is pasted in from another sheet) B (is where i want the answer)
> > > cc1 1cc 9
> > > aa2 2aa 7
> > > bb3 3bb 8
> > >
> > > column M(has the full list of postcodes) N (code relating to postcode in M)
> > > aa2 2aa 7
> > > bb3 3bb 8
> > > cc1 1cc 9
> > >
> > > the list in column A can be in any order and needs to find the correct code
> > > and place it in column B
> > >
> > > one code that has half worked is... in B2: =INDEX(N:N,MATCH(LEFT(A2,2),M:M,0))
> > > but that was only using the first 2 letters of the postcode, i need the
> > > whole postcode as cc1=9 cc2=4 etc.
> > >
> > > --
> > > deejay

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use data fed in adjacent cells to sort and copy the data to spec named range sri_gs Microsoft Excel Discussion 0 12th Apr 2010 02:07 PM
How to copy data from merged cells to their individual cells? Saleem Microsoft Excel Programming 2 23rd Sep 2008 06:19 PM
how to copy cells data in every 7th row? =?Utf-8?B?SmVmZg==?= Microsoft Excel Misc 3 15th Dec 2005 07:16 PM
Copy data into cells until changes trigger new copy =?Utf-8?B?bWRlYW5kYQ==?= Microsoft Excel Programming 1 25th Apr 2005 05:40 AM
How do I copy data (word) into respective cells when the data bei. =?Utf-8?B?YXdnOXRlY2g=?= Microsoft Excel New Users 1 12th Jan 2005 11:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:03 AM.