+ Reply to Thread
Results 1 to 6 of 6

Simple AND formula

  1. #1
    Registered User
    Join Date
    12-12-2005
    Posts
    15

    Simple AND formula

    Hi Guys

    I know this is simple but can somebody tell me how the below formula should be written

    =IF(C2="PARENT" AND B2="B",90)

    I know the "AND" part in the middle is incorrect

    Thanks inadvance

    Digital

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    =if(and(c2="parent",b2="b"),90,"")

  3. #3
    Toppers
    Guest

    RE: Simple AND formula

    =IF(AND(C2="PARENT", B2="B"),90)

    .... and if false?

    =IF(AND(C2="PARENT", B2="B"),90,???)

    HTH

    "digital21st" wrote:

    >
    > Hi Guys
    >
    > I know this is simple but can somebody tell me how the below formula
    > should be written
    >
    > =IF(C2="PARENT" AND B2="B",90)
    >
    > I know the "AND" part in the middle is incorrect
    >
    > Thanks inadvance
    >
    > Digital
    >
    >
    > --
    > digital21st
    > ------------------------------------------------------------------------
    > digital21st's Profile: http://www.excelforum.com/member.php...o&userid=29575
    > View this thread: http://www.excelforum.com/showthread...hreadid=562765
    >
    >


  4. #4
    Registered User
    Join Date
    12-12-2005
    Posts
    15
    Thanks for that VBA Noob

    Just expanding on that:

    Can i add two more conditions to the formula.

    ie.

    if

    =if(and(c2="parent",b2="b"),90,"") if this is fasle try...

    =if(and(c2="parent",b2="a"),120,"") ...if this is not true try...

    =if(and(c2="child",b2="b"),60,"") and if this is not true try...

    =if(and(c2="child",b2="a"),80,"")

    So basically it is trying the three formulas on the same field.

    thanks in advance

    Digital

  5. #5
    Toppers
    Guest

    Re: Simple AND formula

    yes .....


    =if(and(c2="parent",b2="b"),90,if(and(c2="parent",b2="a"),120,if(and(c2="child",b2="b"),60,if(and(c2="child",b2="a"),80,""))))


    "digital21st" wrote:

    >
    > Thanks for that VBA Noob
    >
    > Just expanding on that:
    >
    > Can i add two more conditions to the formula.
    >
    > ie.
    >
    > if
    >
    > =if(and(c2="parent",b2="b"),90,"") if this is fasle try...
    >
    > =if(and(c2="parent",b2="a"),120,"") ...if this is not true try...
    >
    > =if(and(c2="child",b2="b"),60,"") and if this is not true try...
    >
    > =if(and(c2="child",b2="a"),80,"")
    >
    > So basically it is trying the three formulas on the same field.
    >
    > thanks in advance
    >
    > Digital
    >
    >
    > --
    > digital21st
    > ------------------------------------------------------------------------
    > digital21st's Profile: http://www.excelforum.com/member.php...o&userid=29575
    > View this thread: http://www.excelforum.com/showthread...hreadid=562765
    >
    >


  6. #6
    Registered User
    Join Date
    12-12-2005
    Posts
    15
    Thanks Toppers

+ 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