+ Reply to Thread
Results 1 to 4 of 4

If And & Or Formula

Hybrid View

lasc If And & Or Formula 09-15-2020, 06:39 PM
TMS Re: If And & Or Formula 09-15-2020, 06:49 PM
lasc Re: If And & Or Formula 09-16-2020, 01:40 PM
TMS Re: If And & Or Formula 09-16-2020, 03:26 PM
  1. #1
    Registered User
    Join Date
    08-13-2019
    Location
    Louisiana
    MS-Off Ver
    excel
    Posts
    50

    If And & Or Formula

    What is wrong with this formula? The first if statement (in blue) works by itself. But when the second if statement (in red) is added, I get an error message that says "too many arguments". The second if statement works by itself as well. Why do they not work in a nested formula? I have many lengthy formulas that contain many more arguments than this.

    =IF(AND(B32="",B37="",AH18=1,OR(L43="",M43="")),"BSW (beside door) - Hand Calc Length→",if(B43="",OR(L43>0,M43>0)),"Delete Length Measurements→","")

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,135

    Re: If And & Or Formula

    Maybe
    Formula: copy to clipboard
    ... IF(AND(B43="", OR(L43>0,M43>0)),"Delete Length Measurements→","")
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-13-2019
    Location
    Louisiana
    MS-Off Ver
    excel
    Posts
    50

    Re: If And & Or Formula

    Thank you TMS! Worked like a charm!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,135

    Re: If And & Or Formula

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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