Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Vlookup cell reference

I have two spreadsheets, each containing a column of ID numbers common to
both sheets. I am attempting to extract data from one sheet and insert into
the other sheet using the common ID numbers. My formula is
=Vlookup(A5,A100:X200, 3) where A5 is the ID number I'm referencing on the
first sheet, A100:X200 is the range of data on the second sheet and 3 is the
column offset. I. get the formula or N/A as a result. If I enter the ID
number in place of the cell reference A5, it works.

The formula works on other spreadsheets so there must be something in this
one that prevents the cell reference from working in vlookup.

Can someone help?


--
johno
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Vlookup cell reference

Two things:

1. If you are trying to reference two different sheets, you need to tell
Excel that. Right now your formula references only one sheet. There's no
mention of any other. Try something like:
=vlookup(a5,Sheet2!a100:x200,3)

2. If your ID numbers aren't sorted, you need to add the fourth parameter,
as in:
=vlookup(a5,Sheet2!a100:x200,3,false)

Regards,
Fred.

"Johno" wrote in message
...
I have two spreadsheets, each containing a column of ID numbers common to
both sheets. I am attempting to extract data from one sheet and insert
into
the other sheet using the common ID numbers. My formula is
=Vlookup(A5,A100:X200, 3) where A5 is the ID number I'm referencing on the
first sheet, A100:X200 is the range of data on the second sheet and 3 is
the
column offset. I. get the formula or N/A as a result. If I enter the ID
number in place of the cell reference A5, it works.

The formula works on other spreadsheets so there must be something in this
one that prevents the cell reference from working in vlookup.

Can someone help?


--
johno


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Vlookup cell reference

See if this helps:

http://contextures.com/xlFunctions02.html#Trouble

--
Biff
Microsoft Excel MVP


"Johno" wrote in message
...
I have two spreadsheets, each containing a column of ID numbers common to
both sheets. I am attempting to extract data from one sheet and insert
into
the other sheet using the common ID numbers. My formula is
=Vlookup(A5,A100:X200, 3) where A5 is the ID number I'm referencing on the
first sheet, A100:X200 is the range of data on the second sheet and 3 is
the
column offset. I. get the formula or N/A as a result. If I enter the ID
number in place of the cell reference A5, it works.

The formula works on other spreadsheets so there must be something in this
one that prevents the cell reference from working in vlookup.

Can someone help?


--
johno



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Vlookup cell reference

Thanks fred, but as to #1, I pasted the second spreadsheet range onto the
first spreadsheet, so I only have one sheet.

As to #2, I tried it with the fourth parameter and it still doesn't work.

any other suggestions, it's as though there is something in the spreadsheet
that is causing the problem. What's really weird, is that when i enter the
formula preceded by the = sign, I get the formula as a result.

As I think I said before, everything works on another spreadsheet.
--
johno


"Fred Smith" wrote:

Two things:

1. If you are trying to reference two different sheets, you need to tell
Excel that. Right now your formula references only one sheet. There's no
mention of any other. Try something like:
=vlookup(a5,Sheet2!a100:x200,3)

2. If your ID numbers aren't sorted, you need to add the fourth parameter,
as in:
=vlookup(a5,Sheet2!a100:x200,3,false)

Regards,
Fred.

"Johno" wrote in message
...
I have two spreadsheets, each containing a column of ID numbers common to
both sheets. I am attempting to extract data from one sheet and insert
into
the other sheet using the common ID numbers. My formula is
=Vlookup(A5,A100:X200, 3) where A5 is the ID number I'm referencing on the
first sheet, A100:X200 is the range of data on the second sheet and 3 is
the
column offset. I. get the formula or N/A as a result. If I enter the ID
number in place of the cell reference A5, it works.

The formula works on other spreadsheets so there must be something in this
one that prevents the cell reference from working in vlookup.

Can someone help?


--
johno



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Vlookup cell reference

Thanks, but I checked all of those options. I exported the data from a web
based data warehouse. Out of frustration, I deleted the ID numbers that were
exported and retyped them so I know there are no spaces or other characters.
It still did not work.
--
johno


"T. Valko" wrote:

