How to find the Nth observation from N?

raven316

New Member
Joined
Dec 4, 2015
Messages
2
Hello everyone,
I would like to know what is the best function or formula to use to find the Nth observation after an initial observation.
What I mean is:
Suppose I have a set of a stock closing prices.
If my initial observation is July 1, 2015, then how could I find the value that is 5 days later? or 30 days later? or any other date for that matter.
I cant just a vlookup and do July 1, 2015 and add say 5 or 30 days to it, because there are weekends and holidays to account for when the market is closed.
An example of a data set is pasted below.
I thought of using vlookup with match and index function, but not sure how.
Thank you in advance for any help.


A B
1 Date Close
2 14/08/2015 6.89
3 13/08/2015 6.94
4 12/08/2015 7.17
5 11/08/2015 7.16
6 10/08/2015 7.43
7 07/08/2015 7.68
8 06/08/2015 7.71
9 05/08/2015 7.26
10 04/08/2015 7.38
11 03/08/2015 7.23
12 31/07/2015 7.62
13 30/07/2015 7.64
14 29/07/2015 7.6
15 28/07/2015 7.44
16 27/07/2015 7.15
17 24/07/2015 7.12
18 23/07/2015 7.37
19 22/07/2015 7.46
20 21/07/2015 7.7
21 20/07/2015 7.59
22 17/07/2015 7.48
23 16/07/2015 7.17
24 15/07/2015 7.18
25 14/07/2015 7.34
26 13/07/2015 7.47
27 10/07/2015 7.5
28 09/07/2015 7.3
29 08/07/2015 7.07
30 07/07/2015 7.1
31 06/07/2015 7.4
32 02/07/2015 7.43
33 01/07/2015 7.69
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Welcome to the MrExcel board!

If the "Initial Observation" date is always one of the actual dates in the list, then try the E3 formula below.

If the "Initial Observation" date is always the very bottom date in column A, then try E7

If neither of those, please provide further clarification.

Excel Workbook
ABCDE
1DateCloseStart Date31/7/2015
214/8/20156.89Nth After5
313/8/20156.94Close7.68
412/8/20157.17
511/8/20157.16
610/8/20157.43Nth After5
77/8/20157.68Close7.3
86/8/20157.71
95/8/20157.26
104/8/20157.38
113/8/20157.23
1231/7/20157.62
1330/7/20157.64
1429/7/20157.6
1528/7/20157.44
1627/7/20157.15
1724/7/20157.12
1823/7/20157.37
1922/7/20157.46
2021/7/20157.7
2120/7/20157.59
2217/7/20157.48
2316/7/20157.17
2415/7/20157.18
2514/7/20157.34
2613/7/20157.47
2710/7/20157.5
289/7/20157.3
298/7/20157.07
307/7/20157.1
316/7/20157.4
322/7/20157.43
331/7/20157.69
34
Lookup Price
 
Upvote 0
Thank you for the welcome and the solution Peter. Yes, it was the E3 cell formula that did the trick.
THANK YOU VERY MUCH. BEST WISHES FROM TORONTO.
 
Upvote 0
Thank you for the welcome and the solution Peter. Yes, it was the E3 cell formula that did the trick.
THANK YOU VERY MUCH. BEST WISHES FROM TORONTO.
Glad it helped. Thanks for letting us know.
 
Upvote 0

Forum statistics

Threads
1,221,489
Messages
6,160,131
Members
451,621
Latest member
roccanet

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