Excel Question

Hi – I was hoping anybody could answer this question for me.
I have specific dates (about 400 dates total). I used a
VLOOKUP to find the price corresponding to that date. If I want the prices for
the five previous days prior to the event date, and the five following days, is
there an easy way to reference a location directly 1 cell, 2 cells,3 cells etc
below or above my date in the original table from where I got my VLOOKUP result,
and then repeat this for 400 different dates.

Thank you for your help

 

Smugguy, thanks for the response. My problem there is that I need to take out weekends and holidays (only looking at trading days). If I use the vlookup like that, my dates go wrong. Is there a way to get around that, and still use the vlookup? The data that I have is only trading days, and I am hoping to look at all five previous trading days prior to an event, and five following days.

 
Best Response

If the data is organized into trading days/required data, you can match the row in the required column (sorting the column appropriately), then offset as desired (ie. offset 0,1, 2, 3, 4), as guru stated.   If not trading days (ie. just days), and from your vlookup you need to get only trading days the problem becomes more complicated.  You need to define a trading day, for instance: is it a day when a certain market is closed, a day when libor on the day before isn't O/N, etc?

 

Assuming you have the trading days labeled, you can simply drop in a row of numbered trading days (1 thru 400) between each trading date and its respective price. Your first lookup should identify the numbered row for the date in question, while your next 11 lookups (-5,0 and +5 days) should reference the result of your first lookup (i.e., the trading day number), not the date itself.

 

Ut animi vero ut incidunt qui. Nisi fugiat et vero cupiditate atque.

Rem ut sint vel reprehenderit maiores exercitationem incidunt. Et nulla expedita atque distinctio non ut. Asperiores necessitatibus temporibus ipsa laborum ipsa. Illo quia consequatur qui in.

Laboriosam molestiae necessitatibus non qui qui similique omnis. Aut voluptatem autem aut laudantium earum in. Molestiae distinctio nam velit sit perspiciatis dolorum magnam. Numquam qui nam dolorum atque. Qui minus minus aut expedita. Ut omnis voluptas labore ut assumenda quae. Ea distinctio tempora necessitatibus odio et. Culpa minus impedit est amet facere veniam sequi.

Career Advancement Opportunities

May 2024 Investment Banking

  • Jefferies & Company 02 99.4%
  • Lazard Freres No 98.9%
  • Harris Williams & Co. 25 98.3%
  • Goldman Sachs 17 97.7%
  • JPMorgan Chase 04 97.1%

Overall Employee Satisfaction

May 2024 Investment Banking

  • Harris Williams & Co. 18 99.4%
  • JPMorgan Chase 10 98.9%
  • Lazard Freres 05 98.3%
  • Morgan Stanley 07 97.7%
  • William Blair 04 97.1%

Professional Growth Opportunities

May 2024 Investment Banking

  • Lazard Freres 01 99.4%
  • Jefferies & Company 02 98.9%
  • Goldman Sachs 17 98.3%
  • Moelis & Company 07 97.7%
  • JPMorgan Chase 05 97.1%

Total Avg Compensation

May 2024 Investment Banking

  • Director/MD (5) $648
  • Vice President (21) $373
  • Associates (91) $259
  • 3rd+ Year Analyst (14) $181
  • Intern/Summer Associate (33) $170
  • 2nd Year Analyst (68) $168
  • 1st Year Analyst (205) $159
  • Intern/Summer Analyst (146) $101
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
Betsy Massar's picture
Betsy Massar
99.0
3
BankonBanking's picture
BankonBanking
99.0
4
Secyh62's picture
Secyh62
99.0
5
CompBanker's picture
CompBanker
98.9
6
kanon's picture
kanon
98.9
7
dosk17's picture
dosk17
98.9
8
GameTheory's picture
GameTheory
98.9
9
Linda Abraham's picture
Linda Abraham
98.8
10
bolo up's picture
bolo up
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”