Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Vlookup data and numeric

OK- What I have is an xls file with 2 worksheets (200 and availability) .

The formula I'm using is:

=vlookup($b3:$b202,availability!$A2:$B437,2,False)

'200' B3-B202 a 3 letter code
'Availability' A2-b437 is data(in A) and numeric(in B)

What I want the look up to do is return the numeric value from the
availability sheet to the corrosponding 3 letter code in the 200 worksheet

The data in 200 is static, however the data in availability is copied and
pasted
from another xls file in to the availability worksheet. If the data(ie the 3
letter code) is typed in to availability the formula works, otherwise it
comes up with #N/A.

Is there a formula that needs to be used to format the data?

Thanks in advance for your help!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Vlookup data and numeric

Perhaps you have spaces in the xls file from which you are copying and
pasting into the availability sheet - you can remove these using the
TRIM function, or by using Find & Replace directly after pasting
(replacing space with nothing).

Hope this helps.

Pete

On Jul 23, 12:26*am, Mick wrote:
OK- What I have is an xls file with 2 worksheets (200 and availability) .

The formula I'm using is:

=vlookup($b3:$b202,availability!$A2:$B437,2,False)

'200' B3-B202 a 3 letter code
'Availability' A2-b437 is data(in A) and numeric(in B)

What I want the look up to do is return the numeric value from the
availability sheet to the corrosponding 3 letter code in the 200 worksheet

The data in 200 is static, however the data in availability is copied and
pasted
from another xls file in to the availability worksheet. If the data(ie the 3
letter code) is typed in to availability the formula works, otherwise it
comes up with #N/A.

Is there a formula that needs to be used to format the data?

Thanks in advance for your help!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Vlookup data and numeric

Hi there,

Fantastic!!!

The find and replace did the job!

Legand....

Mick

"Pete_UK" wrote:

Perhaps you have spaces in the xls file from which you are copying and
pasting into the availability sheet - you can remove these using the
TRIM function, or by using Find & Replace directly after pasting
(replacing space with nothing).

Hope this helps.

Pete

On Jul 23, 12:26 am, Mick wrote:
OK- What I have is an xls file with 2 worksheets (200 and availability) .

The formula I'm using is:

=vlookup($b3:$b202,availability!$A2:$B437,2,False)

'200' B3-B202 a 3 letter code
'Availability' A2-b437 is data(in A) and numeric(in B)

What I want the look up to do is return the numeric value from the
availability sheet to the corrosponding 3 letter code in the 200 worksheet

The data in 200 is static, however the data in availability is copied and
pasted
from another xls file in to the availability worksheet. If the data(ie the 3
letter code) is typed in to availability the formula works, otherwise it
comes up with #N/A.

Is there a formula that needs to be used to format the data?

Thanks in advance for your help!



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Vlookup data and numeric

Well, glad to hear that, Mick - thanks for feeding back.

Pete

On Jul 23, 12:45*am, Mick wrote:
Hi there,

Fantastic!!!

The find and replace did the job!

Legand....

Mick

  #5   Report Post  
Posted to microsoft.public.excel.misc
SMH SMH is offline
external usenet poster
 
Posts: 29
Default Vlookup data and numeric

Hi Pete,

I am having the same issue as Mick and it is SO frustrating! I tried
deleting any spaces from my data, but I still got "N/A" from my vlookup
formula.

I have two wooksheets (Total orders and Pts Earned by Range) and I'm trying
to find the same unique identifier between the two sheets. I am thinking it
has to be some kind of formatting issue. Does vlookup require the fields to
be numeric or text? Also, point of reference, the data I am comparing all
came in from an imported text file (which I think may be the problem).

Here is what I have: =VLOOKUP(B2, 'Pts Earned by Range'!$A$2:$D$270486, 2,
FALSE).

Any ideas? I could really use some help.

Thank you!

~Beyond frustrated with Excel

"Pete_UK" wrote:

Perhaps you have spaces in the xls file from which you are copying and
pasting into the availability sheet - you can remove these using the
TRIM function, or by using Find & Replace directly after pasting
(replacing space with nothing).

Hope this helps.

Pete

On Jul 23, 12:26 am, Mick wrote:
OK- What I have is an xls file with 2 worksheets (200 and availability) .

The formula I'm using is:

=vlookup($b3:$b202,availability!$A2:$B437,2,False)

'200' B3-B202 a 3 letter code
'Availability' A2-b437 is data(in A) and numeric(in B)

What I want the look up to do is return the numeric value from the
availability sheet to the corrosponding 3 letter code in the 200 worksheet

The data in 200 is static, however the data in availability is copied and
pasted
from another xls file in to the availability worksheet. If the data(ie the 3
letter code) is typed in to availability the formula works, otherwise it
comes up with #N/A.

Is there a formula that needs to be used to format the data?

Thanks in advance for your help!





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 563
Default Vlookup data and numeric

