+ Reply to Thread
Results 1 to 4 of 4

Proper "AND" & "OR" Syntax

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

    Proper "AND" & "OR" Syntax

    Hi, I am looking for the syntax for this:

    IF L20="Buy $3K” OR L23="Sell $3K” AND D23>D26*1.025 AND D23<D24 than “Close all”


    This is what I came up with and it is not working:

    =IF(OR(L20="Buy $3K”, L23="Sell $3K”, AND(D23>D26*1.025, D23<D24)), "Close all”, "")


    Can someone please help

    Thanks

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Need help using "AND" & "OR" Syntax

    This is just a guess from your description and sense of the formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

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

    Re: Need help using "AND" & "OR" Syntax

    That did it, thanks!

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Need help using "AND" & "OR" Syntax

    You're welcome. Thanks for the feedback.

+ 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. What is proper VBA Syntax?
    By JJGF in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2016, 05:48 AM
  2. [SOLVED] Is this proper Range syntax?
    By Destroy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2014, 03:06 PM
  3. Proper IF syntax when using in VBA
    By scott28 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2013, 06:25 AM
  4. [SOLVED] proper syntax
    By lundy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-10-2012, 01:44 PM
  5. Proper syntax for this
    By Barb Reinhardt in forum Excel General
    Replies: 1
    Last Post: 08-04-2006, 09:20 AM
  6. [SOLVED] Proper SQL Syntax - DAO
    By MSweetG222 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2006, 05:35 PM
  7. Is this proper syntax?
    By Shelby Haynes in forum Excel General
    Replies: 3
    Last Post: 05-10-2005, 05:06 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