ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   compare 2 columns of numbers and place the matched numbers in a 3r (https://www.excelbanter.com/excel-discussion-misc-queries/247831-compare-2-columns-numbers-place-matched-numbers-3r.html)

Clive[_2_]

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

T. Valko

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




Jacob Skaria

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


Clive[_2_]

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


Clive[_2_]

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


Jacob Skaria

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



All times are GMT +1. The time now is 08:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com