+ Reply to Thread
Results 1 to 4 of 4

"AND" in a formula?

  1. #1
    Registered User
    Join Date
    01-18-2008
    Posts
    48

    "AND" in a formula?

    Hi,

    can someone please assist me so I get the syntax right for this formula. I know the "AND" is in the wrong spot and there are other issues as well. I want the cell with the formula to read "Buy" if L12>L16*1.025 AND L12<.90*L14

    This is the way I currently have it:

    =IF(L12>L16*1.025 And L12<.90*L14 "Buy", "")

    Thanks

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: "AND" in a formula?

    Try

    =IF(AND(L12>L16*1.025, L12<.90*L14), "Buy", "")

  3. #3
    Registered User
    Join Date
    01-18-2008
    Posts
    48

    Re: "AND" in a formula?

    That worked great! Thanks

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: "AND" in a formula?

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules.

    http://www.excelforum.com/excel-form...-forumula.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  2. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  3. [SOLVED] How to short my formula which is ="("&a1&","&a2&","&a3&","&a4&" end in "&a200&")
    By vengatvj in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-07-2013, 07:49 PM
  4. [SOLVED] Formula needed to display "Pass" or "Fail" if a column contains any values other than "yes
    By andreindy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2013, 05:49 PM
  5. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  6. Replies: 3
    Last Post: 08-28-2010, 09:31 AM
  7. [SOLVED] If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 AM

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