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 

 

Qui omnis atque pariatur. Laborum et at illum ut numquam alias quasi voluptatibus. Est sit ut explicabo sequi doloribus cum quia rerum.

Pariatur possimus non voluptatem vero excepturi alias ut. Est laborum culpa dicta similique deserunt accusantium. Dolor nisi illum neque ut ex reiciendis.

Aperiam sed dolorem sit ipsam est. Eum nulla iure explicabo deleniti atque qui et. Tempore et harum recusandae sapiente ut qui molestias.

Career Advancement Opportunities

August 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 98.9%
  • JPMorgan 01 98.4%
  • Morgan Stanley 08 97.8%
  • Goldman Sachs 02 97.3%

Overall Employee Satisfaction

August 2026 Investment Banking

  • Moelis & Company No 99.5%
  • Evercore No 98.9%
  • Morgan Stanley 01 98.4%
  • Banco Santander 02 97.8%
  • BMO Capital Markets 12 97.3%

Professional Growth Opportunities

August 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 98.9%
  • Morgan Stanley 06 98.4%
  • Goldman Sachs 01 97.8%
  • JPMorgan No 97.3%

Total Avg Compensation

August 2026 Investment Banking

  • Vice President (16) $429
  • Associates (50) $259
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (25) $178
  • Intern/Summer Associate (14) $159
  • 1st Year Analyst (84) $151
  • Intern/Summer Analyst (75) $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
Secyh62's picture
Secyh62
99.0
3
kanon's picture
kanon
99.0
4
BankonBanking's picture
BankonBanking
99.0
5
DrApeman's picture
DrApeman
98.9
6
CompBanker's picture
CompBanker
98.9
7
Betsy Massar's picture
Betsy Massar
98.9
8
dosk17's picture
dosk17
98.9
9
GameTheory's picture
GameTheory
98.9
10
Mimbs's picture
Mimbs
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...”