You are here:

Excel/copying lookup formula


I have an HLookup formula which works ok.
example =Hlookup(N$5,A$5:úN$30,2,false)
I want to copy this down for all 30 rows, therefore, I want the index number (2) to change to 3,4,5 etc. Is there a way to do this?

The ROW() function can be used to increment in this manner.  A way to use this to equal 2 is ROW(A2), so your first formula would change to:

      =HLOOKUP(N$5, A$5:N$30, ROW(A2), FALSE)

As you copy that down, it would change itself to A3, A4, etc, causing the ROW() function to increment.
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here


All Answers

Answers by Expert:

Ask Experts


Jerry Beaucaire


Excel Formulas, macros, automation. Microsoft Excel MVP - 2010. Code site with free code snippets and techniques:


Microsoft Excel MVP - 2010. I have my own extensive Excel help/code site: ===================== I have been offering free assistance as an Excel aid on many web sites for many years: ( - JBeaucaire) ======== ( - JBeaucaire) ======= ( - jbeaucaire)

Bachelor's Degree from Azusa Pacific University in Mathematics and Music Composition

Awards and Honors
Microsoft Excel MVP 2010

©2016 All rights reserved.