+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : multiple actions in IF statement when true

  1. #1
    Registered User
    Join Date
    05-13-2011
    Location
    Birmingham
    MS-Off Ver
    Excel 2007
    Posts
    78

    multiple actions in IF statement when true

    Hi,

    I want to perform two different actions when an IF statement true like if statement true then I have to compute two values and insert "TRUE" in another column.

    Any help would be appreciated.

    thanks,
    Last edited by nlm; 10-13-2011 at 07:02 AM.

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: multiple actions in IF statement when true

    Sorry. Could you elaborate further because I can't understand what you want to do?

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    05-13-2011
    Location
    Birmingham
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: multiple actions in IF statement when true

    A B C D
    1 14 TRUE 14
    2 4 TRUE 8

    My condition is if cell A content is less than cell B, then it display TRUE in C and multiply both numbers in cell D.

    Hope I make it clear.

    Thanks.

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: multiple actions in IF statement when true

    For the first part (Column C), there are two ways you can go about this. If you only want True and False then:

    Please Login or Register  to view this content.
    This will return True or False

    or

    Please Login or Register  to view this content.
    As for Column D, you didn't say what to do if the argument is false so I will assume that you want a blank.

    Please Login or Register  to view this content.
    Hope this helps.

    abousetta

  5. #5
    Registered User
    Join Date
    05-13-2011
    Location
    Birmingham
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: multiple actions in IF statement when true

    Thanks abousetta!

    Actually i was thinking of doing multiple tasks with one IF statement which I think not possible.

    Anywayz thanks for your help!

  6. #6
    Forum Contributor
    Join Date
    08-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    110

    Re: multiple actions in IF statement when true

    Quote Originally Posted by nlm View Post
    Thanks abousetta!

    Actually i was thinking of doing multiple tasks with one IF statement which I think not possible.

    Anywayz thanks for your help!
    You could just put the formula for cell D in cell C

    Please Login or Register  to view this content.
    Then, instead of "", put "FALSE" instead.
    You wont get your 'TRUE' reader, but, if it's good, you will get the correct figure in C, and if not, it will report FALSE, or whatever you want it to say.

  7. #7
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: multiple actions in IF statement when true

    Glad I could help. If you are satisifed with the responses. Please mark the thread as Solved.

    Good luck.

    abousetta

+ 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