A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Vlookup post codes/zipcodes query



 
 
Thread Tools Display Modes
  #1  
Old July 26th, 2004, 06:19 PM
pgiblin
external usenet poster
 
Posts: n/a
Default Vlookup post codes/zipcodes query

Can anyone help me on this one? I am using vlookup to search for a post
code (zipcode) in an array. I have sorted the post code column in the array
into ascending order. However I am getting '#N/A' as a result.

I have removed all spaces from the post codes.

I think it is because although they are 'sorted' the vlookup is confused.
for example a section of the list may look like this,

AL21RE
B244JH
B244UB
B322AU
B333SD
BA11BP
BS16BN
CB11ER

I have considered trying to convert each individual 'post code' to an
individual numeric value, in case vlook up finds this easier to search.
However I have been unable to find a formula that suits.

Is there anything that I am doing wrong, or any other way to approach this.
The post codes are the only identifiers that I can search against.

Any advice gratefully received.

Pete G
Derby
England


  #2  
Old July 26th, 2004, 06:22 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default Vlookup post codes/zipcodes query



--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"pgiblin" wrote in message
...
Can anyone help me on this one? I am using vlookup to search for a post
code (zipcode) in an array. I have sorted the post code column in the

array
into ascending order. However I am getting '#N/A' as a result.

I have removed all spaces from the post codes.

I think it is because although they are 'sorted' the vlookup is confused.
for example a section of the list may look like this,

AL21RE
B244JH
B244UB
B322AU
B333SD
BA11BP
BS16BN
CB11ER

I have considered trying to convert each individual 'post code' to an
individual numeric value, in case vlook up finds this easier to search.
However I have been unable to find a formula that suits.

Is there anything that I am doing wrong, or any other way to approach

this.
The post codes are the only identifiers that I can search against.

Any advice gratefully received.

Pete G
Derby
England




  #3  
Old July 26th, 2004, 06:22 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default Vlookup post codes/zipcodes query



--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"pgiblin" wrote in message
...
Can anyone help me on this one? I am using vlookup to search for a post
code (zipcode) in an array. I have sorted the post code column in the

array
into ascending order. However I am getting '#N/A' as a result.

I have removed all spaces from the post codes.

I think it is because although they are 'sorted' the vlookup is confused.
for example a section of the list may look like this,

AL21RE
B244JH
B244UB
B322AU
B333SD
BA11BP
BS16BN
CB11ER

I have considered trying to convert each individual 'post code' to an
individual numeric value, in case vlook up finds this easier to search.
However I have been unable to find a formula that suits.

Is there anything that I am doing wrong, or any other way to approach

this.
The post codes are the only identifiers that I can search against.

Any advice gratefully received.

Pete G
Derby
England




  #4  
Old July 26th, 2004, 06:23 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default Vlookup post codes/zipcodes query

Use

=VLOOKUP(lookup_value,lookup_table,2,FALSE)

or whatever column offset you need, the False will not need the data sorted.


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"pgiblin" wrote in message
...
Can anyone help me on this one? I am using vlookup to search for a post
code (zipcode) in an array. I have sorted the post code column in the

array
into ascending order. However I am getting '#N/A' as a result.

I have removed all spaces from the post codes.

I think it is because although they are 'sorted' the vlookup is confused.
for example a section of the list may look like this,

AL21RE
B244JH
B244UB
B322AU
B333SD
BA11BP
BS16BN
CB11ER

I have considered trying to convert each individual 'post code' to an
individual numeric value, in case vlook up finds this easier to search.
However I have been unable to find a formula that suits.

Is there anything that I am doing wrong, or any other way to approach

this.
The post codes are the only identifiers that I can search against.

Any advice gratefully received.

Pete G
Derby
England




  #5  
Old July 26th, 2004, 07:06 PM
pgiblin
external usenet poster
 
Posts: n/a
Default Vlookup post codes/zipcodes query

Thanks Bob, however I have tried the formula you suggest but still get a
#n/a result.

"Bob Phillips" wrote in message
...
Use

=VLOOKUP(lookup_value,lookup_table,2,FALSE)

or whatever column offset you need, the False will not need the data

sorted.


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"pgiblin" wrote in message
...
Can anyone help me on this one? I am using vlookup to search for a post
code (zipcode) in an array. I have sorted the post code column in the

array
into ascending order. However I am getting '#N/A' as a result.

I have removed all spaces from the post codes.

I think it is because although they are 'sorted' the vlookup is

confused.
for example a section of the list may look like this,

AL21RE
B244JH
B244UB
B322AU
B333SD
BA11BP
BS16BN
CB11ER

I have considered trying to convert each individual 'post code' to an
individual numeric value, in case vlook up finds this easier to search.
However I have been unable to find a formula that suits.

Is there anything that I am doing wrong, or any other way to approach

