+ Reply to Thread
Results 1 to 8 of 8

multiple value_if_true

  1. #1
    Registered User
    Join Date
    11-28-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    6

    multiple value_if_true

    I am using an if statement and in the value_if_true i would like two conditions to occur not just one...
    =IF(ISTEXT(B808),CELL("address",B808)[second affect],99))

    how do i add the second affect into the formula? I have tried various punctuation marks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: multiple value_if_true

    =IF(ISTEXT(B808),CELL("address",B808)&"[second affect]",99))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    11-28-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: multiple value_if_true

    That doesnt work as I am not trying to combine results into one cell but trying to have the second affect cause a change in an entirely different cell ... like address(806,25)=cell("row",b808)+1...
    =IF(ISTEXT(B808),CELL("address",B808[address(806,25)=cell("row",b808)+1],99))

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: multiple value_if_true

    seems strange, what exactly are you trying to achieve

  5. #5
    Registered User
    Join Date
    11-28-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: multiple value_if_true

    trying to post the target cell address in one cell and have another cell update the value of a variable that is used for other claculations based on the result of the initial istext call being true

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: multiple value_if_true

    you cant "push" the results to another cell the other cell will have to refer to the one the formula is in
    however if the result of your formula in cell a1 is say a cell reference eg "$c$99" then say in b1 you can use =indirect(a1) that would be the same as =c99

  7. #7
    Registered User
    Join Date
    11-28-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: multiple value_if_true

    Got thanks

  8. #8
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: multiple value_if_true

    Hi Tpmoss1,

    Is this what you mean? Use the AND/OR function to separate 2 different conditions or you can use nested IFs...

    =IF(AND(ISTEXT(B808),[second affect]),CELL("address",B808),99))

    =IF(OR(ISTEXT(B808),[second affect]),CELL("address",B808),99))

    =IF(1st condition, TRUE, IF(2nd condition, TRUE, FALSE)) where the second IF statement is the FALSE part of the 1st condition
    =IF(1st condition, IF(2nd condition, TRUE, FALSE), FALSE) where the second IF statement is the TRUE part of the 1st condition (same as AND formula)

    Anyway, hopefully this will get you started...

    Let us know if you have more questions...

    Dennis

+ 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