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 

 

Impedit eius quos harum eos vitae. Et corrupti voluptas perspiciatis sed veniam id laborum. Alias expedita et hic velit culpa repellat. Quidem quasi impedit autem eum labore impedit et consequatur. Nihil beatae molestias consequatur mollitia explicabo sit.

Career Advancement Opportunities

October 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

October 2026 Investment Banking

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

Professional Growth Opportunities

October 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

October 2026 Investment Banking

  • Vice President (16) $429
  • Associates (57) $264
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (28) $184
  • Intern/Summer Associate (16) $161
  • 1st Year Analyst (84) $151
  • Intern/Summer Analyst (76) $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

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...”