LOOKUP instead of VLOOKUP and HLOOKUP
Web Resources
Web Resources
Web Resources
Web Resources
Web Resources
Web Resources
Web Resources
Web Resources
Web Resources
Web Resources
Web Resources
Web Resources
Web Resources
all posts
-
Conferences
- Terrapinn Corporate Finance World, Sydney – Project finance modelling
- Excellence in oil and gas – Sydney 2009
- Corality’s Liam Bastick discusses presenting at the CPA Management Conference and CPA Congress around Australia
- Summer Drinks in Sydney - You're Invited!
- CPA Australia Congress, Dr. Liam Bastick
- Modelling Risk, Return and Ranking
- Cash Flow Management For Critical Decision Making
- Key Driver Analysis Modelling
- Forecasting Techniques and Financial Modelling
- The ICAA Accounting Conference 2011
- The Newcastle Convention 2011
- National Infrastructure Awards 2011 - The Oscars of Infrastructure
- EuSpRIG: Corality presents SMART financial modelling in London, Greenwich
- Corality presents seminar on Business Analytics and Decision Analysis for the Institute of Chartered Accountants
- CPA Sydney Congress
- Financial modelling for gold projects and flying sharks at The Gold Symposium
- Strong speaker line up at The Gold Symposium, Sydney
- Corality continues its seminars on best practice standards in financial modelling for CPA Australia
- The CFO Crystal Ball: Powerful Financial Modelling for Strategic Planning
-
Corporate News
- Corality is a BRW 2011 Fast Starter
- SMART, Navigator’s best practise modelling methodology is here!
- Corality Gallery Opening - 16th of June, Sydney
- Corality hosts seminar at the London Business School
- Corality Gallery Opening
- Corality clients nominated in the Ernst & Young ‘Entrepreneur of the Year’
- Strategic merger - Corality and Navigator form the Corality Financial Group
- Excel workshops and live model builds with Corality at the CPA Expo
- Mines and Money Conference and Exhibition
- Peter Weatherston: Head of Consulting, financial modelling expert and whisky connoisseur
- Corality Financial Group - the start of a new era
- Banks approve US$138 million for the Wetar copper project
- Corality wins high profile Desertec equity model build job
- Rickard Warnelid – Top 40 business leader under 40
- Corality writes article series about financial modelling for CIMA
- Solar flair – Corality in the press
- Corality sponsors Macquarie University with award for academic excellence
- Investing in iron ore projects – Corality in the press
- Corality’s new MD, Rickard Warnelid
- Corality celebrates rapid growth nomination - BRW 2012 Fast Starter
- Corality attends The Resources and Energy Symposium, Broken Hill
- Corality is building its global presence with an office in Perth
-
Excel
- Corality check-lists in Excel using Webdings
- Are you using the Share Workbook functionality in Excel?
- What level of input Data Validation is needed in Excel?
- Excel lovers celebrate like crazy - Day 40,000 is here!
- ‘Zoom to selection’ with VBA to improve presentation of Excel financial models
- “Input cell reference is not valid” – how to create a Data Table in ANY sheet
- Scenario analysis for freaks - 13 silly options
- Excel and VBA password security
- VBA and Conditional Formatting in Excel
- OFFSET function and tracing formulae
- Financial model review – try this at home!
- IF-fetishism and named-range-bonanza
- Excel forecasting methods and how to assess forecast accuracy
- Full article now published: Reducing Risk in Excel Modelling
- CPA - Excel Secrets and Shortcuts
- Excel 2007 vs. 2010 – What's new
- Spreadsheet skills: hiding formulae
- Worst practice financial modelling
- Spreadsheet skills: Being Sensitive with data tables
- Excel shortcuts – get your Excel shortcuts cheat sheet
- Make Excel history and win a free financial modelling course!
- Corality Excel challenge - Congratulations Daniel Ferry!
- Spreadsheet Errors – Research by Professor Panko
- Sumwise – will it start a spreadsheet revolution?
- Should we use SUMPRODUCT?
- Desktop sharing – Using Skype to get Excel help from your friends
- So what can you do with an Excel spreadsheet
- Your guide to Excel Mapping Software
- Edward Tufte: Information Design and Data Visualisation
- Best practice financial modelling - Dilbert you should try it!
- Three simple ways to improve communication in your financial model
-
Financial model audit
- What is ‘Usual Practice’ for Calculating Project NPV?
- The time zone advantage in financial model audit iterations
- Do you love clients? Join the team.
- Sorry, but your financial model looks like Berlin (before 1989)!
- Can new spreadsheet infrastructure assist financial model audits in real-time?
- 4 Free alternatives to a financial model audit
- What is an ‘iteration’ in a financial model audit?
- Controlling costs in the financial model audit process
- Top 10 tips to reduce errors in excel modelling
- Seasons Greetings
-
Financial modelling industry
- Stand-alone financial modelling can destroy your company
- Charles Darwin, genetics and financial modelling
- www.fimodo.com – New financial modelling website
- 14 steps to improved marketing in your financial model
- You have an ugly baby!
- ‘Financial Modelling Expertise’ – Digit Advisory in Sydney
- “I built the worst financial model in the world!”
- Financial model audit analyst - What is the ideal background?
- What is the ideal background of a financial model audit analyst?
- Recruiting two financial modelling analysts in Sydney
- Does the world need pro bono financial modelling?
- My top 3 ‘Cityboy’ moments
- Career booster for senior financial model auditor
- Leighton and CBA win Queensland school PPP Project
- Australia’s fantastic internet infrastructure project
- Operis Analysis Kit (OAK 4.00) – time to upgrade?
- Rock Financial Modelling – Emma McPherson goes independent
- New Member of the Corality Team
- We’re recruiting!
- New Royal Adelaide Hospital PPP Project
- London – New financial model audit specialist in town!
- LinkedIn Group – Financial Modelling in Excel
- Pitfalls of utilising Cloud computing for spreadsheet modelling
- Debt Service Cover Ratio (DSCR) sculpting in Project Finance Modelling - the easy way!
- Regulatory change makes financial planning sector ripe for M&A
-
Training
- Debt-sculpting using VBA and Goal Seek
- Public training courses for financial model auditors?
- Financial modelling training on a shoestring
- Corality Financial Group hosts seminar at the Frankfurt School of Finance & Management
- Business Case Modelling Sydney - 6 & 7 December 2011
- Financial Modelling for Mining Projects training
- Corality training - lunchtime training sessions for PKF Australia
tags
all tutorials
-
Excel - Advanced
- Calculate NPV without Excel formulae
- LOOKUP instead of VLOOKUP and HLOOKUP
- Custom formats in Excel
- Data Validation in Excel
- Goal Seek function in Excel
- Range names in Excel
- Excel Data Tables in any sheet
- An iterative approach to calculating the Internal Rate of Return (IRR)
- How to use SUMPRODUCT
- Custom number formats - Formatting decimals
- Cashflow Available for Debt Service (CFADS)
- Benefits of using Excel shortcuts: get your shortcut sheet
- Cash Sweep Analysis in Project Finance
- Circular Interest – Interest on average balances
- Project Life Cover Ratio
-
Excel - Basic
- Array formulas in Excel
- ICAA Conference: Get Corality’s presentation and excel files
- Excel 2007 Styles Shortcut Tool
- Using trend lines to analyse patterns in historical data
- Excel offset function increases modelling risk
- Custom number formats - Formatting text
- Debt Sculpting to Target DSCR without VBA
- Calculate IRR in Excel
- Debt Service Reserve Account
- Organisational benefits of implementing best practice financial modelling
- Visual Basic for Applications (VBA)
LOOKUP instead of VLOOKUP and HLOOKUP
Downloads for this Tutorial:
PDF VersionDownload Now Excel WorkBook
Download Now
Are you a member?
Get full access to our FREE downloads Register Now
One of the most useful functions available in Excel is the Lookup functions. This allows you to take any value entered, find it in a data range, then return a value or information from that same data range without having to scroll through a list.
Efficent use of lookup functions in Excel

