Photo Credit: goulao
â€œAlright you little ninny, give me your lunch money!â€ I heard that a lot growing upâ€¦ frankly, I got tired of saying it.
Telling people what to do can be an invigorating experience, and as Iâ€™ve found over several years of building financial models for commercial real estate analysis, Excel was built to bully.Â Excel does as itâ€™s told, and never tells on you. So whatâ€™s the best way to become an Excel Bully? The IF Statement.
We strongly suggest before you continue reading, download the sample spreadsheet by clicking here. It includes practical application, examples, and a prove-you-know-it section!
To fully understand the IF statement we must first understand Logic Statements. Logic Statements are declarative sentences that are either true or false, and while the application of Logic Statements within Excel is limitless, the IF statement in Excel is easily garnered by beginner/intermediate level users.
At its core, the IF statement asks if a condition is met, and returns one value if the condition is met, and another value if the condition is not.
Syntax: =IF(is this true?, if true do this, if false do this)
(Edit: relevant example tangent) Iâ€™ve known a handful of people who donâ€™t need sleep, averaging anywhere from 3-5 hours a night. If I were subject to that little sleep, God forbid, donâ€™t even look at me the next day or heads might roll.
The tangent above could be summarized into a simple logic statement: If I get more than 6 hours of sleep, Iâ€™m happy, if not, donâ€™t talk to me!
If we were to translate that into Excel speak, it would read:
=IF(hours of sleep > 6, â€œIâ€™m happyâ€, â€œDonâ€™t talk to me!â€)
Weâ€™ve just told Excel to check the number of hours I slept data and forced Excel to give us a response based on the criteria.
So hereâ€™s to Bullies! Welcome to the top of the world, where Excel does just as you ask.
Join us by subscribing forÂ free email updates andÂ follow us onÂ Twitter.