When you've got numbers, changing the format still leaves them as numbers,
not text (so no little green corners).
You can handle the difference within your lookup formula, without having to
change the data. If your lookup_value (the first argument) is text and the
table you're looking into has numbers, you can use =vlookup(value(a1),.....).
If it's the opposite, so that the lookup_value is numeric and the table is
text (with green corners), you can use =vlookup(trim(a1),....).
To change an entire column of numbers to their text equivalents, I'd use a
helper column. If your numbers are in A1:A20, then in B1 use the formula
=trim(a1). Autofill that formula down to row 20, then copy/paste values and
delete the original data in column A.
The reverse is easier. If you've got text that you need to turn into
numbers, copy a blank cell, then highlight your data and edit > paste
special, select 'add' and click ok.
> I've received help here with a VLOOKUP question and it's worked great
> so far... Thanks Max!
> New question. In the current VLOOKUP that I'm doing, one of my source files
> has the little green corners on the cells that tell you that numbers are
> stored as text.
> In the second source file, the cells are formatted to show as numbers stored
> as text, but the green corners are not there.
> I'm getting a lot of "no matches found" and I discovered that if I go to the
> second source file, double click on the cell like I am going to edit it, hit
> enter and move on, the corner is there all of a sudden and the VLOOKUP
> formula works.
> Is there any way to make those show up without clicking on each and every
> one of them?
> Thanks again in advance to anyone that might be able to help!