ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Find and match cells (https://www.excelbanter.com/excel-discussion-misc-queries/152521-find-match-cells.html)

Martin

Find and match cells
 
Hello,

I have a list of values in sheet 1, from cell A1 and downwards. The range
changes all the time, eg. A1-A10, A1-1000 etc.

I want to set up a macro that matches all the values in this column with the
A column in sheet 2.

If some of the cells matches I want the macro to copy the value in the B
column of the same row as the matching cell in sheet 1 and paste it into
sheet 2 column B, next to the cell just found.

Any sugestions, please?

Martin

Toppers

Find and match cells
 
Must it be a macro?

Use VLOOKUP to get the data.

"Martin" wrote:

Hello,

I have a list of values in sheet 1, from cell A1 and downwards. The range
changes all the time, eg. A1-A10, A1-1000 etc.

I want to set up a macro that matches all the values in this column with the
A column in sheet 2.

If some of the cells matches I want the macro to copy the value in the B
column of the same row as the matching cell in sheet 1 and paste it into
sheet 2 column B, next to the cell just found.

Any sugestions, please?

Martin



All times are GMT +1. The time now is 11:33 PM.

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