Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Inconsistent behavior using VLOOKUP

Hello,
I am working on a sheet which sets up contact info based on a list,
such as:

Name.................
Address...........
City, State............
Phone...............

The "Name" cell is a drop down list, tied to data on another sheet.
The other contact cells are activated using a VLOOKUP function. I use
the following code in the "Address" box

=VLOOKUP(C12,vendors!A1:L1000,2,FALSE)

In one worksheet, this works perfectly. In another seemingly similar
worksheet, this same function doesn't work at all. After entering the
formula, as shown, the cell shows the formula as if I had entered it
as text.

Any suggestions?

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Inconsistent behavior using VLOOKUP

Go to Edit - Format Cell - Number and switch from Text to General. Now go
to the cell and double click to get inot edit mode. Hit enter to exit edit
mode and you should be good to go...
--
HTH...

Jim Thomlinson


"Andrew" wrote:

Hello,
I am working on a sheet which sets up contact info based on a list,
such as:

Name.................
Address...........
City, State............
Phone...............

The "Name" cell is a drop down list, tied to data on another sheet.
The other contact cells are activated using a VLOOKUP function. I use
the following code in the "Address" box

=VLOOKUP(C12,vendors!A1:L1000,2,FALSE)

In one worksheet, this works perfectly. In another seemingly similar
worksheet, this same function doesn't work at all. After entering the
formula, as shown, the cell shows the formula as if I had entered it
as text.

Any suggestions?

thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Inconsistent behavior using VLOOKUP

Go to Edit - Format Cell - Number and switch from Text to General. Now go
to the cell and double click to get inot edit mode. Hit enter to exit edit
mode and you should be good to go...

--
HTH...

Jim Thomlinson


"Andrew" wrote:

Hello,
I am working on a sheet which sets up contact info based on a list,
such as:

Name.................
Address...........
City, State............
Phone...............

The "Name" cell is a drop down list, tied to data on another sheet.
The other contact cells are activated using a VLOOKUP function. I use
the following code in the "Address" box

=VLOOKUP(C12,vendors!A1:L1000,2,FALSE)

In one worksheet, this works perfectly. In another seemingly similar
worksheet, this same function doesn't work at all. After entering the
formula, as shown, the cell shows the formula as if I had entered it
as text.

Any suggestions?

thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Inconsistent behavior using VLOOKUP

This cell was formatted as text before you entered the formula. Just formatting afterwards doesn't help.

Format as general AND re-enter the formula (F2, ENTER)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"Andrew" wrote in message ...
| Hello,
| I am working on a sheet which sets up contact info based on a list,
| such as:
|
| Name.................
| Address...........
| City, State............
| Phone...............
|
| The "Name" cell is a drop down list, tied to data on another sheet.
| The other contact cells are activated using a VLOOKUP function. I use
| the following code in the "Address" box
|
| =VLOOKUP(C12,vendors!A1:L1000,2,FALSE)
|
| In one worksheet, this works perfectly. In another seemingly similar
| worksheet, this same function doesn't work at all. After entering the
| formula, as shown, the cell shows the formula as if I had entered it
| as text.
|
| Any suggestions?
|
| thanks


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Inconsistent behavior using VLOOKUP

On Feb 12, 3:15 pm, "Niek Otten" wrote:
This cell was formatted as text before you entered the formula. Just formatting afterwards doesn't help.

Format as general AND re-enter the formula (F2, ENTER)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Andrew" wrote in ...

| Hello,
| I am working on a sheet which sets up contact info based on a list,
| such as:
|
| Name.................
| Address...........
| City, State............
| Phone...............
|
| The "Name" cell is a drop down list, tied to data on another sheet.
| The other contact cells are activated using a VLOOKUP function. I use
| the following code in the "Address" box
|
| =VLOOKUP(C12,vendors!A1:L1000,2,FALSE)
|
| In one worksheet, this works perfectly. In another seemingly similar
| worksheet, this same function doesn't work at all. After entering the
| formula, as shown, the cell shows the formula as if I had entered it
| as text.
|
| Any suggestions?
|
| thanks


Thanks everyone. I appreciate the help.
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 inconsistent ... help. Wayne Excel Discussion (Misc queries) 2 February 22nd 10 09:07 AM
Excel clip board inconsistent behavior Bas V Excel Discussion (Misc queries) 0 January 30th 08 09:28 PM
Inconsistent Macro Behavior Sarah K Excel Discussion (Misc queries) 4 November 1st 05 10:36 PM
Inconsistent macro behavior davegb Excel Programming 2 June 21st 05 11:19 PM
Inconsistent Behavior on Web vs. Local Disk D. A. Gray Excel Programming 0 July 27th 03 08:13 PM


All times are GMT +1. The time now is 01:43 PM.

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"