See if this helps:

http://contextures.com/xlFunctions02.html#Trouble

--
Biff
Microsoft Excel MVP


"Johno" wrote in message
...
I have two spreadsheets, each containing a column of ID numbers common to
both sheets. I am attempting to extract data from one sheet and insert
into
the other sheet using the common ID numbers. My formula is
=Vlookup(A5,A100:X200, 3) where A5 is the ID number I'm referencing on the
first sheet, A100:X200 is the range of data on the second sheet and 3 is
the
column offset. I. get the formula or N/A as a result. If I enter the ID
number in place of the cell reference A5, it works.

The formula works on other spreadsheets so there must be something in this
one that prevents the cell reference from working in vlookup.

Can someone help?


--
johno






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Vlookup cell reference

Hi Johno,
when I get this error, it is usually because one of the lookup up cells is
recognisd as text and the other numeric... I am assuming the ID numbers are
numeric only.

To get around this, I usually am succesful with =Vlookup(A5*1,A100:X200, 3,
false) ... the *1 usually converts the "string" number to a number

"Johno" wrote:

Thanks, but I checked all of those options. I exported the data from a web
based data warehouse. Out of frustration, I deleted the ID numbers that were
exported and retyped them so I know there are no spaces or other characters.
It still did not work.
--
johno


"T. Valko" wrote:

See if this helps:

http://contextures.com/xlFunctions02.html#Trouble

--
Biff
Microsoft Excel MVP


"Johno" wrote in message
...
I have two spreadsheets, each containing a column of ID numbers common to
both sheets. I am attempting to extract data from one sheet and insert
into
the other sheet using the common ID numbers. My formula is
=Vlookup(A5,A100:X200, 3) where A5 is the ID number I'm referencing on the
first sheet, A100:X200 is the range of data on the second sheet and 3 is
the
column offset. I. get the formula or N/A as a result. If I enter the ID
number in place of the cell reference A5, it works.

The formula works on other spreadsheets so there must be something in this
one that prevents the cell reference from working in vlookup.

Can someone help?


--
johno




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Vlookup cell reference

Thanks Leo, that was it. Even though I had formatted the row for number, it
still treated it as text.
--
johno


"LesG" wrote:

Hi Johno,
when I get this error, it is usually because one of the lookup up cells is
recognisd as text and the other numeric... I am assuming the ID numbers are
numeric only.

To get around this, I usually am succesful with =Vlookup(A5*1,A100:X200, 3,
false) ... the *1 usually converts the "string" number to a number

"Johno" wrote:

Thanks, but I checked all of those options. I exported the data from a web
based data warehouse. Out of frustration, I deleted the ID numbers that were
exported and retyped them so I know there are no spaces or other characters.
It still did not work.
--
johno


"T. Valko" wrote:

See if this helps:

http://contextures.com/xlFunctions02.html#Trouble

--
Biff
Microsoft Excel MVP


"Johno" wrote in message
...
I have two spreadsheets, each containing a column of ID numbers common to
both sheets. I am attempting to extract data from one sheet and insert
into
the other sheet using the common ID numbers. My formula is
=Vlookup(A5,A100:X200, 3) where A5 is the ID number I'm referencing on the
first sheet, A100:X200 is the range of data on the second sheet and 3 is
the
column offset. I. get the formula or N/A as a result. If I enter the ID
number in place of the cell reference A5, it works.

The formula works on other spreadsheets so there must be something in this
one that prevents the cell reference from working in vlookup.

Can someone help?


--
johno



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 cell reference KJ Excel Discussion (Misc queries) 2 January 17th 08 10:35 PM
VLookup and a Cell Reference Karen53 Excel Worksheet Functions 3 August 29th 07 09:43 PM
VLOOKUP using cell reference Lee Harris Excel Worksheet Functions 1 August 18th 06 05:10 PM
How do I find the cell reference for a vlookup? Curious Excel User Excel Worksheet Functions 2 August 2nd 06 11:50 PM
use a cell to reference a range in a vlookup Dan Excel Discussion (Misc queries) 4 July 27th 05 07:36 PM


All times are GMT +1. The time now is 11:11 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"