excel help

What equation can I write in excel if I want excel to show me an output within certain ranges. Looking at the data table below, if I want excel to show "B" in a cell by typing 5/6/2016 due to the number being between 1/1/15 and 1/1/2020 - I have a long list and not sure how to write the equation or what format to use.

Date Group

1/1/2012 A

1/1/2015 B

1/1/2020 C

1/1/2022 D

6 Comments
 

I’d use the IFS(…) function. Start with your earliest or latest date e.g. IFS( x > date in cell y, “A”, x > date in cell z, “B”,…)

 
Most Helpful

Posting the answer here: you’ll want to have the dates in ascending order (earliest first, followed by next chronologically). With corresponding values.

Then you’ll want to run and index (desired values , match (lookup value, ascending dates array, 1)

The 1 in the match function will return the highest date less than your lookup value. You may want to use -1 if you want it to “round up” instead.

 

Voluptatibus recusandae alias assumenda voluptatibus. Pariatur tenetur dignissimos sapiente id praesentium sed a. Facilis aut quae qui perspiciatis et blanditiis. Aut id dolorem aperiam qui suscipit doloremque qui. Voluptas ducimus magni veniam quasi deleniti.

Repellat cumque et velit aut provident molestiae maxime. Autem at aliquid soluta magnam voluptatem qui explicabo officiis. Aspernatur ut voluptatum optio fugiat consequatur. Voluptate et delectus magni.

Rem vitae et qui beatae enim. Officia voluptates qui repudiandae rerum culpa hic cumque.

Career Advancement Opportunities

December 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • JPMorgan 01 98.4%
  • Guggenheim Partners 03 97.9%
  • Morgan Stanley 06 97.4%

Overall Employee Satisfaction

December 2026 Investment Banking

  • Moelis & Company No 99.5%
  • Morgan Stanley 02 99.0%
  • Evercore 01 98.4%
  • Banco Santander 03 97.9%
  • Barclays 03 97.4%

Professional Growth Opportunities

December 2026 Investment Banking

  • Evercore 02 99.5%
  • Moelis & Company 01 99.0%
  • Morgan Stanley 04 98.4%
  • Barclays 02 97.9%
  • Goldman Sachs 01 97.4%

Total Avg Compensation

December 2026 Investment Banking

  • Vice President (19) $412
  • Associates (62) $260
  • 3rd+ Year Analyst (9) $194
  • 2nd Year Analyst (30) $185
  • Intern/Summer Associate (16) $161
  • 1st Year Analyst (87) $151
  • Intern/Summer Analyst (80) $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
BankonBanking's picture
BankonBanking
99.0
3
kanon's picture
kanon
99.0
4
Secyh62's picture
Secyh62
99.0
5
dosk17's picture
dosk17
98.9
6
DrApeman's picture
DrApeman
98.9
7
CompBanker's picture
CompBanker
98.9
8
Betsy Massar's picture
Betsy Massar
98.9
9
GameTheory's picture
GameTheory
98.9
10
Jamoldo's picture
Jamoldo
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...”