Skip to content

Replace all occurrence of VLOOKUP and HLOOKUP with new XLOOKUP function in MS Excel

License

Notifications You must be signed in to change notification settings

sebinity/excel-vhlookup-replace-xlookup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VBA function to replace all occurrence of "VLOOKUP" and "HLOOKUP" with either new "XLOOKUP" formula or "INDEX/MATCH" combo in Excel.

Handles absolute/relative/named ranges, references on other sheets, both match types and even incorporates wrapped "IFERROR" inside XLOOKUP.

lookup_replace.bas contains all necessary functions

test.xlsb contains examples and unit test

XLOOKUP replacement script will intentionally ignore V/HLOOKUPs with 4th argument = TRUE if the indexing array is not sorted, that is to ensure that behavior stays the same

About

Replace all occurrence of VLOOKUP and HLOOKUP with new XLOOKUP function in MS Excel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • VBA 100.0%