Forum Discussion
wazza2040
Nov 16, 2019Copper 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 acc...
- Nov 16, 2019
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")
rocketgrl
Jan 12, 2022Copper Contributor
SergeiBaklan What if you don't know the next value in the column? I have a column of random dates and next to it is a column of random values that don't populate every cell. I want to create a table that picks up just the date where there is a value, and then the corresponding value. Thanks!
| 7/28/2017 | 6,900,439.07 |
| 8/1/2017 | |
| 9/1/2017 | |
| 9/21/2017 | 52,618.28 |
| 10/1/2017 | |
| 10/20/2017 | 302,730.65 |
| 11/1/2017 | |
| 11/22/2017 | 293,637.39 |
| 12/1/2017 |
SergeiBaklan
Jan 12, 2022Diamond Contributor
- RADS_JAS1360Mar 10, 2023Copper Contributor
- SergeiBaklanMar 11, 2023Diamond Contributor
On which Excel version you are?
Try to open attached file if it works in your environment. It replicates your sample
- RADS_JAS1360Mar 13, 2023Copper Contributor
Thanks SergeiBaklan.
even your excel shows the formula as
Mine is 2016. maybe the code is not supported.