#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Match?

This seems that it should be simple, but i can't figure it out. any
help is appreciated.

Column A contains last name, first

Column B contains last name

I want Column C to indicate (maybe by inserting an X) any last names
in Col B that match a last name in col A

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Match?

You could do something like this in C2:

=IF(B2="","",IF(COUNTIF(A$2:A$25,B2&"*")0,"X","") )

then copy this down to cover the names that you have in column B.

Note that because this uses wildcards, you will get matches with
entries like "J" in column B.

Hope this helps.

Pete


On Jan 13, 4:05*pm, wrote:
This seems that it should be simple, but i can't figure it out. any
help is appreciated.

Column A contains last name, first

Column B contains last name

I want Column C to indicate (maybe by inserting an X) any last names
in Col B that match a last name in col A


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Match?

On Jan 13, 11:40*am, Pete_UK wrote:
You could do something like this in C2:

=IF(B2="","",IF(COUNTIF(A$2:A$25,B2&"*")0,"X","") )

then copy this down to cover the names that you have in column B.

Note that because this uses wildcards, you will get matches with
entries like "J" in column B.

Hope this helps.

Pete

On Jan 13, 4:05*pm, wrote:



This seems that it should be simple, but i can't figure it out. any
help is appreciated.


Column A contains last name, first


Column B contains last name


I want Column C to indicate (maybe by inserting an X) any last names
in Col B that match a last name in col A- Hide quoted text -


- Show quoted text -


Thanks Pete. Using this, I only appear to be matching up with first
names. i.e. last name column = James, is being coded as a match
because there are some first names listed as James. this is fine,
however it's not locating any of the last names.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Match?

You said that column A contains Last_name, First_name - are you now saying
that it contains the data as First_name, Last_name ? That is what you imply
in saying that it is only matching with first names. Try this variation of
the formula:

=IF(B2="","",IF(COUNTIF(A$2:A$25,"*"&B2)0,"X","") )

Note that I've moved the wildcard character.

Hope this helps.

Pete

wrote in message
...


Thanks Pete. Using this, I only appear to be matching up with first
names. i.e. last name column = James, is being coded as a match
because there are some first names listed as James. this is fine,
however it's not locating any of the last names.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Match?

On Jan 13, 12:45*pm, "Pete_UK" wrote:
You said that column A contains Last_name, First_name - are you now saying
that it contains the data as First_name, Last_name ? That is what you imply
in saying that it is only matching with first names. Try this variation of
the formula:

=IF(B2="","",IF(COUNTIF(A$2:A$25,"*"&B2)0,"X","") )

Note that I've moved the wildcard character.

Hope this helps.

Pete

wrote in message

...

Thanks Pete. Using this, I only appear to be matching up with first
names. i.e. last name column = James, is being coded as a match
because there are some first names listed as James. this is fine,
however it's not locating any of the last names.


Sorry Pete. This seems to work. I will test to make sure. Thanks for
your help - I really appreciate it.

Mark


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Match?

You're welcome, Mark - thanks for feeding back.

Pete

On Jan 13, 5:57*pm, wrote:

Sorry Pete. This seems to work. I will test to make sure. Thanks for
your help - I really appreciate it.

Mark

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
Need to match 2 columns, if a match found add info from 2nd column Stratton Excel Worksheet Functions 1 October 8th 08 02:55 PM
index(match) Wind Uplift Calculations (match four conditions) JMeier Excel Worksheet Functions 8 August 1st 08 01:45 AM
MATCH Multiple Criteria & Return Previous / Penultimate Match Sam via OfficeKB.com Excel Worksheet Functions 27 October 6th 07 01:39 AM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
Lookup? Match? pulling rows from one spreadsheet to match a text f cjax Excel Worksheet Functions 3 July 21st 06 02:51 PM


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