How to use flags in a model

Can someone explain how to use flags in a model simply (I.e. to indicate lease start dates)? For example, I see 1s and 0s used pretty frequently. And also, what is the reason they are used / what would have been the alternative otherwise? I understand they’re a bit easier to follow / audit
 

I’m able to follow them when built in a model but am struggling conceptually about how to think about them when building them from scratch on my own. Is there anyway I should think about them at their core / broken down? Thanks! 

4 Comments
 
Most Helpful

The idea is to always keep your model simple to follow. This also helps minimizes potential mistakes you could make when creating it!

Flags are useful when a formula becomes too complex to follow. By breaking the formula into two parts using a flag, you can make it easier to understand. The alternative is either having a long, hard to follow formula or just hardcoding (I like to keep my models dynamic, but it really depends on the situation).

I'll use your example of a start date for some lease. You can build this type of flag the following way:

  1. Have a place on an assumptions tab (or wherever you want to put it) where you can input a start date
  2. Create a new row above your lease calculation that returns "1" if the date from the assumptions tab matches the date on this tab (otherwise, return "0")
  3. Multiply the lease formula by this flag. This will make it so the lease only starts when the flag returns a "1." To keep it from resetting, you can either use the sum of all previous flags here or adjust the flag calculation so that once a "1" appears, future flags will also be a "1" (There are other ways to do this, but this is just an example)
 

Got it this makes a ton of sense. So I should think of flags as not just to show timing but as an actual input / switch (i.e. for visibility to see where on a timeline a lease starts) that id multiply 

 

Ducimus velit rem possimus eveniet quo doloribus. Corrupti quisquam sit eveniet sed. Minus aut similique blanditiis illo numquam.

Error optio ea nisi. Nulla aut sunt voluptas consequatur id ea reiciendis. Sapiente quis fugit doloremque. Cupiditate natus et qui nam necessitatibus ipsam. Repudiandae id animi minima tenetur sunt omnis. Placeat corrupti autem amet tempora nostrum a voluptatibus.

Asperiores harum porro consequatur ipsam. Aut neque quos distinctio et. Dolore numquam omnis beatae consectetur. Occaecati laudantium ducimus voluptatem est magnam. Vel rerum atque qui qui. Ut id necessitatibus quibusdam alias. Doloremque omnis magni deserunt id debitis qui.

Career Advancement Opportunities

November 2026 Investment Banking

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

Overall Employee Satisfaction

November 2026 Investment Banking

  • Moelis & Company No 99.5%
  • Morgan Stanley 02 99.0%
  • Evercore 01 98.4%
  • Banco Santander 04 97.9%
  • BMO Capital Markets 13 97.4%

Professional Growth Opportunities

November 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • Morgan Stanley 05 98.4%
  • Goldman Sachs 01 97.9%
  • JPMorgan No 97.4%

Total Avg Compensation

November 2026 Investment Banking

  • Vice President (17) $409
  • Associates (58) $261
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (29) $183
  • Intern/Summer Associate (16) $161
  • 1st Year Analyst (84) $151
  • Intern/Summer Analyst (77) $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
kanon's picture
kanon
99.0
3
BankonBanking's picture
BankonBanking
99.0
4
Secyh62's picture
Secyh62
99.0
5
GameTheory's picture
GameTheory
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
dosk17's picture
dosk17
98.9
10
Linda Abraham's picture
Linda Abraham
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...”