Back

About MrExcel
Consulting Services
Learn Excel Resources
Challenge of the Month
MrExcel Seminars

Message Board

MrExcel Store
Podcast
Search
Contact
Home

 

 

Past Tip of the Day

 

Chris asks "I am using the IF function, but I want the Value if True and the Value if False to be applied to a cell different from the cell that contains the actual IF function. For example, I tried someting like this:

Cell A1 reads the following: =IF(A2=5,A3="YES",A3="NO")

However, Excel doesn' t put any data in cell A3. Instead it puts "FALSE" in cell A! regardless of what is in cell A2."

Functions can only return a value, they can not modify their "environment". So, the "workaround" for this problem would be to put this formula:

=IF(A2=5,"YES","NO")

in A3 instead of A1.

By Juan Pablo Gonzalez on 27-Feb-2002

MrExcel.com Consulting can be hired to implement this concept, or many other cool applications, with your data.

MrExcel.com provides examples of Visual Basic procedures for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The Visual Basic procedures on this web site are provided "as is" and we do not guarantee that they can be used in all situations.

 

Excel is a registered trademark of the Microsoft® Corporation.

All contents Copyright 1998-2008 by MrExcel Consulting.