Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default look up formula not returning data

I have been working with vlookup tables for a while now but when I started a
new one with some new date from another source, it stopped working. It will
not return values that I ask it to lookup. The date is both numerical and
text. I have sorted the date in ascending order. I have tried changing the
data from number to text to general. Nothing seems to work.

If I open another sheet up and try to a vlookup it works. It is just not
working with my new data.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 296
Default look up formula not returning data

On Wed, 20 Sep 2006 14:21:01 -0700, Hopeful
wrote:

I have been working with vlookup tables for a while now but when I started a
new one with some new date from another source, it stopped working. It will
not return values that I ask it to lookup. The date is both numerical and
text. I have sorted the date in ascending order. I have tried changing the
data from number to text to general. Nothing seems to work.

If I open another sheet up and try to a vlookup it works. It is just not
working with my new data.

Thanks


What's the formula you're using, and are you sure the subject of the
vlookup i.e. the first term, really exists in your data?

What error message are you getting?

Rgds

__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default look up formula not returning data

Changing the format of the cell isn't enough to change the value in the cell.

If you want to convert a bunch of cells from Text numbers to number numbers,

you can select an empty cell
then edit|Copy
select the range to fix
edit|paste special|check add





Hopeful wrote:

I have been working with vlookup tables for a while now but when I started a
new one with some new date from another source, it stopped working. It will
not return values that I ask it to lookup. The date is both numerical and
text. I have sorted the date in ascending order. I have tried changing the
data from number to text to general. Nothing seems to work.

If I open another sheet up and try to a vlookup it works. It is just not
working with my new data.

Thanks


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default look up formula not returning data

If you have pasted data in from another source, it may look like
numbers to you but could in reality be text.

Also, if you are looking up text values, then you may find that there
are leading or trailing spaces, so the data value may "appear" to be
the same as the lookup value but is actually quite different.

Hope this helps.

Pete

Hopeful wrote:
I have been working with vlookup tables for a while now but when I started a
new one with some new date from another source, it stopped working. It will
not return values that I ask it to lookup. The date is both numerical and
text. I have sorted the date in ascending order. I have tried changing the
data from number to text to general. Nothing seems to work.

If I open another sheet up and try to a vlookup it works. It is just not
working with my new data.

Thanks


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Boo Boo is offline
external usenet poster
 
Posts: 21
Default look up formula not returning data

Hopeful,

This sounds like a formatting issue (which probably won't come as a surprise
to you!).

For example, if column A contains the values 1,2,A,B and the corresponing
entries in column B are One, Two, AAA, BBB a lookup formula of

=vlookup("1",A1:B4,2,false) will return #N/A because Excel is looking for
the text value 1 and not the numerical value 1 (which sounds like the problem
you are experiencing).

If I change the format of column A to be text this should solve the problem
- no! The formula will not update unless you edit the cell (F2) and then
press return - you don't want to do this for all cells!

Best way to get round this is choose a column with no data, enter a formula
along the lines of =proper(A1), copy down so all values you will be looking
up on are covered. Select this list of formulas, copy and then paste special
the values back to your original column.

Excel will now pick up the lookup values for you (assuming there is a match).

Sounds long winded but it takes a few seconds to do.

"Hopeful" wrote:

I have been working with vlookup tables for a while now but when I started a
new one with some new date from another source, it stopped working. It will
not return values that I ask it to lookup. The date is both numerical and
text. I have sorted the date in ascending order. I have tried changing the
data from number to text to general. Nothing seems to work.

If I open another sheet up and try to a vlookup it works. It is just not
working with my new data.

Thanks



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default look up formula not returning data

Sounds like the data format is not what you think it is.

If you think a cell is a number try this to validate =ISNUMBER(cellref) TRUE
or FALSE is returned.

If a number is formatted as text, simply re-formatting will not change it.

You must force a change to make it a real number.

Format all to General.

Copy an empty cell and select your data range.

EditPaste SpecialAddOKEsc

If that doesn't work, maybe you have some extra spaces in the data.

Try running =TRIM(cellref) to remove.


Gord Dibben MS Excel MVP

On Wed, 20 Sep 2006 14:21:01 -0700, Hopeful
wrote:

I have been working with vlookup tables for a while now but when I started a
new one with some new date from another source, it stopped working. It will
not return values that I ask it to lookup. The date is both numerical and
text. I have sorted the date in ascending order. I have tried changing the
data from number to text to general. Nothing seems to work.

If I open another sheet up and try to a vlookup it works. It is just not
working with my new data.

Thanks


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
macro unouwanme Excel Discussion (Misc queries) 9 August 31st 06 09:38 PM
Inputting data to one worksheet for it effect another daedalus1 Excel Discussion (Misc queries) 1 June 25th 06 04:39 PM
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Howdo U copy a formula down a column, that uses data in another w. brantty Excel Worksheet Functions 0 February 25th 05 10:11 AM


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