Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default finding matching cells (Excel 2007)

COL A has 1,313 cells whose contents look like this:

107211009-1
114650003-4
122413021-6

COL B has 987,601 cells whose contents look like this:

008100465-2 01 58.86
008100465-2 02 58.86
008100493-7 01 16.12

How do I find the cell(s) in COL B whose eleven left-most characters
match the contents in the cells in COL A?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default finding matching cells (Excel 2007)

I suppose this would do it:
=IF(A1=LEFT(B1,11),"Match","")

Do you need a macro?

Ryan---
--
RyGuy


"gcotterl" wrote:

COL A has 1,313 cells whose contents look like this:

107211009-1
114650003-4
122413021-6

COL B has 987,601 cells whose contents look like this:

008100465-2 01 58.86
008100465-2 02 58.86
008100493-7 01 16.12

How do I find the cell(s) in COL B whose eleven left-most characters
match the contents in the cells in COL A?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 896
Default finding matching cells (Excel 2007)

another way:

=IF(ISERROR(MATCH(LEFT(B1,11),$A$1:$A$1313,)),""," match")

then use autofilter if need be

On 6 Mar, 07:02, gcotterl wrote:
COL A has 1,313 cells whose contents look like this:

107211009-1
114650003-4
122413021-6

COL B has 987,601 cells whose contents look like this:

008100465-2 *01 * * * * 58.86
008100465-2 *02 * * * * 58.86
008100493-7 *01 * * * * 16.12

How do I find the cell(s) in COL B whose eleven left-most characters
match the contents in the cells in COL A?


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
Finding matching cells GARY Excel Discussion (Misc queries) 1 March 6th 09 07:40 AM
Finding matching cells GARY Excel Discussion (Misc queries) 1 March 6th 09 06:28 AM
Finding cells with matching data gary Excel Programming 9 May 22nd 08 05:53 AM
Matching cells (Excel 2007) gary Excel Programming 3 May 21st 08 09:44 AM
finding matching cells in worksheets Marcin Wolku Excel Worksheet Functions 1 August 25th 05 04:46 PM


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