+ Reply to Thread
Results 1 to 7 of 7

IF Function

  1. #1
    Registered User
    Join Date
    02-02-2005
    Posts
    51

    Post IF Function

    What is wrong with this formula:

    =IF((I2>=500)*AND(S2>=15)*AND(N2="CPSTART")*OR(N2="CPRESUM"),1,0)

    THANKS

  2. #2
    Gary L Brown
    Guest

    Re: IF Function

    =IF(or(and(I2>=500,S2>=15,N2="CPSTART"),N2="CPRESUM"),1,0)

    HTH,
    --
    Gary Brown
    gary_brown@ge_NOSPAM.com
    If this post was helpful, please click the ''Yes'' button next to ''Was this
    Post Helpfull to you?''.


    "Alma" wrote:

    >
    > What is wrong with this formula:
    >
    > =IF((I2>=500)*AND(S2>=15)*AND(N2="CPSTART")*OR(N2="CPRESUM"),1,0)
    >
    > THANKS
    >
    >
    > --
    > Alma
    > ------------------------------------------------------------------------
    > Alma's Profile: http://www.excelforum.com/member.php...o&userid=19335
    > View this thread: http://www.excelforum.com/showthread...hreadid=506849
    >
    >


  3. #3
    Registered User
    Join Date
    02-02-2005
    Posts
    51

    If Function

    Not working. Formula is showing 1 when CPRESUM is less than 500.
    CPSTART is fine.
    Thanks

  4. #4
    Gary L Brown
    Guest

    Re: IF Function

    Maybe putting it in words would help to figure out what you're trying to
    accomplish. That said, try...
    =IF(and(I2>=500,S2>=15,or(N2="CPSTART",N2="CPRESUM")),1,0)

    HTH,
    --
    Gary Brown
    gary_brown@ge_NOSPAM.com
    If this post was helpful, please click the ''Yes'' button next to ''Was this
    Post Helpfull to you?''.


    "Alma" wrote:

    >
    > Not working. Formula is showing 1 when CPRESUM is less than 500.
    > CPSTART is fine.
    > Thanks
    >
    >
    > --
    > Alma
    > ------------------------------------------------------------------------
    > Alma's Profile: http://www.excelforum.com/member.php...o&userid=19335
    > View this thread: http://www.excelforum.com/showthread...hreadid=506849
    >
    >


  5. #5
    Registered User
    Join Date
    02-02-2005
    Posts
    51

    If Function

    I am trying to count all the lines that have
    column I - balance > $ 500 AND
    column S- are > 15 days old AND
    column N - have CPSTART OR CPRESUM action code .

    Thank you

  6. #6
    Gary L Brown
    Guest

    Re: IF Function

    :O> Great!
    The formula I gave you yesterday should work just fine...
    =IF(and(I2>=500,S2>=15,or(N2="CPSTART",N2="CPRESUM")),1,0)

    The only issues are, do you want "Greater than or Equal To" or just "Greater
    than"?
    For just "Greater than", change the above formula to...
    =IF(and(I2>500,S2>15,or(N2="CPSTART",N2="CPRESUM")),1,0)

    Good Luck and Hope this helped :O>,
    --
    Gary Brown
    gary_brown@ge_NOSPAM.com
    If this post was helpful, please click the ''Yes'' button next to ''Was this
    Post Helpfull to you?''.


    "Alma" wrote:

    >
    > I am trying to count all the lines that have
    > column I - balance > $ 500 AND
    > column S- are > 15 days old AND
    > column N - have CPSTART OR CPRESUM action code .
    >
    > Thank you
    >
    >
    > --
    > Alma
    > ------------------------------------------------------------------------
    > Alma's Profile: http://www.excelforum.com/member.php...o&userid=19335
    > View this thread: http://www.excelforum.com/showthread...hreadid=506849
    >
    >


  7. #7
    Registered User
    Join Date
    02-02-2005
    Posts
    51

    Smile

    It works! Thank you so much for your help Gary!

+ 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