Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default general number format and VLOOKUP

our report writer returns numbers in general format however initially each
cell has an Excel "error" note (green triangle in top left corner) to say the
numbers in the cell are formatted as text or preceded by an apostrophe.
VLOOKUP won't work until this "error" is cleared. I can clear it by pressing
F2 and Enter within each cell and then VLOOKUP works fine but is there a
quicker or automated way to do this as it gets to be a pain when you have
2000 rows of data.

thanks
--
Pauline Warner
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 36
Default general number format and VLOOKUP

When you get the message there's an exclamation mark that pops up - with all
your values selected press the exclamation mark to get a pop-up menu and
select convert to number.

This will convert all the values to number format in one hit.

A quicker way, but not the ideal solution - which would be to have your
report writer place them as the same format as the VLOOKUP in the first place.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default general number format and VLOOKUP

thanks Darren - simple solution but works brilliantly. I can't tell you how
much time I have previously wasted with the F2+Enter approach - duh!

10 out of 10!
--
Pauline Warner


"Darren Bartrup" wrote:

When you get the message there's an exclamation mark that pops up - with all
your values selected press the exclamation mark to get a pop-up menu and
select convert to number.

This will convert all the values to number format in one hit.

A quicker way, but not the ideal solution - which would be to have your
report writer place them as the same format as the VLOOKUP in the first place.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 36
Default general number format and VLOOKUP

Glad to help :)
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default general number format and VLOOKUP

I have a similar problem even when I have formatted all the values in a
column with the same format - either number or text. The VLOOKUP and MATCH
functions sometimes do not work unless, like Pauline Warner below, I press
F2/Enter in each cell, or click on the edit bar at the top of the screen,
then Enter (They give #N/a eerror). It is as if the spreadsheet does not know
what the format is until you hit Enter.

"Darren Bartrup" wrote:

When you get the message there's an exclamation mark that pops up - with all
your values selected press the exclamation mark to get a pop-up menu and
select convert to number.

This will convert all the values to number format in one hit.

A quicker way, but not the ideal solution - which would be to have your
report writer place them as the same format as the VLOOKUP in the first place.


Question

our report writer returns numbers in general format however initially each
cell has an Excel "error" note (green triangle in top left corner) to say the
numbers in the cell are formatted as text or preceded by an apostrophe.
VLOOKUP won't work until this "error" is cleared. I can clear it by pressing
F2 and Enter within each cell and then VLOOKUP works fine but is there a
quicker or automated way to do this as it gets to be a pain when you have
2000 rows of data.

thanks
--
Pauline Warner




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default general number format and VLOOKUP

Darren gave Pauline a tip on how to change them all in one go - have
you tried that?

Alternatively, if your lookup table contains text values that look
like numbers and your lookup value is a proper number, then you could
modify your VLOOKUP formula like this:

=VLOOKUP(A1&"",lookup_table,2,0)

where A1 contains your lookup value, and the formula thus converts the
proper number to text.

Hope this helps.

Pete

On Mar 20, 8:45*pm, PianistFromJersey
wrote:
I have a similar problem even when I have formatted all the values in a
column with the same format - either number or text. The VLOOKUP and MATCH
functions sometimes do not work unless, like Pauline Warner below, I press
F2/Enter in each cell, or click on the edit bar at the top of the screen,
then Enter (They give #N/a eerror). It is as if the spreadsheet does not know
what the format is until you hit Enter.

"Darren Bartrup" wrote:
When you get the message there's an exclamation mark that pops up - with all
your values selected press the exclamation mark to get a pop-up menu and
select convert to number.


This will convert all the values to number format in one hit.


A quicker way, but not the ideal solution - which would be to have your
report writer place them as the same format as the VLOOKUP in the first place.


Question

* our report writer returns numbers in general format however initially each
cell has an Excel "error" note (green triangle in top left corner) to say the
numbers in the cell are formatted as text or preceded by an apostrophe.
VLOOKUP won't work until this "error" is cleared. I can clear it by pressing
F2 and Enter within each cell and then VLOOKUP works fine but is there a
quicker or automated way to do this as it gets to be a pain when you have
2000 rows of data.

thanks
--
Pauline Warner


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 45
Default general number format and VLOOKUP

I have a file where the #'s are formatted as text and the VLOOKUP will not
work. I can go to format/cells and change to number, but when I click "ok",
nothing has changed. If I "copy/paste special values" the cells to another
column, it still comes over as text. However, if I type the # in another
column, the vlookup will work on this column. What do I need to do to change
the column of #'s so the VLOOKUP will work without retyping all of the
entries? Thanks!
--
Patty


"Darren Bartrup" wrote:

When you get the message there's an exclamation mark that pops up - with all
your values selected press the exclamation mark to get a pop-up menu and
select convert to number.

This will convert all the values to number format in one hit.

A quicker way, but not the ideal solution - which would be to have your
report writer place them as the same format as the VLOOKUP in the first place.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default general number format and VLOOKUP

Format an empty cell as number, copy the same cell, select the text numbers
and do editpaste special
and select add


--


Regards,


Peo Sjoblom



"Patty" wrote in message
...
I have a file where the #'s are formatted as text and the VLOOKUP will not
work. I can go to format/cells and change to number, but when I click
"ok",
nothing has changed. If I "copy/paste special values" the cells to
another
column, it still comes over as text. However, if I type the # in another
column, the vlookup will work on this column. What do I need to do to
change
the column of #'s so the VLOOKUP will work without retyping all of the
entries? Thanks!
--
Patty


"Darren Bartrup" wrote:

When you get the message there's an exclamation mark that pops up - with
all
your values selected press the exclamation mark to get a pop-up menu and
select convert to number.

This will convert all the values to number format in one hit.

A quicker way, but not the ideal solution - which would be to have your
report writer place them as the same format as the VLOOKUP in the first
place.



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 return NA for numbers format as general Marcelo Excel Worksheet Functions 1 September 3rd 07 05:50 PM
Converting data in General Format cell to a number PE Excel Discussion (Misc queries) 3 October 26th 06 11:58 AM
how do I convert a general number to a time format? doveness Excel Worksheet Functions 6 May 26th 06 12:39 AM
General number format dudesicle Excel Discussion (Misc queries) 2 February 9th 06 06:19 AM
How do I add a zero in front of a number in general format? dvs Excel Discussion (Misc queries) 1 July 2nd 05 11:31 PM


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