LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default String equivalence

Dear experts,
I have a very frustrating problem

I download student numbers and associated data from two separate web-based
databases. One is a a student database(SourceA) and the other is
Blackboard(SourceB), more for student/staff communication.

The same student number from these two separate sources are not seen by
excel as being equivalent. Now I have searched on the web and have been down
the route of identifying, substituting char160 for char32 and removing the
first 0.

i.e.

SourceA: "0616025915 "
SourceB: "616025915"

=TRIM(SUBSTITUTE(H10,CHAR(160),CHAR(32)))
=MID(I10,2,LEN(I10))

Char160 sits on the end of the number from SourceA.
If I apply the first formula to SourceA and then manually delete the zero,
it works, I can then use VLOOKUPS successfully.
If I apply the first and the second formula to SourceA then VLOOKUPS do not
work.

My aim is not to do anything entry by entry but come up with a formula which
renders one format equivalent to the other so the two sets of data can be
merged.

Could anyone help one exasperated little black duck!!!
Martina
 
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
Page Setup Margin Value Equivalence in cm AJ Excel Discussion (Misc queries) 1 May 14th 07 05:33 PM
VBA equivalence tp to DOS "echo off" brian Excel Discussion (Misc queries) 3 September 15th 06 02:29 AM
Equivalence of two sets of data vsoler Excel Discussion (Misc queries) 4 April 18th 06 06:08 PM
Splitting a text string into string and number mcambrose Excel Discussion (Misc queries) 4 February 21st 06 03:47 PM
to search for a string and affect data if it finds the string? Shwaman Excel Worksheet Functions 1 January 11th 06 12:56 AM


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