+ Reply to Thread
Results 1 to 8 of 8

AND Function

  1. #1
    Registered User
    Join Date
    05-12-2010
    Location
    Riebeek, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    11

    AND Function

    I tried to get a value in a cell that depend on the info in two cells in a worksheet but can't get it to work.

    =IF('Alg. Inligting & DO'!I10="Mutaul & Federal" AND 'Alg. Inligting & DO'!D40="Ja",0,6)

  2. #2
    Forum Contributor meyero90's Avatar
    Join Date
    03-24-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    202

    Re: AND Fucntion

    hi,
    Can you send it in an attachment?

  3. #3
    Forum Contributor wamp's Avatar
    Join Date
    11-10-2008
    Location
    Norway
    MS-Off Ver
    97, 2000 & 2003 (diff. workstations)
    Posts
    184

    Re: AND Function

    Set the "and" statement first within the if-statement.
    I would assume your code should be like this:
    =IF(AND('Alg. Inligting & DO'!I10="Mutaul & Federal",'Alg. Inligting & DO'!D40="Ja"),0,6)









    _______________________________________________
    Hope this helps

    If you need any further information, please feel free to ask further

    However

    If this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody!
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of their post to show your appreciation.
    Last edited by wamp; 05-12-2010 at 10:23 AM. Reason: corrected the code

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: AND Function

    Try this

    =IF(AND('Alg. Inligting & DO'!I10="Mutaul & Federal", 'Alg. Inligting & DO'!D40="Ja"),0,6)

    Cheers
    Last edited by Marcol; 05-12-2010 at 10:22 AM.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: AND Function

    Hi,

    That And structure is the way Lotus 123 handled it. Try instead:

    Please Login or Register  to view this content.
    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Forum Contributor wamp's Avatar
    Join Date
    11-10-2008
    Location
    Norway
    MS-Off Ver
    97, 2000 & 2003 (diff. workstations)
    Posts
    184

    Re: AND Function

    [removed - mild dyslexia, reading error :-p]

  7. #7
    Registered User
    Join Date
    05-12-2010
    Location
    Riebeek, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: AND Function

    Thanx wamp and Marcol it works great. The quickest reply I ever experience. Thanx guys

  8. #8
    Registered User
    Join Date
    05-12-2010
    Location
    Riebeek, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: AND Function

    Thanx Richard. Must say it's along time ago when I did some programming in Excel. Thanx alot for the reply

+ 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