Note: The other languages of the website are Google-translated. Back to English

## 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

#### 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:

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:

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).

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.

### The Best Office Productivity Tools

#### 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-2021 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.

#### 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!
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
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
This comment was minimized by the moderator on the site
Sorry, I did not get ur question clearly. If you want to count the times a word appears in a range? If so, you can use this formula =COUNTIF(A2:A12,"Jack"), you can go to this atricle https://www.extendoffice.com/documents/excel/3224-excel-count-number-of-occurrences-of-a-word-in-a-column.html for more details and methods.
This comment was minimized by the moderator on the site
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 :)
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
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
This comment was minimized by the moderator on the site
I need this formula, but with multiple columns
This comment was minimized by the moderator on the site
What's you need? You can describ your quetion with more details so that we can help you.
This comment was minimized by the moderator on the site
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?
This comment was minimized by the moderator on the site
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?
This comment was minimized by the moderator on the site
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
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
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)
This comment was minimized by the moderator on the site
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)
This comment was minimized by the moderator on the site
Hey i was wondering if there was a way to get this to work so when you pull down the formula to another cell it increases how many rows you want it to go down.
This comment was minimized by the moderator on the site
I want to create a formula to show an error if the number in B column and C column and I want to put the formula in A column that will show as an error if the number entered in column B if below 712 and column C above 812?
This comment was minimized by the moderator on the site
Hi, I'm trying to get this working by looking up values in a row rather than a column. Please assist
This comment was minimized by the moderator on the site
Maybe try changing your range from a vertical range to a horizontal range. For example, F1:F8, do you see how thats a vertical range? Try changing it to a horizontal range like A1:H1. Do you see how that's now a horizontal range? So anywhere there was a vertical range, replace it with your horizontal range. I don't know if it will work, just an idea.
This comment was minimized by the moderator on the site
Make sure you also switch the column and area number positions.instead of =INDEX(F1:H8,MATCH(K1,F1:F8,0)+1,1)do this=INDEX(F1:H8,2,MATCH(K1,F1:F8,0))

This comment was minimized by the moderator on the site
How can I get the sum =(INDEX(\$I:\$L,MATCH(\$S\$2,\$L:\$L,0)-1,1)) Currently it pulls the data of the first time my match happens. I'm looking to get the sum of all the times the match happens. The time data is in I.
This comment was minimized by the moderator on the site
Use the sumif statement for that
This comment was minimized by the moderator on the site
I have multiple rows with "Name" in the row just above the cell with a person's name in it. The formula works great for just one name but I have a few thousand names. How do I convert the formula so it will find each name and bring them into a separate column?
This comment was minimized by the moderator on the site
Hello, This is useful for the row above or below but I would like to alternate the lookup sometimes +1 to +3 or - 1 to -3. Can I make one formula that uses an input cell reference so I can type in an offset?
This comment was minimized by the moderator on the site
Anyone able to answer John Chapman's question from four years ago? I have similar challenge. My current formula is =COUNTIFS(G2:G16482,"<2",I2:I16482,F16490)
but I want to count the occurence of the value in cell F16490 in the row above for the range I2:I16482.
This comment was minimized by the moderator on the site
I'm trying to figure out a way to bring a customer number (text field) by looking up the invoice number. See below. I want to go to another sheet and if cell equals 6491 then return customer number 007517 (text field), and if cell equals 6487 return 009897

6491 007517
6491 007517
6486 007517
6481 009897
6487 009897
6481 009897
6480 009897

Any help would be appreciated.

Thank you!!
This comment was minimized by the moderator on the site
Hi, Brad Grimes, Excel VLOOKUP function can help you to quickly solve the job. Pleae visit this tutorial LOOKUP Values from Another Worksheet or Workbook, it provides examples to explain how to use the VLOOOKUP function.
This comment was minimized by the moderator on the site
I can only get this formula to perform by putting the MATCH clause in additional parentheses so as to carry out the arithmetic function. Otherwise it returns a #VALUE error.

Original: =INDEX(A1:A8,MATCH(D1,A1:A8,0)-1,1)
Corrected: =INDEX(A1:A8,(MATCH(D1,A1:A8,0))-1,1)
This comment was minimized by the moderator on the site
Hi, i´m having the following issue, i m using the MIN function to retrieve the smallest value of a row but i m not able to retrieve the value of the cell next to the smallest

0,82 € 690 0,92 € 721 0,61 € 2446 0,71 € 2443 114 2212

each of these values are in a cell and what i need is for ex: smallest value is 0.61 so i want to retrieve the cell right next to it 2443. im using Office 2010. thanks a lot
This comment was minimized by the moderator on the site
Hi, Paulo, if all your data is in a row, and each of them in a single cell, you can try this formula: =INDIRECT(CELL("address",INDEX(A1:J1,MATCH(MIN(A1:J1),A1:J1,0)+1))), if your data is in to columns, such as:
0,82 690
0,92 721
0,61,2446
0,71 2443
114 2212
you can visit this tutorial How To VLOOKUP The Lowest Value And Return Adjacent Cell In Excel?, it will hel you.
This comment was minimized by the moderator on the site
Hi, I am wanting to pick a state then pick how many kgs and then it references the Price per weight listed as it changes from point to point
0-500 501-1000 1001-5000 50001-1000 10001-2200 22000+
TBRI 0.476 0.282 0.219 0.197 0.177 0.159
TCNS 0.26 0.154 0.114 0.106 0.099 0.085
TGLD 0.246 0.146 0.108 0.097 0.087 0.059
TGOL 0.605 0.485 0.387 0.287 0.213 0.197
TMCK 0.1 0.077 0.006 0.048 0.04 0.029
PPP 0.246 0.146 0.108 0.097 0.087 0.059
TRTN 0.187 0.111 0.082 0.074 0.066 0.055
TTSV 0.187 0.111 0.082 0.074 0.066 0.245
TSYD 0.562 0.376 0.342 0.308 0.277 0.259
TNTL 0.427 0.286 0.26 0.299 0.278 0.259
TWLG 0.834 0.523 0.444 0.399 0.359 0.31
There are no comments posted here yet