Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Converting a LARGE volume of numbers to text in Excel for VLOOKUP

I have a VERY large table that I want to use in a VLOOKUP function. Th
first column of the table, if I understand correctly, needs to be i
text format. It is currently all in number format, causing my VLOOKU
function to not work properly. If I right click on the entire column
and format it into TEXT format, the numbers all align over to the left
appearing to have been converted to text. However, the VLOOKU
function still doesn't work. BUT....if I find the value in the tabl
manually, F2 it, and then hit ENTER, my VLOOKUP function then DOE
work.

It almost seems to be that it doesn't actually convert to text unless
do this step (F2, enter). The problem is, there's over 40000 rows i
this table, so I can't possibly do this to every cell in that firs
column. Is there a macro (I'm macro-challenged) or some other way tha
I can do this quickly and easily

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Converting a LARGE volume of numbers to text in Excel for VLOOKUP

First, Your data doesn't have to be text. It's just that often your search
argument is sometimes text and sometimes numbers, that make the results
looking inconsistent.
So the easiest thing is to make sure your search argument is a number (if
you're sure your table is all numbers). You can use the VALUE() function for
that.
If for some reason you insist on making your table text, introduce a
(temporary) extra column, use the TEXT() function to convert to text, copy
and replace the original with the results using Paste SpecialValues

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"JoFlo " wrote in message
...
I have a VERY large table that I want to use in a VLOOKUP function. The
first column of the table, if I understand correctly, needs to be in
text format. It is currently all in number format, causing my VLOOKUP
function to not work properly. If I right click on the entire column,
and format it into TEXT format, the numbers all align over to the left,
appearing to have been converted to text. However, the VLOOKUP
function still doesn't work. BUT....if I find the value in the table
manually, F2 it, and then hit ENTER, my VLOOKUP function then DOES
work.

It almost seems to be that it doesn't actually convert to text unless I
do this step (F2, enter). The problem is, there's over 40000 rows in
this table, so I can't possibly do this to every cell in that first
column. Is there a macro (I'm macro-challenged) or some other way that
I can do this quickly and easily?


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Converting a LARGE volume of numbers to text in Excel for VLOOKUP

It might be possible to avoid even needing a macro: have
you tried adding another column to the left and using the
TEXT function to force the value to be seen as text; in
other words something like:

A1 = TEXT(B1,"#######")
etc...

Don't know if this would work but could be an easy fix.

-----Original Message-----
I have a VERY large table that I want to use in a VLOOKUP

function. The
first column of the table, if I understand correctly,

needs to be in
text format. It is currently all in number format,

causing my VLOOKUP
function to not work properly. If I right click on the

entire column,
and format it into TEXT format, the numbers all align

over to the left,
appearing to have been converted to text. However, the

VLOOKUP
function still doesn't work. BUT....if I find the value

in the table
manually, F2 it, and then hit ENTER, my VLOOKUP function

then DOES
work.

It almost seems to be that it doesn't actually convert to

text unless I
do this step (F2, enter). The problem is, there's over

40000 rows in
this table, so I can't possibly do this to every cell in

that first
column. Is there a macro (I'm macro-challenged) or some

other way that
I can do this quickly and easily?


---
Message posted from http://www.ExcelForum.com/

.

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
Pasting large numbers as text in Excel Sian Excel Discussion (Misc queries) 4 May 15th 09 06:13 PM
Converting Text to Numbers in Excel w/ Additional Spaces [email protected] Excel Worksheet Functions 4 January 22nd 09 02:40 AM
Converting multiple numbers saved as text in excel NANGO Excel Discussion (Misc queries) 3 March 14th 07 04:34 PM
Converting numbers stored as dates to text in Excel David from Furdale Excel Discussion (Misc queries) 1 July 17th 06 06:34 PM
Drawing a graph from a large volume of unusual data mems555 Excel Discussion (Misc queries) 6 February 1st 06 06:18 PM


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