Exercise to Compare Two Lists in Excel

Reading time: 3 minutes

Comparing two lists is one of the most frequent questions on Excel forums. Which products are in stock but not ordered? Which orders are not in stock? VLOOKUP answers by searching each item in the other list: when it is missing, it returns #N/A. IFERROR then turns this error into a clear message.

The following exercise shows you how to compare a stock list and an order list in both directions.

What you will practice in this exercise

You work on a stock list and an order list. You answer 6 questions, one formula per question:

  • Search each stock item in the orders (VLOOKUP with $)
  • Copy the formula down (the #N/A shows a missing order)
  • Search each order in the stock (VLOOKUP in the other direction)
  • Copy the formula down (the #N/A shows a missing item)
  • Write “Not ordered” instead of #N/A (IFERROR)
  • Write “Not in stock” instead of #N/A (IFERROR)

Practice with exercises

Compare 2 lists — Inventory
🔒 Members only

Compare 2 lists — Inventory
Cross stock and orders, and replace #N/A with a clear message using IFERROR.

Subscribe →

Related articles

Excel exercises: practice online with instant correction

All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.

Leave a Reply

Your email address will not be published. Required fields are marked *

Exercise to Compare Two Lists in Excel

Reading time: 3 minutes

Comparing two lists is one of the most frequent questions on Excel forums. Which products are in stock but not ordered? Which orders are not in stock? VLOOKUP answers by searching each item in the other list: when it is missing, it returns #N/A. IFERROR then turns this error into a clear message.

The following exercise shows you how to compare a stock list and an order list in both directions.

What you will practice in this exercise

You work on a stock list and an order list. You answer 6 questions, one formula per question:

  • Search each stock item in the orders (VLOOKUP with $)
  • Copy the formula down (the #N/A shows a missing order)
  • Search each order in the stock (VLOOKUP in the other direction)
  • Copy the formula down (the #N/A shows a missing item)
  • Write “Not ordered” instead of #N/A (IFERROR)
  • Write “Not in stock” instead of #N/A (IFERROR)

Practice with exercises

Compare 2 lists — Inventory
🔒 Members only

Compare 2 lists — Inventory
Cross stock and orders, and replace #N/A with a clear message using IFERROR.

Subscribe →

Related articles

Excel exercises: practice online with instant correction

All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.

Leave a Reply

Your email address will not be published. Required fields are marked *