Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default compare 2 columns of numbers and place the matched numbers in a 3r

Hi.
I am a newcomer and I need your help.
I need a formula that can compare a column of numbers (Column A) "LabMaster"
with a 2nd column of numbers (Column C) "ScanFiles" and copy each matched
number to Column B, adjacent to its match in Column A "Labmaster.
(Possibly 4,000 numbers in "Labmaster".

Thanks
Clive
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default compare 2 columns of numbers and place the matched numbers in a 3r

Maybe this...

=IF(COUNTIF(C:C,A2),A2,"")

Copy down as needed

--
Biff
Microsoft Excel MVP


"Clive" wrote in message
...
Hi.
I am a newcomer and I need your help.
I need a formula that can compare a column of numbers (Column A)
"LabMaster"
with a 2nd column of numbers (Column C) "ScanFiles" and copy each matched
number to Column B, adjacent to its match in Column A "Labmaster.
(Possibly 4,000 numbers in "Labmaster".

Thanks
Clive



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default compare 2 columns of numbers and place the matched numbers in a 3r

In cell B2

=IF(COUNTIF(C:C,A2),A2,"")

If this post helps click Yes
---------------
Jacob Skaria


"Clive" wrote:

Hi.
I am a newcomer and I need your help.
I need a formula that can compare a column of numbers (Column A) "LabMaster"
with a 2nd column of numbers (Column C) "ScanFiles" and copy each matched
number to Column B, adjacent to its match in Column A "Labmaster.
(Possibly 4,000 numbers in "Labmaster".

Thanks
Clive

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default compare 2 columns of numbers and place the matched numbers in

Jacob you are truly fantastic!!!
Thank you so very much!
I am a very happy man!

Clive

"Jacob Skaria" wrote:

In cell B2

=IF(COUNTIF(C:C,A2),A2,"")

If this post helps click Yes
---------------
Jacob Skaria


"Clive" wrote:

Hi.
I am a newcomer and I need your help.
I need a formula that can compare a column of numbers (Column A) "LabMaster"
with a 2nd column of numbers (Column C) "ScanFiles" and copy each matched
number to Column B, adjacent to its match in Column A "Labmaster.
(Possibly 4,000 numbers in "Labmaster".

Thanks
Clive

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default compare 2 columns of numbers and place the matched numbers in

Is it possible to add to this formula?
At the moment, when executed, it leaves empty unmatched cells in column B -
a large number.
Can the formula be extended to: if cell in column B is empty, delete row?

Thanks again
Clive



"Jacob Skaria" wrote:

In cell B2

=IF(COUNTIF(C:C,A2),A2,"")

If this post helps click Yes
---------------
Jacob Skaria


"Clive" wrote:

Hi.
I am a newcomer and I need your help.
I need a formula that can compare a column of numbers (Column A) "LabMaster"
with a 2nd column of numbers (Column C) "ScanFiles" and copy each matched
number to Column B, adjacent to its match in Column A "Labmaster.
(Possibly 4,000 numbers in "Labmaster".

Thanks
Clive



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default compare 2 columns of numbers and place the matched numbers in

Sorry, you cannot do any deletions using formulas. You will need to use
amacro to do this...

If this post helps click Yes
---------------
Jacob Skaria


"Clive" wrote:

Is it possible to add to this formula?
At the moment, when executed, it leaves empty unmatched cells in column B -
a large number.
Can the formula be extended to: if cell in column B is empty, delete row?

Thanks again
Clive



"Jacob Skaria" wrote:

In cell B2

=IF(COUNTIF(C:C,A2),A2,"")

If this post helps click Yes
---------------
Jacob Skaria


"Clive" wrote:

Hi.
I am a newcomer and I need your help.
I need a formula that can compare a column of numbers (Column A) "LabMaster"
with a 2nd column of numbers (Column C) "ScanFiles" and copy each matched
number to Column B, adjacent to its match in Column A "Labmaster.
(Possibly 4,000 numbers in "Labmaster".

Thanks
Clive

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
Compare columns of numbers Dave T Excel Worksheet Functions 2 May 23rd 09 11:06 AM
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
How do I compare tow columns of numbers? ken0860 Excel Discussion (Misc queries) 1 June 13th 06 09:18 PM
Compare text/numbers in different columns. Mike Excel Discussion (Misc queries) 1 February 7th 06 07:18 PM


All times are GMT +1. The time now is 03:15 AM.

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"