Compare two lists


How to compare two lists in Microsoft Excel

One method to compare a lists is to use the match function. The Match function combined with ISNA and an IF staement provides a great solution when checking one list against another.

Match Function

The match function works by checking an item against a list, if the item is present in the lists the Match function returns the position the item apears in the list. If the item is not in the list the Match function returns N/A.

match function to compare lists

ISNA Function

The ISNA function returns True or False is the cell referenced has N/A in it.

ISNA function to compare lists

IF Function

The IF function has three elements in its basic form. A test, what to do if that test is true and what to do if that test is false.

IF function example to compare lists
IF function to compare lists

Combine Functions

All three functions can be combined into one formula rather than have three separate columns.

combine function to compare lists

Last_Week referenced in the formula above is a named range. If you want to compare two lists, the Match function combined with ISNA and IF is just one method but my preferred method. You can just use the Match function on its own and sort N/A cells, if that makes the formula easier to understand.

Courses

Search for courses here

Search for online courses here






Leave a Reply

You must be logged in to post a comment.

Testimonials


“The course was really thorough and Steve was very knowledgeable and explained things very well. I’ve not used Microsoft Project before but now I feel very confident that I’ll be able to use it for what I need to do in my job”.

Craig Forster
Estimator, John F Hunt Regeneration Ltd




“Steve delivered a number of Microsoft Office Training Sessions to a range of employees across Newcastle College. The service provided by Steve is second to none. I have no hesitations in recommending him to other employers.”

Christine Jackman
Learning Manager(North) - Winner of Training Programme of the Year NECCA




“Steve’s background in IT training clearly provided him with great organisational and managerial skills which he put to good use at Second Chance Enterprises. His ability to see the long term strategy as well as manage the day to day management is one of his biggest strengths.”

Chriss Graham
Project Coordinator at Daisy Group




“I studied with Steve when we completed our CiPD CTP together. During the course I found Steve to be very personable and also very professional.  Steve was first on my list of suppliers. Steve was very competitively priced and very accommodating.”

Simon Snowdon
European Training Manager at HP Enterprise Services