Excel Table - Look Up ID and Return Date Column of Next Row

pquser

New Member
Joined
Mar 11, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone - I have an Excel table as shown in the attached image. I want to add a column called Date End that looks at the ID and if the next row has the same ID, return the Date Start value of that next row. Otherwise if there is not another row with the same ID, return null. The image shows what my desired result is in red. Please let me know if you need anything else to help solve this!

1647061383867.png
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Upvote 0
Not sure what you mean by "Is there a way to do this without cell references".
Here is one way to use INDEX/MATCH or XLOOKUP.
Book1
ABCDEFGH
1IDStartEndINDEX/MATCHXLOOKUP
21000017/30/2018nullnullnull
31000021/1/2018nullnullnull
41000059/5/20173/30/20203/30/20203/30/2020
51000053/30/20204/1/20214/1/20214/1/2021
61000054/1/2021nullnullnull
71000089/2/20144/1/20204/1/20204/1/2020
81000084/1/20202/15/20212/15/20212/15/2021
91000082/15/2021nullnullnull
101000131/1/2018nullnullnull
Sheet1
Cell Formulas
RangeFormula
D2:D10D2=IF(A2=A3,B3,"null")
F2:F10F2=IFERROR(INDEX(B3:B10,MATCH(A2,A3:A10,0)),"null")
H2:H10H2=XLOOKUP(A2,A3,B3,"null")
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top