+ Reply to Thread
Results 1 to 4 of 4

IF Function - formula creation

  1. #1
    emily's excel
    Guest

    IF Function - formula creation

    I am trying to do a formula that will pull a value from a cell if two
    conditions are present. I have created IF(AND(D9='X'),(F9='R'),AB9)
    I am getting TRUE text....I want the value in AB9 ( 36) to appear in cell
    Any suggestions?

  2. #2
    Niek Otten
    Guest

    Re: IF Function - formula creation

    You need to specify what the cell should be if the conditions are not met.
    Also the brackets are in the wrong place and the single quotes should be
    double ones.
    If it has to blank, use

    IF(AND(D9="X",F9="R"),AB9,"")

    --
    Kind regards,

    Niek Otten

    "emily's excel" <emily's excel@discussions.microsoft.com> wrote in message
    news:690F187E-655C-456D-AEF0-EEEA26498568@microsoft.com...
    >I am trying to do a formula that will pull a value from a cell if two
    > conditions are present. I have created IF(AND(D9='X'),(F9='R'),AB9)
    > I am getting TRUE text....I want the value in AB9 ( 36) to appear in cell
    > Any suggestions?




  3. #3
    Gary Keramidas
    Guest

    Re: IF Function - formula creation

    try this

    =IF(AND(D9="X",F9="R"),AB9,"")

    --


    Gary


    "emily's excel" <emily's excel@discussions.microsoft.com> wrote in message
    news:690F187E-655C-456D-AEF0-EEEA26498568@microsoft.com...
    >I am trying to do a formula that will pull a value from a cell if two
    > conditions are present. I have created IF(AND(D9='X'),(F9='R'),AB9)
    > I am getting TRUE text....I want the value in AB9 ( 36) to appear in cell
    > Any suggestions?




  4. #4
    Datasort
    Guest

    RE: IF Function - formula creation

    The "and" function is missing a set of parens. Your formula should read:

    IF(AND((D9='X'),(F9='R')),AB9)

    I also recommend the you complete the else part of the if statement:

    IF(AND((D9='X'),(F9='R')),AB9,0)

    --
    Please let the group know if this answered your question.


    Stewart Rogers
    DataSort Software, L.C.


    "emily's excel" wrote:

    > I am trying to do a formula that will pull a value from a cell if two
    > conditions are present. I have created IF(AND(D9='X'),(F9='R'),AB9)
    > I am getting TRUE text....I want the value in AB9 ( 36) to appear in cell
    > Any suggestions?


+ 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