One of the problems with imported data is the hidden hard spaces at the end
of text.
Let's say B2 hold the name Joe Brown
On 'Pts Earned by Range' locate Joe Brown - lets say he is in row 12
In F12 type =A12 ='Total Orders'!B2
You should get TRUE
If not, click A12; go to the Formula Bar and hit End. Does this show you
that the entry ends with spaces?
If this is the problem, insert a new column B and use =TRIM(A1) to get the
name without the spaces
use Copy followed by Paste Special Values to convert these formula to
values. Now you can remove the column A

--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"SMH" wrote in message
...
Hi Pete,

I am having the same issue as Mick and it is SO frustrating! I tried
deleting any spaces from my data, but I still got "N/A" from my vlookup
formula.

I have two wooksheets (Total orders and Pts Earned by Range) and I'm
trying
to find the same unique identifier between the two sheets. I am thinking
it
has to be some kind of formatting issue. Does vlookup require the fields
to
be numeric or text? Also, point of reference, the data I am comparing all
came in from an imported text file (which I think may be the problem).

Here is what I have: =VLOOKUP(B2, 'Pts Earned by Range'!$A$2:$D$270486, 2,
FALSE).

Any ideas? I could really use some help.

Thank you!

~Beyond frustrated with Excel

"Pete_UK" wrote:

Perhaps you have spaces in the xls file from which you are copying and
pasting into the availability sheet - you can remove these using the
TRIM function, or by using Find & Replace directly after pasting
(replacing space with nothing).

Hope this helps.

Pete

On Jul 23, 12:26 am, Mick wrote:
OK- What I have is an xls file with 2 worksheets (200 and availability)
.

The formula I'm using is:

=vlookup($b3:$b202,availability!$A2:$B437,2,False)

'200' B3-B202 a 3 letter code
'Availability' A2-b437 is data(in A) and numeric(in B)

What I want the look up to do is return the numeric value from the
availability sheet to the corrosponding 3 letter code in the 200
worksheet

The data in 200 is static, however the data in availability is copied
and
pasted
from another xls file in to the availability worksheet. If the data(ie
the 3
letter code) is typed in to availability the formula works, otherwise
it
comes up with #N/A.

Is there a formula that needs to be used to format the data?

Thanks in advance for your help!



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Vlookup data and numeric

Sometimes when you import data (particularly from an HTML source) you
will get non-breaking space characters which have an ASCI code of 160.
These are different than the normal space characters (with a code of
32). You can get rid of them using Find & Replace as follows:

Select/highlight the data.
CTRL-H (Find & Replace)
Find What: Alt-0160
Replace With: leave blank
Click Replace All

Where Alt-0160 means to hold down the Alt key while typing 0160 on the
numeric keypad.

Hope this helps.

Pete

On Apr 6, 2:05*pm, SMH wrote:
Hi Pete,

I am having the same issue as Mick and it is SO frustrating! *I tried
deleting any spaces from my data, but I still got "N/A" from my vlookup
formula.

I have two wooksheets (Total orders and Pts Earned by Range) and I'm trying
to find the same unique identifier between the two sheets. *I am thinking it
has to be some kind of formatting issue. *Does vlookup require the fields to
be numeric or text? *Also, point of reference, the data I am comparing all
came in from an imported text file (which I think may be the problem).

Here is what I have: =VLOOKUP(B2, 'Pts Earned by Range'!$A$2:$D$270486, 2,
FALSE).

Any ideas? *I could really use some help.

Thank you!

~Beyond frustrated with Excel



"Pete_UK" wrote:
Perhaps you have spaces in the xls file from which you are copying and
pasting into the availability sheet - you can remove these using the
TRIM function, or by using Find & Replace directly after pasting
(replacing space with nothing).


Hope this helps.


Pete


On Jul 23, 12:26 am, Mick wrote:
OK- What I have is an xls file with 2 worksheets (200 and availability) .


The formula I'm using is:


=vlookup($b3:$b202,availability!$A2:$B437,2,False)


'200' B3-B202 a 3 letter code
'Availability' A2-b437 is data(in A) and numeric(in B)


What I want the look up to do is return the numeric value from the
availability sheet to the corrosponding 3 letter code in the 200 worksheet


The data in 200 is static, however the data in availability is copied and
pasted
from another xls file in to the availability worksheet. If the data(ie the 3
letter code) is typed in to availability the formula works, otherwise it
comes up with #N/A.


Is there a formula that needs to be used to format the data?


Thanks in advance for your help!- Hide quoted text -


- Show quoted text -


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP with numeric and alphanumeric values Dan Excel Discussion (Misc queries) 6 November 2nd 07 04:59 PM
Vlookup using letter and numeric codes LW_Greeney Excel Discussion (Misc queries) 2 May 23rd 06 05:24 PM
Numeric in Text to convert back to the form of Numeric for VLookup Purposes achilles Excel Discussion (Misc queries) 4 February 6th 06 07:05 AM
Match Single Numeric Criteria and Return Multiple Numeric Labels Sam via OfficeKB.com Excel Worksheet Functions 0 December 29th 05 08:44 PM
VLOOKUP WITH ALPHA NUMERIC JACOB Excel Worksheet Functions 14 June 16th 05 04:10 PM


All times are GMT +1. The time now is 07:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"