this.
The post codes are the only identifiers that I can search against.

Any advice gratefully received.

Pete G
Derby
England






  #6  
Old July 26th, 2004, 07:16 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default Vlookup post codes/zipcodes query

Hi
this would indicate there's no exact match. Have you checked there's a
valid match?. Also please post your used formula.

--
Regards
Frank Kabel
Frankfurt, Germany


pgiblin wrote:
Thanks Bob, however I have tried the formula you suggest but still
get a #n/a result.

"Bob Phillips" wrote in message
...
Use

=VLOOKUP(lookup_value,lookup_table,2,FALSE)

or whatever column offset you need, the False will not need the data
sorted.


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"pgiblin" wrote in message
...
Can anyone help me on this one? I am using vlookup to search for a
post code (zipcode) in an array. I have sorted the post code
column in the array into ascending order. However I am getting
'#N/A' as a result.

I have removed all spaces from the post codes.

I think it is because although they are 'sorted' the vlookup is
confused. for example a section of the list may look like this,

AL21RE
B244JH
B244UB
B322AU
B333SD
BA11BP
BS16BN
CB11ER

I have considered trying to convert each individual 'post code' to
an individual numeric value, in case vlook up finds this easier to
search. However I have been unable to find a formula that suits.

Is there anything that I am doing wrong, or any other way to
approach this. The post codes are the only identifiers that I can
search against.

Any advice gratefully received.

Pete G
Derby
England


  #7  
Old July 26th, 2004, 07:21 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default Vlookup post codes/zipcodes query

Pete,

Try this as well

=VLOOKUP(TRIM(A17),I1:I8,2,FALSE)

adjust the cell references of course

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Frank Kabel" wrote in message
...
Hi
this would indicate there's no exact match. Have you checked there's a
valid match?. Also please post your used formula.

--
Regards
Frank Kabel
Frankfurt, Germany


pgiblin wrote:
Thanks Bob, however I have tried the formula you suggest but still
get a #n/a result.

"Bob Phillips" wrote in message
...
Use

=VLOOKUP(lookup_value,lookup_table,2,FALSE)

or whatever column offset you need, the False will not need the data
sorted.


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"pgiblin" wrote in message
...
Can anyone help me on this one? I am using vlookup to search for a
post code (zipcode) in an array. I have sorted the post code
column in the array into ascending order. However I am getting
'#N/A' as a result.

I have removed all spaces from the post codes.

I think it is because although they are 'sorted' the vlookup is
confused. for example a section of the list may look like this,

AL21RE
B244JH
B244UB
B322AU
B333SD
BA11BP
BS16BN
CB11ER

I have considered trying to convert each individual 'post code' to
an individual numeric value, in case vlook up finds this easier to
search. However I have been unable to find a formula that suits.

Is there anything that I am doing wrong, or any other way to
approach this. The post codes are the only identifiers that I can
search against.

Any advice gratefully received.

Pete G
Derby
England




  #8  
Old July 26th, 2004, 09:09 PM
pgiblin
external usenet poster
 
Posts: n/a
Default Vlookup post codes/zipcodes query


Sorry Guys, still no go

The formula reads =VLOOKUP(B4,CH4:CK257,1)

The data in cell B4 reads CB23PA, the data in Cell CK20 reads exactly the
same (no spaces or anything) CB23PA. So it should find that cell and return
the data in column1 which is a serial number?

What am I missing?






"Bob Phillips" wrote in message
...
Pete,

Try this as well

=VLOOKUP(TRIM(A17),I1:I8,2,FALSE)

adjust the cell references of course

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Frank Kabel" wrote in message
...
Hi
this would indicate there's no exact match. Have you checked there's a
valid match?. Also please post your used formula.

--
Regards
Frank Kabel
Frankfurt, Germany


pgiblin wrote:
Thanks Bob, however I have tried the formula you suggest but still
get a #n/a result.

"Bob Phillips" wrote in message
...
Use

=VLOOKUP(lookup_value,lookup_table,2,FALSE)

or whatever column offset you need, the False will not need the data
sorted.


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"pgiblin" wrote in message
...
Can anyone help me on this one? I am using vlookup to search for a
post code (zipcode) in an array. I have sorted the post code
column in the array into ascending order. However I am getting
'#N/A' as a result.

I have removed all spaces from the post codes.

I think it is because although they are 'sorted' the vlookup is
confused. for example a section of the list may look like this,

AL21RE
B244JH
B244UB
B322AU
B333SD
BA11BP
BS16BN
CB11ER

I have considered trying to convert each individual 'post code' to
an individual numeric value, in case vlook up finds this easier to
search. However I have been unable to find a formula that suits.

Is there anything that I am doing wrong, or any other way to
approach this. The post codes are the only identifiers that I can
search against.

Any advice gratefully received.

Pete G
Derby
England






  #9  
