• 462K Members
• 5,458 Online
• 559K Conversations
SOLVED

Highlighted
New Contributor

# Find/return the next value in the column list

Hi,

I have a list of numbers in a column.

A have a number in another cell that has been selected from that list.

Is it possible to find this number in the list (a la vlookup) and then access/return the value that is in the next cell in the list, the value in the cell below the current one?

Thanks.

4 Replies
Solution

# Re: Find/return the next value in the column list

You may find with MATCH() position of the number in the list, and with INDEX() return value from the cell in next position. If, for exmple, your list is in column A and number to search is in cell B1, it could be

``=IFERROR(INDEX(A:A,MATCH(B1,A:A,0)+1),"no such number")``

# Re: Find/return the next value in the column list

VLOOKUP always has been a flawed function for a number of reasons,  INDEX/MATCH would be better here.  Calling you list and number by those names, the simplest formula is

= INDEX( list, 1 + MATCH( number, list, 0 ) )

Instead of adding 1 to the index it is also possible to define 'offsetList' to be a range one cell down from the initial list:

= INDEX( offsetList, MATCH( number, list, 0 ) )

Switching to the latest versions of Office 365, one has the new XLOOKUP function which replaces other lookup function in almost all circumstances.  Using the offset list once more

= XLOOKUP( number, list, offsetList )

or if volatile functions are not a problem

= OFFSET( XLOOKUP( number, list, list ), 1, 0 )

Many thank.

# Re: Find/return the next value in the column list

@wazza2040 , you are welcome

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies