#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default vlookup

Hello:

In one tab of a spreadsheet, I have two columns. Column A contains my
VLOOKUP formula. Column B contains Inventory item numbers. This tab is
called "Sales".

The other tab of my spreadsheet is called "Items". This tab, also, contains
two columns. Column A contains item numbers found within column B of the
"Sales" tab.

Column B of the "Items" tab contains the former names of these item numbers
(the prior-used names).

I want the VLOOKUP of the "Sales" tab to place into column A of the "Sales"
tab the item numbers of column B of the "Items" tab. The formula that I have
in column A of the "Sales" tab is not working:
=VLOOKUP(B2,Items!$A$2:$B$220,2,FALSE)

How can I fix this?

Thanks!

childofthe1980s
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default vlookup

You ddin't say what error you were getting. If you are not getting an error
then the data doesn't EXACTLY match. This is usually because there is extra
spaces in the data or one cell contains more data than the other.

"childofthe1980s" wrote:

Hello:

In one tab of a spreadsheet, I have two columns. Column A contains my
VLOOKUP formula. Column B contains Inventory item numbers. This tab is
called "Sales".

The other tab of my spreadsheet is called "Items". This tab, also, contains
two columns. Column A contains item numbers found within column B of the
"Sales" tab.

Column B of the "Items" tab contains the former names of these item numbers
(the prior-used names).

I want the VLOOKUP of the "Sales" tab to place into column A of the "Sales"
tab the item numbers of column B of the "Items" tab. The formula that I have
in column A of the "Sales" tab is not working:
=VLOOKUP(B2,Items!$A$2:$B$220,2,FALSE)

How can I fix this?

Thanks!

childofthe1980s

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default vlookup

Please re-read what I said. Instead of returning column B of "Items", it is
returning "N/A".

"Joel" wrote:

You ddin't say what error you were getting. If you are not getting an error
then the data doesn't EXACTLY match. This is usually because there is extra
spaces in the data or one cell contains more data than the other.

"childofthe1980s" wrote:

Hello:

In one tab of a spreadsheet, I have two columns. Column A contains my
VLOOKUP formula. Column B contains Inventory item numbers. This tab is
called "Sales".

The other tab of my spreadsheet is called "Items". This tab, also, contains
two columns. Column A contains item numbers found within column B of the
"Sales" tab.

Column B of the "Items" tab contains the former names of these item numbers
(the prior-used names).

I want the VLOOKUP of the "Sales" tab to place into column A of the "Sales"
tab the item numbers of column B of the "Items" tab. The formula that I have
in column A of the "Sales" tab is not working:
=VLOOKUP(B2,Items!$A$2:$B$220,2,FALSE)

How can I fix this?

Thanks!

childofthe1980s

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default vlookup

The VLOOKUP help says the following

1) If VLOOKUP can't find lookup_value, and range_lookup is TRUE, it uses the
largest value that is less than or equal to lookup_value.
2) If lookup_value is smaller than the smallest value in the first column of
table_array, VLOOKUP returns the #N/A error value.
3) If VLOOKUP can't find lookup_value, and range_lookup is FALSE, VLOOKUP
returns the #N/A value.


"childofthe1980s" wrote:

Please re-read what I said. Instead of returning column B of "Items", it is
returning "N/A".

"Joel" wrote:

You ddin't say what error you were getting. If you are not getting an error
then the data doesn't EXACTLY match. This is usually because there is extra
spaces in the data or one cell contains more data than the other.

"childofthe1980s" wrote:

Hello:

In one tab of a spreadsheet, I have two columns. Column A contains my
VLOOKUP formula. Column B contains Inventory item numbers. This tab is
called "Sales".

The other tab of my spreadsheet is called "Items". This tab, also, contains
two columns. Column A contains item numbers found within column B of the
"Sales" tab.

Column B of the "Items" tab contains the former names of these item numbers
(the prior-used names).

I want the VLOOKUP of the "Sales" tab to place into column A of the "Sales"
tab the item numbers of column B of the "Items" tab. The formula that I have
in column A of the "Sales" tab is not working:
=VLOOKUP(B2,Items!$A$2:$B$220,2,FALSE)

How can I fix this?

Thanks!

childofthe1980s

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default vlookup

Thank you so much, Joel!!!

#3 of what you said resolved it! I had to change it from FALSE to TRUE!

Again, thanks!

childofthe1980s

"Joel" wrote:

The VLOOKUP help says the following

1) If VLOOKUP can't find lookup_value, and range_lookup is TRUE, it uses the
largest value that is less than or equal to lookup_value.
2) If lookup_value is smaller than the smallest value in the first column of
table_array, VLOOKUP returns the #N/A error value.
3) If VLOOKUP can't find lookup_value, and range_lookup is FALSE, VLOOKUP
returns the #N/A value.


"childofthe1980s" wrote:

Please re-read what I said. Instead of returning column B of "Items", it is
returning "N/A".

"Joel" wrote:

You ddin't say what error you were getting. If you are not getting an error
then the data doesn't EXACTLY match. This is usually because there is extra
spaces in the data or one cell contains more data than the other.

"childofthe1980s" wrote:

Hello:

In one tab of a spreadsheet, I have two columns. Column A contains my
VLOOKUP formula. Column B contains Inventory item numbers. This tab is
called "Sales".

The other tab of my spreadsheet is called "Items". This tab, also, contains
two columns. Column A contains item numbers found within column B of the
"Sales" tab.

Column B of the "Items" tab contains the former names of these item numbers
(the prior-used names).

I want the VLOOKUP of the "Sales" tab to place into column A of the "Sales"
tab the item numbers of column B of the "Items" tab. The formula that I have
in column A of the "Sales" tab is not working:
=VLOOKUP(B2,Items!$A$2:$B$220,2,FALSE)

How can I fix this?

Thanks!

childofthe1980s

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
If (Vlookup 0) working, but what if Vlookup cell does not exist Steve Excel Worksheet Functions 18 November 18th 09 07:33 PM
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
using a vlookup to enter text into rows beneath the vlookup cell Roger on Excel Excel Programming 1 November 29th 07 12:09 PM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM


All times are GMT +1. The time now is 09:00 PM.

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

About Us

"It's about Microsoft Excel"