Old July 26th, 2004, 09:14 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default Vlookup post codes/zipcodes query

Seems odd.

Want to post me your workbook and I can take a look.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"pgiblin" wrote in message
...

Sorry Guys, still no go

The formula reads =VLOOKUP(B4,CH4:CK257,1)

The data in cell B4 reads CB23PA, the data in Cell CK20 reads exactly the
same (no spaces or anything) CB23PA. So it should find that cell and

return
the data in column1 which is a serial number?

What am I missing?






"Bob Phillips" wrote in message
...
Pete,

Try this as well

=VLOOKUP(TRIM(A17),I1:I8,2,FALSE)

adjust the cell references of course

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Frank Kabel" wrote in message
...
Hi
this would indicate there's no exact match. Have you checked there's a
valid match?. Also please post your used formula.

--
Regards
Frank Kabel
Frankfurt, Germany


pgiblin wrote:
Thanks Bob, however I have tried the formula you suggest but still
get a #n/a result.

"Bob Phillips" wrote in message
...
Use

=VLOOKUP(lookup_value,lookup_table,2,FALSE)

or whatever column offset you need, the False will not need the

data
sorted.


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"pgiblin" wrote in message
...
Can anyone help me on this one? I am using vlookup to search for

a
post code (zipcode) in an array. I have sorted the post code
column in the array into ascending order. However I am getting
'#N/A' as a result.

I have removed all spaces from the post codes.

I think it is because although they are 'sorted' the vlookup is
confused. for example a section of the list may look like this,

AL21RE
B244JH
B244UB
B322AU
B333SD
BA11BP
BS16BN
CB11ER

I have considered trying to convert each individual 'post code' to
an individual numeric value, in case vlook up finds this easier to
search. However I have been unable to find a formula that suits.

Is there anything that I am doing wrong, or any other way to
approach this. The post codes are the only identifiers that I can
search against.

Any advice gratefully received.

Pete G
Derby
England







  #10  
Old July 26th, 2004, 10:57 PM
Myrna Larson
external usenet poster
 
Posts: n/a
Default Vlookup post codes/zipcodes query

Are the codes in your table at CH4:CK257 sorted on column CH? If not, you need
to add the 4th argument, 0, to your VLOOKUP formula. That may be a good idea
anyway -- without it, if the list is sorted, and CB23OZ is present but not
CB23PA, the function will return CB23OZ.

On Mon, 26 Jul 2004 21:09:27 +0100, "pgiblin"
wrote:


Sorry Guys, still no go

The formula reads =VLOOKUP(B4,CH4:CK257,1)

The data in cell B4 reads CB23PA, the data in Cell CK20 reads exactly the
same (no spaces or anything) CB23PA. So it should find that cell and return
the data in column1 which is a serial number?

What am I missing?






"Bob Phillips" wrote in message
...
Pete,

Try this as well

=VLOOKUP(TRIM(A17),I1:I8,2,FALSE)

adjust the cell references of course

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Frank Kabel" wrote in message
...
Hi
this would indicate there's no exact match. Have you checked there's a
valid match?. Also please post your used formula.

--
Regards
Frank Kabel
Frankfurt, Germany


pgiblin wrote:
Thanks Bob, however I have tried the formula you suggest but still
get a #n/a result.

"Bob Phillips" wrote in message
...
Use

=VLOOKUP(lookup_value,lookup_table,2,FALSE)

or whatever column offset you need, the False will not need the data
sorted.


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"pgiblin" wrote in message
...
Can anyone help me on this one? I am using vlookup to search for a
post code (zipcode) in an array. I have sorted the post code
column in the array into ascending order. However I am getting
'#N/A' as a result.

I have removed all spaces from the post codes.

I think it is because although they are 'sorted' the vlookup is
confused. for example a section of the list may look like this,

AL21RE
B244JH
B244UB
B322AU
B333SD
BA11BP
BS16BN
CB11ER

I have considered trying to convert each individual 'post code' to
an individual numeric value, in case vlook up finds this easier to
search. However I have been unable to find a formula that suits.

Is there anything that I am doing wrong, or any other way to
approach this. The post codes are the only identifiers that I can
search against.

Any advice gratefully received.

Pete G
Derby
England





 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EXISTS reserved word in FROM clause Stephanie Doherty Running & Setting Up Queries 6 July 21st, 2004 01:15 AM
Display Parameter from Form on Report sara Setting Up & Running Reports 10 July 19th, 2004 04:54 PM
Struggling with MS Query... Alex General Discussion 5 July 6th, 2004 11:46 AM
SELECT function in Query alexparks Running & Setting Up Queries 9 July 5th, 2004 11:31 AM
Re post as no responses - join problem with query Julia Boswell Running & Setting Up Queries 5 June 22nd, 2004 04:39 PM


All times are GMT +1. The time now is 07:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.