+ Reply to Thread
Results 1 to 11 of 11

Combining multiple IF statements

  1. #1
    Registered User
    Join Date
    06-08-2018
    Location
    Louisiana, USA
    MS-Off Ver
    2016
    Posts
    6

    Combining multiple IF statements

    Can someone please assist with an IF statement?
    I have 2 separate IF statements I would like to combine into a cell:
    =IF(J4>0,"CIRCULATE","")
    =IF(K4>0, "DRILL","")
    So basically I want cell L4 to remain empty unless J4>0 which then i would want it to read "CIRCULATE" and if K4>0 then i would want cell L4 to read "DRILL"
    Cells J4 and K4 will never have values greater than 0 simultaneously.

    Thanks for any assistance.
    Last edited by 6StringJazzer; 06-09-2018 at 08:59 AM. Reason: Moved from Hello..Introduce yourself

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,969

    Re: Combining multiple IF statements

    Try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    06-08-2018
    Location
    Louisiana, USA
    MS-Off Ver
    2016
    Posts
    6

    Re: Combining multiple IF statements

    That works for the > than values but I need that cell to be empty when no data is entered.. It is defaulting to "DRILL" when all cells are null

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,969

    Re: Combining multiple IF statements

    What do you mean "when all cells are null"? The behavior I see in my test is that

    J4 > 0, result is CIRCULATE (regardless of what is in K4)
    J4 is empty or <=0, and K4>0, result is DRILL
    All other combinations, including empty cells, give a blank result.

    Attach your file for testing. The paper clip icon does not work for attachments. Instead, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-08-2018
    Location
    Louisiana, USA
    MS-Off Ver
    2016
    Posts
    6

    Re: Combining multiple IF statements

    Due to file sharing securities at my company, I am unable to share the actual file.

    2018-06-09_9-23-41.png

    2018-06-09_10-05-29.png
    Last edited by rledoux06; 06-09-2018 at 11:06 AM.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,969

    Re: Combining multiple IF statements

    You are showing that column L has Data Validation with a dropdown list. What is your validation rule? Data validation with a list doesn't play nicely when you put a formula into the cell. It is intended to validate manual data entry.

  7. #7
    Registered User
    Join Date
    06-08-2018
    Location
    Louisiana, USA
    MS-Off Ver
    2016
    Posts
    6

    Re: Combining multiple IF statements

    I removed the data validation all together to see if it would work and it still displays "Drill" when nothing else is entered...

  8. #8
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Combining multiple IF statements

    =if(j4>0,"circulate","") & if(k4>0, "drill","")
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  9. #9
    Registered User
    Join Date
    06-08-2018
    Location
    Louisiana, USA
    MS-Off Ver
    2016
    Posts
    6

    Re: Combining multiple IF statements

    Thanks everyone for your help, but this one: =if(j4>0,"circulate","") & if(k4>0, "drill","") is still defaulting it to "drill" even though other the criteria required is not met.

  10. #10
    Registered User
    Join Date
    06-08-2018
    Location
    Louisiana, USA
    MS-Off Ver
    2016
    Posts
    6

    Re: Combining multiple IF statements

    I attempted these above formulas in a blank sheet and its working.. I believe it is something in one of the cells.. I will attempt to find the bug.. Again thanks for all of your help!

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,969

    Re: Combining multiple IF statements

    Quote Originally Posted by mehmetcik View Post
    =if(j4>0,"circulate","") & if(k4>0, "drill","")
    If J4=1 and K4=1, you will get "CIRCULATEDRILL" which I suspect is not what is wanted.

    Quote Originally Posted by rledoux06 View Post
    I attempted these above formulas in a blank sheet and its working.. I believe it is something in one of the cells.. I will attempt to find the bug.. Again thanks for all of your help!
    What is in J4 and K4? If these are formulas, perhaps the answer is there--can you share the formulas?

+ 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. Combining Multiple IF Statements
    By jkfoxworth in forum Excel General
    Replies: 2
    Last Post: 07-01-2015, 09:17 PM
  2. [SOLVED] Combining Multiple If Statements
    By Ash248 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 09-07-2013, 01:47 PM
  3. Combining multiple IF statements
    By Jaspal in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-30-2013, 11:41 AM
  4. Replies: 3
    Last Post: 07-25-2013, 08:25 AM
  5. [SOLVED] Combining multiple IF THEN statements
    By ktbb0312 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-03-2013, 02:04 AM
  6. [SOLVED] Combining together multiple IF statements
    By jupitar in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-20-2012, 08:51 PM
  7. Combining Multiple IF Statements
    By prefcomm in forum Excel General
    Replies: 2
    Last Post: 11-11-2009, 11:35 PM

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