+ Reply to Thread
Results 1 to 3 of 3

Multiple Actions with an IF Statement

  1. #1
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Multiple Actions with an IF Statement

    Is there any way to have multiple actions when using an IF statement?

    I want to say, =IF(something is true,do this and do this,else do something else)

    Many thanks

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Multiple Actions with an IF Statement

    The IF statement will only affect the value in the cell it is in. Can you be more specific?
    For example, if the value in A1 is greater than the value in A2, then multiply the value in A2 times 10 and add 3. If not, return the value in A1 would look like this

    =IF(A1>A2, A2*10-3, A1)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Multiple Actions with an IF Statement

    Okay, I think I answered my own question using a nested IF!

    =IF(something is true,IF(someting is true,do this,and do this,""),else do something else)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1