ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Comparing information... (https://www.excelbanter.com/excel-discussion-misc-queries/138058-comparing-information.html)

EZ

Comparing information...
 
I have a worksheet with two columns of numbers, each of which represents a
student attending my school.

The numbers on the left column are the students from last year, the column
on the right is the students from this year.
I want a third column to be created with only the names of the new students
(i.e. those who did not attend the school both last year and this year, but
only this year) and a fourth column to be created with the same list as the
list of students who attended last yaer, but with all the students who left
to be cut out (i.e. have there be empty cells where their numbers would be.)

Is it possible?

Roger Govier

Comparing information...
 
Hi

In column C
=IF(COUNTIF(A:B,A1)=2,A1,"")
in column D
=IF(COUNTIF(B:B,A1),A1,"")
Copy down both columns from row 1 for the extent of your data.
--
Regards

Roger Govier


"EZ" wrote in message
...
I have a worksheet with two columns of numbers, each of which
represents a
student attending my school.

The numbers on the left column are the students from last year, the
column
on the right is the students from this year.
I want a third column to be created with only the names of the new
students
(i.e. those who did not attend the school both last year and this
year, but
only this year) and a fourth column to be created with the same list
as the
list of students who attended last yaer, but with all the students who
left
to be cut out (i.e. have there be empty cells where their numbers
would be.)

Is it possible?





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

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