Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
~Q
 
Posts: n/a
Default comparing columns

how do i compare a Cell A1 in Worksheet 1 to the whole Column B in Worksheet
2 to see if part of any of the contents in Cell A are anywhere in the list in
Column B.

i.e. Cell A1 for Worksheet 1 = hlj104 and the list of values in worksheet 2
Column B read:
B1: ID=swk149
B2: ID=ldj322
B3: ID=ism572
B4: ID=hlj104
B5: ID=wkl294

i need it to pick up and locate hlj104, now i've tried the
=OR(EXACT(A1,'Worksheet2'!$B$1:$B:$5)) but its not exact cause the ID= is in
front of the userid on worksheet2. so how can i find that on id,in a couple
thousand rows on the other worksheet. thanks in advance...
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kleev
 
Posts: n/a
Default comparing columns

If you just want to find it, this should work (given the data that you
provided)
=VLOOKUP("ID="&B13,Sheet3!B13:B17,1,FALSE)
with b13 containing the string you were looking for. Note, this just finds
the string so you know it exists (unless it returns #N/A)

"~Q" wrote:

how do i compare a Cell A1 in Worksheet 1 to the whole Column B in Worksheet
2 to see if part of any of the contents in Cell A are anywhere in the list in
Column B.

i.e. Cell A1 for Worksheet 1 = hlj104 and the list of values in worksheet 2
Column B read:
B1: ID=swk149
B2: ID=ldj322
B3: ID=ism572
B4: ID=hlj104
B5: ID=wkl294

i need it to pick up and locate hlj104, now i've tried the
=OR(EXACT(A1,'Worksheet2'!$B$1:$B:$5)) but its not exact cause the ID= is in
front of the userid on worksheet2. so how can i find that on id,in a couple
thousand rows on the other worksheet. thanks in advance...

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
comparing columns dfeld71 Excel Discussion (Misc queries) 2 July 14th 05 11:00 AM
Hiding columns and custom views problem Bettergains Excel Discussion (Misc queries) 2 April 12th 05 11:48 PM
Removing Near-Duplicate Rows, Leaving Those w/Most Data in Specific Columns foofoo Excel Discussion (Misc queries) 1 April 2nd 05 12:02 AM
Need help with lookup and comparing values Steve Excel Worksheet Functions 7 January 30th 05 02:38 PM
Counting the Contents of Two Columns Molochi Excel Discussion (Misc queries) 6 December 22nd 04 08:13 PM


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