This article outlines how to use the IF with AND functions in Excel
Over 1.8 million professionals use CFI to learn accounting, financial analysis, modeling and more. Start with a free account to explore 20+ always-free courses and hundreds of finance templates and cheat sheets.
In Excel, you can combine IF with AND functions to return a value based on two different numbers. It can be very useful when performing financial modeling and when you are creating conditional situations. In this article, learn how to build an IF statement between two numbers so you can easily answer the problem you’re trying to solve.
For example, if you are looking for a formula that will go into cell B2 and, if the number is between 100 and 999, then the result will be 100. Otherwise, if it is outside that range, then the result will be zero.
You don’t have to limit the resulting output from the model to only numbers. You can also use text, as shown in the example below. This time, instead of producing 100 or 0 as the result, Excel can display YES or NO to show if the argument is true or false.
More Excel Tutorials
Thank you for reading this guide to understanding how to use the IF function with the AND function in Excel to know if a number is between two other numbers. To keep learning and developing your career as a financial analyst, these additional CFI resources will help you on your way:
Take your learning and productivity to the next level with our Premium Templates.
Upgrading to a paid membership gives you access to our extensive collection of plug-and-play Templates designed to power your performance—as well as CFI's full course catalog and accredited Certification Programs.
Already have a Self-Study or Full-Immersion membership? Log in
Access Exclusive Templates
Gain unlimited access to more than 250 productivity Templates, CFI's full course catalog and accredited Certification Programs, hundreds of resources, expert reviews and support, the chance to work with real-world finance and research tools, and more.