+ Reply to Thread
Results 1 to 5 of 5

If Function - Multiple Arguements?

  1. #1
    Registered User
    Join Date
    07-12-2004
    Posts
    32

    If Function - Multiple Arguements?

    Is it possible to write the IF FUNCTION with more than 1 arguement e.g.

    If A1=zzz and A2=yyy then enter True/False in B2

    Or:

    If A1=zzz and A2=yyy and A3=xxx then enter True/False in B3

    Many thanks

    Andy

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You don't even need an IF function for that

    Try this in B3

    =AND(A1=zzz,A2=yyy,A3=xxx)

  3. #3
    Niek Otten
    Guest

    Re: If Function - Multiple Arguements?

    In B3:

    =AND(A1="zzz",A2="yyy",A3="xxx"

    --
    Kind regards,

    Niek Otten

    "andyp161" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Is it possible to write the IF FUNCTION with more than 1 arguement e.g.
    >
    > If A1=zzz and A2=yyy then enter True/False in B2
    >
    > Or:
    >
    > If A1=zzz and A2=yyy and A3=xxx then enter True/False in B3
    >
    > Many thanks
    >
    > Andy
    >
    >
    > --
    > andyp161
    > ------------------------------------------------------------------------
    > andyp161's Profile:
    > http://www.excelforum.com/member.php...o&userid=11654
    > View this thread: http://www.excelforum.com/showthread...hreadid=507138
    >




  4. #4
    Max
    Guest

    Re: If Function - Multiple Arguements?

    "andyp161" wrote:
    > Is it possible to write the IF FUNCTION with more than 1 arguement
    > e.g. If A1=zzz and A2=yyy then enter True/False in B2
    > Or:
    > If A1=zzz and A2=yyy and A3=xxx then enter True/False in B3


    Just use AND(..) within the IF, something like:
    =IF(AND(A1="zzz",A2="yyy"),"Yes","No")
    =IF(AND(A1="zzz",A2="yyy",A3="xxx"),"Yes","No")
    --
    Max
    Singapore
    http://savefile.com/projects/236895
    xdemechanik
    ---



  5. #5
    Arvi Laanemets
    Guest

    Re: If Function - Multiple Arguements?

    Hi

    =AND(A1="zzz",A2="yyy")
    =AND(A1="zzz",A2="yyy"",A3="zzz")
    You have to write the passende formula into according cell (B2 or B3)


    --
    Arvi Laanemets
    ( My real mail address: arvi.laanemets<at>tarkon.ee )


    "andyp161" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Is it possible to write the IF FUNCTION with more than 1 arguement e.g.
    >
    > If A1=zzz and A2=yyy then enter True/False in B2
    >
    > Or:
    >
    > If A1=zzz and A2=yyy and A3=xxx then enter True/False in B3
    >
    > Many thanks
    >
    > Andy
    >
    >
    > --
    > andyp161
    > ------------------------------------------------------------------------
    > andyp161's Profile:
    > http://www.excelforum.com/member.php...o&userid=11654
    > View this thread: http://www.excelforum.com/showthread...hreadid=507138
    >




+ 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