Screenshot 1: Example of VLOOKUP
Lookup
The most commonly used Lookup functions in Excel are VLOOKUP and HLOOKUP. VLOOKUP allows you to search a data range that is set up vertically. HLOOKUP is the exact same function, but looks up data that has been formatted by rows instead of columns.
VLOOKUP and HLOOKUP
However, VLOOKUP and HLOOKUP functions have certain drawbacks that could lead to potential errors especially tousers who often are unfamiliar to the spreadsheet / model. These issues will be discussed in this Tutorial, together with a simple LOOKUP function which could often be used to replace the VLOOKUP / HLOOKUP in the models.
Index and Match
It will also be discussed in this Tutorial that in certain cases especially when there is an unsorted range, a combination of INDEX and MATCH functions could be a more robust solution to be used instead of the Lookup functions. We have also prepared a workbook to illustrate the concepts discussed in this Tutorial.
VLOOKUP
VLOOKUP searches for a value in the leftmost column of a data range, and then returns a value in the same row from a column you specify in the range.
VLOOKUP is used instead of HLOOKUP when your comparison values are located in a column to the left of the data you want to find.
The syntax for VLOOKUP is:
VLOOKUP(lookup_value, table_array, col_index_num, range_lookup)
“range_lookup” If TRUE or omitted, an approximate match is returned (i.e. if an exact match is not found, the next largest value that is less than lookup_value is returned). If FALSE, VLOOKUP will find an exact match.
In the following example, there is sales forecast data as presented in Screenshot 1. The first column in the data table is the Country, the next few columns are the various respective information and the remaining columns are the periodic sales forecast data for each country.
E.g. Retrieve the periodic sales forecast data for Country D!
VLOOKUP formula is used to solve as shown in the Screenshot. The “col_index_num” for sales forecast in period Mar-09 would be “5”, for period Jun-09 would be “6” and so on. Please note that the “FALSE” is omitted from the “range_lookup” in this example because the data in the first column is sorted (A to J).
HLOOKUP
HLOOKUP is the exact same function, but looks up data that has been formatted by rows. HLOOKUP searches for a value in the top row of a table or an array of values, and then returns a value in the same column from a row you specify in the table or array.
The syntax for HLOOKUP is:
HLOOKUP(lookup_value, table_array, row_index_num, range_lookup)
The example in the workbook formats the sales forecast data in the VLOOKUP example by rows instead of columns and demonstrates how HLOOKUP function is used to look up the periodic sales forecast for the selected Country.
Problems with VLOOKUP / HLOOKUP
- Caution if any columns or rows are inserted / moved / deleted:
The main drawback of these functions is if any columns or rows are inserted, moved or deleted within the range, the VLOOKUP & HLOOKUP will return the position of the new column or row in the lookup column / row index number.
For instance if a column is inserted between column D and E in Screenshot 1, then the user must remember to change the “col_index_num” for sales forecast in period Mar-09 from “5” to “6”. - VLOOKUP could only search for a value in the first leftmost column of a data range, and similarly HLOOKUP could only search for a value in the top row of the range:
When let say the key field is to the right of the range you want to retrieve, VLOOKUP will not work. Following the above example if you want to retrieve the Major Client and the Country for Priority 1 sales, then VLOOKUP can’t be used unless the Priority column is temporary moved to the first column in the range - Values in the first column / row of the data range needs to be sorted if range_lookup is “TRUE” or omitted, unless the range_lookup is “FALSE”:
This could lead to potential errors especially when the user is not familiar with the function.
How to replace VLOOKUP / HLOOKUP with LOOKUP
The VLOOKUP / HLOOKUP functions are often used before a LOOKUP function. However, the LOOKUP is far cleaner and more transparent as it only requires two ranges and a lookup value. The syntax for LOOKUP is:
LOOKUP(lookup_value, lookup_vector, result_vector)

