+ Reply to Thread
Results 1 to 5 of 5

Help on large IF,AND,OR statement

  1. #1
    Registered User
    Join Date
    11-15-2017
    Location
    England
    MS-Off Ver
    2016
    Posts
    10

    Help on large IF,AND,OR statement

    Can anyone tell me why this IF statement isn't working?
    I need it to only work when there is specifically "st marys house" in the B125 field and one of the following from the H125 field.

    IF(B125="st marys house"(and(or,H125="Half Day (am)",H125="Half Day (pm)",H125="1.5 Hours",H125="1 Hour",H125="2 Hours")),(E125+2)*2.6," ")

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Help on large IF,AND,OR statement

    Maybe this works
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-15-2017
    Location
    England
    MS-Off Ver
    2016
    Posts
    10
    Still giving an error
    Last edited by AliGW; 11-15-2017 at 08:14 AM. Reason: Unnecessary quotation removed.

  4. #4
    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,147

    Re: Help on large IF,AND,OR statement

    PaulM100 works for me: what is error? Double check you data (leading/trailing blanks)

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Help on large IF,AND,OR statement

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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. Help if IF/OR with a large nested IF statement
    By RickMcc in forum Excel General
    Replies: 1
    Last Post: 07-11-2017, 06:26 PM
  2. [SOLVED] LARGE statement
    By PaulGSmith7 in forum Excel General
    Replies: 6
    Last Post: 03-23-2017, 08:40 PM
  3. Very large if statement
    By RebeccaEllis in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-19-2012, 05:56 AM
  4. [SOLVED] Large If((And Statement with Dates
    By berger01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2011, 10:05 AM
  5. Large IF statement formula
    By Rachel716 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-19-2011, 02:09 PM
  6. LARGE with IF Statement?
    By aeslabby in forum Excel General
    Replies: 12
    Last Post: 05-05-2009, 11:26 AM
  7. [SOLVED] help with a large IF statement.
    By L.White in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-03-2005, 10:05 AM

Tags for this Thread

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