Using Data Validation – The Trigger Technique

If you don’t know about data validation yet, I suggest you read the following document before getting familiar with this method.

http://www.contextures.com/xlDataVal01.html

Data validation is certainly one of the best tools to perform what-if analysis, along with sensitivity tables. There many types of sensitivity analysis that can be performed with data validation. These can be used alone or in combinations.

  • Triggers
  • Multipliers
  • Delays
  • Option lists
  • Multiple inputs scenarios

Today, I’m going to show you the simplest one, the “On / Off” trigger. In the following example, I will use it to turn on or off certain product lines in a financial statement. As mentioned in an earlier post on best practices, I suggest you clearly identify the trigger cells with dashed borders.

Before applying trigger

The first step is to set the data validation. Select the cells where you want to locate the triggers and click “Data Validation”.

In Excel 2003 you can find it in the Data Menu.
In Excel 2007, it is located in the Data Tools section of the Data Tab.

Selecting Data Validation

Select List in the first drop-down menu and enter “On, Off” in the Source section.

Setting Data Validation

You might also want to add indications to the user in the Input Message tab or control what happens when invalid data is entered in the Warning tab. In this case, the resulting drop-down menu is probably self-explanatory enough.

With that set, you only need to multiply the existing formula with the following:

…*IF(Switch Address="On",1,0)

Now, changing the switch on or off will automatically adjust the results

Result after applying trigger

This method could also be used to show some comments or text, or in conjunctions with conditional formats, highlight some cells.

For an example, see picture below:

Data Validation and Conditional Format to highlight cells

I used this formula in the resulting cell:

=IF(Switch Address="On","Light is On","")

The next picture shows you how I set the conditionnal format.

Conditional Format rule

Bookmark and Share
This entry was posted in Excel Functionality, Model Techniques and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Email updates

    Enter your email address:

  • Share this blog

    Bookmark and Share

  • Recent Posts

  • Recent Comments

  • Meta

  • RSS The Financial Modeler

SEO Powered by Platinum SEO from Techblissonline