+ Reply to Thread
Results 1 to 4 of 4

Combining IF, OR, AND statements together

  1. #1
    Registered User
    Join Date
    01-06-2015
    Location
    Colorado
    MS-Off Ver
    Excel 2007
    Posts
    5

    Combining IF, OR, AND statements together

    I'm trying to combine all 3 statements into one formula. My logic is, IF date = 2000 in cells H, I, J return $0. AND if Project Manager = Smith, return value in cell F2

    Here is my IF and OR statement combined:

    =IF(OR($H7=2000,0,OR($I7=2000,0,OR($J7=2000,0))),0,$F7)

    Now I want to add in the following formula:

    =IF(L7="Smith",$F7,0)

    How can I combine the two?

    Thank you!

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Combining IF, OR, AND statements together

    You have two separate conditions here. The first (OR statements, which could be condensed to =IF(OR(H7=2000,I7=2000,J7=2000),0,F7)) has zero as the true value and F7 as the false value. The second formula has this switched, with F7 as the true value, and zero as the false.

    You could try something like this:

    Please Login or Register  to view this content.
    but if the first statement is returned false, and the second as well, this could produce an error since the first statement should have returned zero instead of F7.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Registered User
    Join Date
    01-06-2015
    Location
    Colorado
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Combining IF, OR, AND statements together

    This worked wonderfully! Thank you so much for the quick response and more simple formula. I really appreciate it!

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Combining IF, OR, AND statements together

    =IF(OR(H7=2000,I7=2000,J7=2000,L7<>"Smith"),0,F7)
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ 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. [SOLVED] combining several IF statements
    By bwalling6 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2013, 01:59 PM
  2. Combining IF Statements
    By Dork in forum Excel General
    Replies: 3
    Last Post: 04-18-2011, 06:46 PM
  3. Combining two IF's Statements
    By whites242 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-07-2011, 11:37 AM
  4. combining two different IF statements
    By Mark_Delaware in forum Excel General
    Replies: 3
    Last Post: 11-21-2010, 09:36 PM
  5. Combining if statements
    By SANJ in forum Excel General
    Replies: 3
    Last Post: 03-04-2010, 09:31 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