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 vlookup and #n/a due to formatting

We are moving to a new accounting system. I'm attempting to test the quality
of the uploaded data making sure the new account codes have been mapped
correctly.

We have a table mapping the old chart of account segments to the new. In
the old system, all segments are built into a single, 12 digit expression. I
use left()
function to isolate the segments in the old chart of accounts. This is the
first section of vlookup. The mapping table is the second section. This
always gives me #n/a as the result.

If I highlight the mapping table and press F2-enter on each cell, the #n/a
goes away. However, when I compare the result to the data dump from the new
system, I continue to some sort of formatting issue. This issue goes away if
I do a copy paste-value of the column derived using the left() function, but
only after going through the F2-enter routine on each of the hundreds of
cells.

There has to be a better approach. I've tried changing everything to text,
to general, whatever. Nothing works except to stress my carpal tunnel
syndrome.

Example:

Old Parsed New
1000-000-000 1000 10100

What had started with 1000 in my old system needs to start with 10100 in my
new. The mapping table ties 1000 to 10100. The left() function returns 1000
for any records starting with 1000. The Vlookup function is supposed to take
the Parsed number resulting from use of the left() function and return the
New number. But for #n/a, it works as advertised.

Any ideas? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 857
Default vlookup and #n/a due to formatting

Hi,

The LEFT function converts the result to TEXT you could use

=--LEFT(A1,4)

instead.


--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"rhoneyman" wrote:

We are moving to a new accounting system. I'm attempting to test the quality
of the uploaded data making sure the new account codes have been mapped
correctly.

We have a table mapping the old chart of account segments to the new. In
the old system, all segments are built into a single, 12 digit expression. I
use left()
function to isolate the segments in the old chart of accounts. This is the
first section of vlookup. The mapping table is the second section. This
always gives me #n/a as the result.

If I highlight the mapping table and press F2-enter on each cell, the #n/a
goes away. However, when I compare the result to the data dump from the new
system, I continue to some sort of formatting issue. This issue goes away if
I do a copy paste-value of the column derived using the left() function, but
only after going through the F2-enter routine on each of the hundreds of
cells.

There has to be a better approach. I've tried changing everything to text,
to general, whatever. Nothing works except to stress my carpal tunnel
syndrome.

Example:

Old Parsed New
1000-000-000 1000 10100

What had started with 1000 in my old system needs to start with 10100 in my
new. The mapping table ties 1000 to 10100. The left() function returns 1000
for any records starting with 1000. The Vlookup function is supposed to take
the Parsed number resulting from use of the left() function and return the
New number. But for #n/a, it works as advertised.

Any ideas? Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup and #n/a due to formatting

LEFT returns a *TEXT* string even if it's numbers.

You need to coerce these text numbers back to numeric numbers.

Try one of these. They all do the same thing:

=--LEFT(A1,12)
=LEFT(A1,12)+0
=LEFT(A1,12)*1
=VALUE(LEFT(A1,5))

--
Biff
Microsoft Excel MVP


"rhoneyman" wrote in message
...
We are moving to a new accounting system. I'm attempting to test the
quality
of the uploaded data making sure the new account codes have been mapped
correctly.

We have a table mapping the old chart of account segments to the new. In
the old system, all segments are built into a single, 12 digit expression.
I
use left()
function to isolate the segments in the old chart of accounts. This is
the
first section of vlookup. The mapping table is the second section. This
always gives me #n/a as the result.

If I highlight the mapping table and press F2-enter on each cell, the #n/a
goes away. However, when I compare the result to the data dump from the
new
system, I continue to some sort of formatting issue. This issue goes away
if
I do a copy paste-value of the column derived using the left() function,
but
only after going through the F2-enter routine on each of the hundreds of
cells.

There has to be a better approach. I've tried changing everything to
text,
to general, whatever. Nothing works except to stress my carpal tunnel
syndrome.

Example:

Old Parsed New
1000-000-000 1000 10100

What had started with 1000 in my old system needs to start with 10100 in
my
new. The mapping table ties 1000 to 10100. The left() function returns
1000
for any records starting with 1000. The Vlookup function is supposed to
take
the Parsed number resulting from use of the left() function and return the
New number. But for #n/a, it works as advertised.

Any ideas? 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
Vlookup and formatting Prixton Excel Discussion (Misc queries) 2 April 25th 08 06:25 PM
vlookup copy formatting justducky Excel Worksheet Functions 3 March 11th 07 06:25 AM
VLookup & Formatting Janet Excel Discussion (Misc queries) 5 January 15th 07 03:49 PM
Need Help w/ VLookup Formatting Mike Lindsay Excel Worksheet Functions 10 May 5th 06 02:03 AM
Vlookup and Formatting peter_rivera Excel Discussion (Misc queries) 2 July 11th 05 07:24 PM


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