+ Reply to Thread
Results 1 to 5 of 5

Not sure where to put OR in an IF/AND/OR Formula

  1. #1
    Forum Contributor
    Join Date
    09-06-2011
    Location
    manchester england
    MS-Off Ver
    Office 365
    Posts
    307

    Not sure where to put OR in an IF/AND/OR Formula

    I have the below formula that works fine, but I know want to add an OR statement for "Vibro" along with the "Piled"

    =IF(AND(D23="Piled",$F$5="yes"),(((('Plot Measure'!X23+4)*('Plot Measure'!Y23+4))*'Construction Details'!P23)*$F$9),0)

    So it would be "Vibro" on D23 and also $F$5 would still need to be a "Yes".

    If anyone could help please.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,741

    Re: Not sure where to put OR in an IF/AND/OR Formula

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    09-06-2011
    Location
    manchester england
    MS-Off Ver
    Office 365
    Posts
    307

    Re: Not sure where to put OR in an IF/AND/OR Formula

    Thanks for that, yes it works, just needed to ad " after vibro.

    Thanks for the help.

  4. #4
    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: Not sure where to put OR in an IF/AND/OR Formula

    Hi

    =IF(AND(OR(D23="Piled",D23="Vibro"),$F$5="yes"),'Plot Measure'!X23+4*'Plot Measure'!Y23+4*'Construction Details'!P23*$F$9,0)

    Please remember next time to upload the actual workbook so that we don't have to recreate what you have to test a solution.

    You can also remove some of the (((
    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.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,741

    Re: Not sure where to put OR in an IF/AND/OR Formula

    Thanks for the help.
    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. Replies: 3
    Last Post: 03-24-2020, 07:27 AM
  2. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  3. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  4. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  5. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  6. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  7. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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