Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Excel – VLookup – Compare Two Columns/Sheets

Posted on January 6, 2015August 15, 2019 By David Kittell

Sometimes we need to compare lists in Excel, this function will assist in getting a clean comparison.

NOTE: It is best when comparing that all columns are same format (ie. Text, Number, etc.)

=IF(ISERROR(VLOOKUP(A1,Sheet1!$A$1:$A$3,1,FALSE)),"MISSING FROM OTHER SHEET","")
' OR
=IF(ISERROR(VLOOKUP(A1,Sheet1!$A:A,1,FALSE)),"No","Yes")

Going one step further, if you find a match and need a value from the other worksheet you can do this.
In this example the 2 grabs the value from Worksheet2!B

=IF(ISERROR(MATCH(B3,Worksheet2!A:A, 0)), "No Match", VLOOKUP(B3,Worksheet2!A:B,2,FALSE))
Originally Posted on January 6, 2015
Last Updated on August 15, 2019
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code Excel Microsoft Office

Post navigation

Previous post
Next post

Related Posts

Ektron Find Replace In Library

Posted on October 23, 2013October 26, 2015

This script will search and replace specific library links SET XACT_ABORT ON DECLARE @currurl NVARCHAR(500) DECLARE @newurl NVARCHAR(500) DECLARE @search NVARCHAR(500) DECLARE @replace VARCHAR(500) SET @search = ” –string to find SET @replace = ” –replacement string DECLARE @pos INT DECLARE @id BIGINT BEGIN TRAN DECLARE curs CURSOR LOCAL FAST_FORWARD…

Read More

UNIX – Pi-Hole Project – Statistics

Posted on April 21, 2017June 10, 2019

If you are using Pi-Hole you may find this script useful Currently this is designed to run on the server that is running Pi-Hole but as I have more than one I want to monitor I will soon have an update for additional. First make sure you update your /var/www/html/admin/scripts/pi-hole/php/data.php…

Read More

Data Metrics

Posted on September 9, 2013October 26, 2015

In a plan to make metrics easier to record and show I have built my own database tables to record custom metrics. Metrics – Year View C# Metrics Admin Page C# Table Creation SET NOCOUNT ON DECLARE @month INT ,@year INT ,@start_date DATETIME ,@end_date DATETIME SET @month = ( SELECT…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes