Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 102
Default Formula to compare two columns

Hi

I have two columns one has names automated from another worksheet and one
has other names entered manually (the two columns show two attendences)
example
Column A = town Column B = Country
jack black Sue Smith
snow white Jack Black

using A1 as an example I want a formula to check if the name in A1 is in
B1:b2000 and if it is type yes and if not no

Any help as always appreciated
--
Thanks

Lise
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 703
Default Formula to compare two columns

Hi Lise

Try this formula in C1 and copy it down as required:

=IF(ISERROR(MATCH(A1,$B$1:$B$1000;0)),"No","Yes")

Regards,
Per

On 31 Jul., 04:55, Lise wrote:
Hi

I have two columns one has names automated from another worksheet and one
has other names entered manually (the two columns show two attendences)
example
Column A = town *Column B = Country
jack black * * * * * * * * * * * * * * * Sue Smith
snow white * * * * * * * * * * * * * * Jack Black

using A1 as an example I want a formula to check if the name in A1 is in
B1:b2000 and if it is type yes and if not no

Any help as always appreciated
--
Thanks

Lise


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 102
Default Formula to compare two columns

Thanks Per unfortunately this brings back yes to all rather than yes or no??
any other thoughts
--
Thanks

Lise


"Per Jessen" wrote:

Hi Lise

Try this formula in C1 and copy it down as required:

=IF(ISERROR(MATCH(A1,$B$1:$B$1000;0)),"No","Yes")

Regards,
Per

On 31 Jul., 04:55, Lise wrote:
Hi

I have two columns one has names automated from another worksheet and one
has other names entered manually (the two columns show two attendences)
example
Column A = town Column B = Country
jack black Sue Smith
snow white Jack Black

using A1 as an example I want a formula to check if the name in A1 is in
B1:b2000 and if it is type yes and if not no

Any help as always appreciated
--
Thanks

Lise



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Formula to compare two columns

Make sure that calculation is set to automatic
(Tools|options|calculation tab in xl2003 menus)

If that doesn't help, share the formula you used--or try Per's suggestion one
more time.

(and remember to use either commas or semicolons as your operation
separator--Per had a typo in his.)

Lise wrote:

Thanks Per unfortunately this brings back yes to all rather than yes or no??
any other thoughts
--
Thanks

Lise

"Per Jessen" wrote:

Hi Lise

Try this formula in C1 and copy it down as required:

=IF(ISERROR(MATCH(A1,$B$1:$B$1000;0)),"No","Yes")

Regards,
Per

On 31 Jul., 04:55, Lise wrote:
Hi

I have two columns one has names automated from another worksheet and one
has other names entered manually (the two columns show two attendences)
example
Column A = town Column B = Country
jack black Sue Smith
snow white Jack Black

using A1 as an example I want a formula to check if the name in A1 is in
B1:b2000 and if it is type yes and if not no

Any help as always appreciated
--
Thanks

Lise




--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 694
Default Formula to compare two columns

Hi Dave
I like your formula , taken from your other post
=isnumber(match(A1,B1:B1000,0))
it works well. Any reason not to use it.
Regards
John

"Dave Peterson" wrote in message
...
Make sure that calculation is set to automatic
(Tools|options|calculation tab in xl2003 menus)

If that doesn't help, share the formula you used--or try Per's suggestion one
more time.

(and remember to use either commas or semicolons as your operation
separator--Per had a typo in his.)

Lise wrote:

Thanks Per unfortunately this brings back yes to all rather than yes or no??
any other thoughts
--
Thanks

Lise

"Per Jessen" wrote:

Hi Lise

Try this formula in C1 and copy it down as required:

=IF(ISERROR(MATCH(A1,$B$1:$B$1000;0)),"No","Yes")

Regards,
Per

On 31 Jul., 04:55, Lise wrote:
Hi

I have two columns one has names automated from another worksheet and one
has other names entered manually (the two columns show two attendences)
example
Column A = town Column B = Country
jack black Sue Smith
snow white Jack Black

using A1 as an example I want a formula to check if the name in A1 is in
B1:b2000 and if it is type yes and if not no

Any help as always appreciated
--
Thanks

Lise



--

Dave Peterson




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Formula to compare two columns

Nope.

If you're ok seeing true/false and not Yes/no, then you're fine.

But Per's (corrected) formula should work, too.

John wrote:

Hi Dave
I like your formula , taken from your other post
=isnumber(match(A1,B1:B1000,0))
it works well. Any reason not to use it.
Regards
John

"Dave Peterson" wrote in message
...
Make sure that calculation is set to automatic
(Tools|options|calculation tab in xl2003 menus)

If that doesn't help, share the formula you used--or try Per's suggestion one
more time.

(and remember to use either commas or semicolons as your operation
separator--Per had a typo in his.)

Lise wrote:

Thanks Per unfortunately this brings back yes to all rather than yes or no??
any other thoughts
--
Thanks

Lise

"Per Jessen" wrote:

Hi Lise

Try this formula in C1 and copy it down as required:

=IF(ISERROR(MATCH(A1,$B$1:$B$1000;0)),"No","Yes")

Regards,
Per

On 31 Jul., 04:55, Lise wrote:
Hi

I have two columns one has names automated from another worksheet and one
has other names entered manually (the two columns show two attendences)
example
Column A = town Column B = Country
jack black Sue Smith
snow white Jack Black

using A1 as an example I want a formula to check if the name in A1 is in
B1:b2000 and if it is type yes and if not no

Any help as always appreciated
--
Thanks

Lise



--

Dave Peterson


--

Dave Peterson
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
Formula to compare columns EDF2017 Excel Discussion (Misc queries) 3 July 21st 08 03:18 PM
Formula to compare numbers in 3 columns 3/23/08 Marie FP[_2_] Excel Discussion (Misc queries) 7 March 25th 08 04:13 AM
Formula to compare numbers in 3 columns Marie FP[_2_] Excel Discussion (Misc queries) 1 March 24th 08 01:50 AM
Excel Formula or tool to compare two columns of data RBS Excel Worksheet Functions 3 April 14th 06 06:54 PM
Formula needed to compare columns VP New Users to Excel 2 September 8th 05 09:00 AM


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