View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tom Ogilvy
 
Posts: n/a
Default How do I collate (match-up) one column's data with another?

Insert a column C. In C1 put the formula

=countif(A:A,B1)=0

then drag fill down the column.

this will put False in the rows where there is a match

Now select all the data, in A to G and sort. Primary key on column C,
secondary key on column B. (sort ascending for column C, column B is your
choice)

Now delete column C.

--
Regards,
Tom Ogilvy


"Mark" wrote:

EG: Column A has 100 cells of numeric codes, column B has 200 cells of codes,
each code in column B having associated data in columns C, D, E and F.

How do i collate the data so that the when a code in column A matches that
in column B, the data row from columns B,C,D,E and F are moved to be in line
with the cell in column A?

Thus leaving the 1st 100 rows of data ordered by column A, and subsequent
ancillary data in the second 100 rows.