Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to look up a value and return the cell above or below in Excel?

In Excel, we use VLOOKUP function to find a specific value from a range data, but do you know how to look up a value and then return its above or below values? Actually, you can use INDEX function to handle it.

Look up a value and return the cell above or below

Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
  • Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
  • More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
  • Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
  • Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
  • Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
  • Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
  • More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.

arrow blue right bubble Look up a value and return the cell above or below


Look up a value and return cell above

Select a blank cell that you want to place the return value, and type this formula =INDEX(A1:A8,MATCH(D1,A1:A8,0)-1,1), press Enter key to return the value. See screenshot:
doc look return cell above 1

Look up a value and return cell below

Select a blank cell that you want to place the return value, and type this formula =INDEX(A1:A8,MATCH(D1,A1:A8,0)+1,1), press Enter key to get the result. See screenshot:
doc look return cell above 2

Note: in the formulas, the first A1:A8 is the range where you look up for value, and the second A1:A8 is the range where you want to look up for the criterion, D1 is the value you look up, 1 indicate the column number you want to return.

If you want to look up for a value and return below and the 3 cells to the right of the reference, you can apply this formula =INDEX(F1:H8,MATCH(K1,F1:F8,0)+1,3).
doc look return cell above 3

Tip.If you want to quickly lookup a value and return in another column, please try to use the Kutools for Excel’s Look for a value in list as shown in the following screenshot. It’s full function without limitation in 60 days, please download and have a free trial now.

doc look return cell above 4


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Trey · 3 months ago
    How can I get this to work for my entire workbook. Trying to search by purchase order and list the container number that is one line above.

    =INDEX('Thur 9.5:Tues 12.31'!,MATCH('Hot Containers'!A5,'Thur 9.5:Tues 12.31'!,0)-1,1)
  • To post as a guest, your comment is unpublished.
    Ginny · 6 months ago
    Hello,

    How can I use this formula to match data in cell A3 in columns A to H and rows 1 to 9 and return the value in the row below. I have tried this formula =INDEX(Sheet1!a1:h9,MATCH(A3,Sheet1!a1:h9,0)+1,1) but it didn't work. Oh yeas and its data from another sheet.

    Any help would be greatly appreciate.
    • To post as a guest, your comment is unpublished.
      Sunny · 4 months ago
      Hi, you need to change =INDEX(Sheet1!a1:h9,MATCH(A3,Sheet1!a1:h9,0)+1,1) to =INDEX(Sheet1!a1:h9,MATCH(A3,Sheet1!a1:a9,0)+1,1), or you can use this formula =INDEX(A1:A9,MATCH(A3,A1:A9,0)+1,1)
  • To post as a guest, your comment is unpublished.
    Jeyner Lopez · 7 months ago
    Hi, how to know how many times a value occur after certain value, example I have a list of numbers, I try to know how many time number 2 is after 1 and so on
  • To post as a guest, your comment is unpublished.
    ryan · 8 months ago
    I have a piece of text in cell A2 in spreadsheet A. In spreadsheet B I have the same text in cell A4 and in cell C4 I wish to use a formula that will return the value of cell B4 from spreadsheet A. Is this possible?
  • To post as a guest, your comment is unpublished.
    ryan · 8 months ago
    I have a piece of text in cell A2 in spreadsheet A. In spreadsheet B I have the same text in cell A4 and in cell C4 I wish to use a formula that will return the value of cell B4 from spreadsheet A. Is this possible?
  • To post as a guest, your comment is unpublished.
    Jim · 1 years ago
    I need this formula, but with multiple columns
    • To post as a guest, your comment is unpublished.
      Sunny · 1 years ago
      What's you need? You can describ your quetion with more details so that we can help you.
  • To post as a guest, your comment is unpublished.
    Mike · 1 years ago
    Lets say my names run across row 1 and the values directly below in row 2. How do I look it up then? This formula doesn't seem to work when the data is horizontal.
    • To post as a guest, your comment is unpublished.
      simon · 1 years ago
      I looked around quite a bit and found this:

      =INDEX(A1:Z1,MATCH(D3,A10:Z10,0))

      D3 is your lookup value; row 10 has the values you are searching; row 1 has the values you will return where there's a match in the relevant column in row 10 with D3
  • To post as a guest, your comment is unpublished.
    Robin · 1 years ago
    Hello! I have an interesting question. Let’s say that i have a letter(”S” for example) on every row but in different places. So on the second row the letter ”S” can be found in cell X2 and on the third row the letter ”S” can be found in cell F3. At the top of the table (the first row) you have dates, ranging horizontilly. What function should I use in ordern to find the letter ”S” on each row, and then retreive the date that is located x amount of steps above it? How do you search horizontelly for a letter, and when you find that specific letter, go up to row 1 to retreive its date? I hope I explained this in a clear manner :)
  • To post as a guest, your comment is unpublished.
    Jon Chapman · 2 years ago
    This is a great formula. Can it be wrapped in to a COUNTIF formula, so instead of returning the looked-up value, it counts how many times the result was found? EG: how many times 'Jack' was returned