Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
matthews_jd
 
Posts: n/a
Default Compare Two Data Files

I'm having dfficulty comparing imported data from two files. One was
imported from a text file and is not imported in number which can be fixed.
The more difficult issue is that there is a blank space in some of these at
the front that causes errors using vlookup or index. Are there any other
functions that can ignore those differences?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

TRIM removes leading, trailing or extra spaces so you can just wrap the
cells in TRIM like

=VLOOKUP(TRIM(A1),TRIM(B2:C200),2,0)

entered with ctrl + shift & enter

I didn't know if the spaces were in lookup value or table thus 2 TRIM, I
guess it's probably the table

Regards,

Peo Sjoblom


"matthews_jd" wrote in message
...
I'm having dfficulty comparing imported data from two files. One was
imported from a text file and is not imported in number which can be

fixed.
The more difficult issue is that there is a blank space in some of these

at
the front that causes errors using vlookup or index. Are there any other
functions that can ignore those differences?



  #3   Report Post  
Alok
 
Posts: n/a
Default

Can you use trim function to remove leading and trailing blank?

If you want to use it on say a column of text values lying in A1 to A10 then
in B1 you will enter the formula =trim(A1) and copy the formula down through
to B10.
Then highlight B1 to B10 and do Edit/Copy and then place your cursor on A1
and do Edit/Pastespecial/Values. At this stage the trimmed values are in your
original range A1:A10. Now you can delete the range B1 to B10.

Alok

"matthews_jd" wrote:

I'm having dfficulty comparing imported data from two files. One was
imported from a text file and is not imported in number which can be fixed.
The more difficult issue is that there is a blank space in some of these at
the front that causes errors using vlookup or index. Are there any other
functions that can ignore those differences?

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
compare data in the same column on separate worksheets john mcmichael Excel Worksheet Functions 1 October 7th 05 01:44 AM
compare a list of data and have it listed from least to greatest in another column dominix New Users to Excel 2 September 23rd 05 12:40 PM
Linked files - Caching of data scott.auer Excel Discussion (Misc queries) 1 June 2nd 05 01:52 PM
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM
how do i link data from multiple standardized excel files George Excel Discussion (Misc queries) 2 April 14th 05 05:12 PM


All times are GMT +1. The time now is 06:47 AM.

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"