Screenshot 2: Example of replacing VLOOKUP with LOOKUP
Please refer to the accompanied workbook on other examples to use the simple LOOKUP function instead of VLOOKUP / HLOOKUP.
The use of INDEX (MATCH)
As described above, VLOOKUP and HLOOKUP functions have certain drawbacks that could lead to potential errors especially to users who often are unfamiliar to the model. Although the simple LOOKUP function could sometimes be used to replace VLOOKUP / HLOOKUP, it is limited to a single row or column to hold results. In some cases using combination of INDEX (MATCH) functions may be the only solution which is more robust / versatile than VLOOKUP / HLOOKUP.
INDEX returns the value based on the specific row and column number indexes.
INDEX(array, row_num, column_num)
MATCH returns the position of the matched item in a one-dimensional list.
MATCH(lookup_value, lookup_array, match_type)
“match_type” „³ If match_type is 0, MATCH finds the first value that is exactly equal to lookup_value.
E.g. Retrieve the sales forecast for Country B for period ending 30-Jun-09!

Screenshot 3: Example of INDEX (MATCH)
The steps to solve the example using INDEX (MATCH) are:
- Find the “row_num” for Country B using Match function. The solution is row # “3”.
- Find the “column_num” for Period ending Jun-09 using Match function. The solution is column # “2”.
- The sales forecast can then be solved using INDEX function, using the “row_num” and “column_num” solved using MATCH functions above.
Not a member?
Register now to get full access to our FREE Tutorials and workbooks.
Register Now
Login
Downloads for this Tutorial:
PDF VersionDownload Now Excel WorkBook
Download Now
Are you a member?
Get full access to our FREE downloads Register Now





Post new comment