+ Reply to Thread
Results 1 to 6 of 6

How do I combine two statements in Excel?

  1. #1
    Forum Contributor
    Join Date
    09-01-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, Excel 2013, Excel 2016
    Posts
    115

    How do I combine two statements in Excel?

    I have the below two excel formulas that I am trying to combine into one statement.


    HTML Code: 
    HTML Code: 
    When I tried I am getting an error that I am making too many arguments.
    I am still relatively new at this and any help would be greatly appreciated.

    I tried


    HTML Code: 
    But the results are not what I am looking for.

    Basically the end result of what I am looking for is if Burnaby is present in column I then either return SHOT20 or SHOT10, if not then continue with the rest of the statement.

    Thanks again in advance for any assistance you can provide.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: How do I combine two statements in Excel?

    Give this a shot, let me know how it goes...
    =IF(T1="shift",IF(AND(U1>=201,I1="Burnaby"),"shot20",""),IF(AND(T1="shifttp",U1<480),"shot10","shot15"))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    09-01-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, Excel 2013, Excel 2016
    Posts
    115

    Re: How do I combine two statements in Excel?

    Thanks for you assistance FDibbins but it doesn't produce the expected results.

    The results I got when I changed U1 to 200 and I1 has Burnaby and T1 has SHIFT the results were just a blank cell when I was expecting a SHOT10 results.

    What I am looking to accomplish is if Column I has Burnaby then the first condition should be check and the results can only be SHOT20 or SHOT10 and nothing else. If Burnaby is not present then the results can only be SHOT10 or SHOT15.

    Is something like this possible?

    Thanks again for your help

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: How do I combine two statements in Excel?

    I thought I had a few things mixed around...
    =IF(I1="burnaby",IF(AND(T1="shift",U1>=210),"shot20","shot10"),IF(AND(T1="shiftfp",U1<480),"shot10","shot15"))

  5. #5
    Forum Contributor
    Join Date
    09-01-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, Excel 2013, Excel 2016
    Posts
    115

    Re: How do I combine two statements in Excel?

    Thanks FDibbins,

    That seems to have done the trick - thanks again for the help.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: How do I combine two statements in Excel?

    Great 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. Four IF statements to combine
    By ABSTRAKTUS in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2014, 03:43 PM
  2. [SOLVED] Need help to combine to VBA Statements
    By SamCV in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-06-2013, 02:01 PM
  3. Need to combine 20 IF statements
    By CatMac in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-06-2013, 04:58 AM
  4. [SOLVED] Combine 3 IF Statements
    By kilipo in forum Excel General
    Replies: 2
    Last Post: 04-28-2012, 07:26 AM
  5. Combine two IF statements
    By dpask in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-07-2011, 04:41 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