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 LOOKUP between two columns of diff. size

have a sheet w/ list of 80 different 6 digit codes. have a second sheet w/
over 13,000 8 digit codes. Trying to figure out how to lookup in the second
list to see if any of the 13,000 first 6 digits of the 8 digit code match any
of the list of 80. Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default LOOKUP between two columns of diff. size

Do something like this in the 13,000 code sheet::
=vlookup(left(a1,6),sheet1!A:A,1,false)
and copy down.

Adjust your ranges to suit.

Regards,
Fred.

"CapFSU" wrote in message
...
have a sheet w/ list of 80 different 6 digit codes. have a second sheet
w/
over 13,000 8 digit codes. Trying to figure out how to lookup in the
second
list to see if any of the 13,000 first 6 digits of the 8 digit code match
any
of the list of 80. Any ideas?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 793
Default LOOKUP between two columns of diff. size

Assuming List 1 of 80 in Col A of Sheet1 and List 2 in Col A of Sheet2...
Enter this in B1 of Sheet2
=IF(ISNA(VLOOKUP(A1,Sheet1!A:A,1,FALSE)),"Not in List 1","Present in List 1")
and copy down till end of your data

In B1 of Sheet1 you can have
=IF(ISNA(VLOOKUP(A1,Sheet2!A:A,1,FALSE)),"Not in List 2","Present in List 2")

for the reverse

"CapFSU" wrote:

have a sheet w/ list of 80 different 6 digit codes. have a second sheet w/
over 13,000 8 digit codes. Trying to figure out how to lookup in the second
list to see if any of the 13,000 first 6 digits of the 8 digit code match any
of the list of 80. Any ideas?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default LOOKUP between two columns of diff. size

Try this:

=COUNTIF(Sheet1!A:A,LEFT(A1,6))


"CapFSU" wrote:

have a sheet w/ list of 80 different 6 digit codes. have a second sheet w/
over 13,000 8 digit codes. Trying to figure out how to lookup in the second
list to see if any of the 13,000 first 6 digits of the 8 digit code match any
of the list of 80. Any ideas?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default LOOKUP between two columns of diff. size

This worked well and as a bonus, let me know that I had some duplicates on
the first sheet. This turned out to be something important to know. Thanks
much teethless.

"Teethless mama" wrote:

Try this:

=COUNTIF(Sheet1!A:A,LEFT(A1,6))


"CapFSU" wrote:

have a sheet w/ list of 80 different 6 digit codes. have a second sheet w/
over 13,000 8 digit codes. Trying to figure out how to lookup in the second
list to see if any of the 13,000 first 6 digits of the 8 digit code match any
of the list of 80. Any ideas?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default LOOKUP between two columns of diff. size

You're Welcome!


"CapFSU" wrote:

This worked well and as a bonus, let me know that I had some duplicates on
the first sheet. This turned out to be something important to know. Thanks
much teethless.

"Teethless mama" wrote:

Try this:

=COUNTIF(Sheet1!A:A,LEFT(A1,6))


"CapFSU" wrote:

have a sheet w/ list of 80 different 6 digit codes. have a second sheet w/
over 13,000 8 digit codes. Trying to figure out how to lookup in the second
list to see if any of the 13,000 first 6 digits of the 8 digit code match any
of the list of 80. Any ideas?

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
Specify columns to add for months MTD Diff Joe Excel Worksheet Functions 3 February 11th 09 10:57 AM
Specify MTD Diff by month's columns Joe Excel Worksheet Functions 0 February 11th 09 06:27 AM
Help Making Diff CHarts have same Size and Loc on page Will Excel Discussion (Misc queries) 3 December 14th 06 03:40 PM
lookup list return diff?? Ronald Excel Discussion (Misc queries) 1 November 6th 06 12:29 AM
Lookup value in cell and sum in two diff worksheets? AZExcelNewbie Excel Discussion (Misc queries) 5 October 27th 05 01:20 AM


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