+ Reply to Thread
Results 1 to 6 of 6

Combining IF Statements

  1. #1
    Registered User
    Join Date
    09-17-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2010
    Posts
    34

    Combining IF Statements

    Hello,

    I'd like to combine these two IF statements:

    =IF($F$5="Los Angeles",(INDEX(Finders!B24:I43,MATCH(C5,Finders!A24:A43,0),MATCH(D5,Finders!B23:I23,0))))

    =IF($F$5="Chicago",(INDEX(Finders!B2:I21,MATCH(C5,Finders!A2:A21,0),MATCH(D5,Finders!B1:I1,0))))

    I'm simply trying to get a different result in a cell, based on what text is in a cell.

    Thanks!


    Bob

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Combining IF Statements

    =IF(F5="","",IF($F$5="Los Angeles",(INDEX(finders!B24:I43,MATCH(C5,finders!A24:A43,0),MATCH(D5,finders!B23:I23,0)),IF($F$5="Chicago",(INDEX(finders!B2:I21,MATCH(C5,finders!A2:A21,0),MATCH(D5,finders!B1:I1,0)))))))
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Forum Contributor
    Join Date
    10-01-2013
    Location
    Cameron, Mo
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Combining IF Statements

    I am not sure about your context but adding the "IF(OR(" you should be able to combine these.

    =IF(or($F$5="Los Angeles,$F$5="Chicago),IF($F$5="Los Angeles",(INDEX(Finders!B24:I43,MATCH(C5,Finders!A24:A43,0),MATCH(D5,Finders!B23:I23,0)))),IF($F$5="Chicago",(INDEX(Finders!B2:I21,MATCH(C5,Finders!A2:A21,0),MATCH(D5,Finders!B1:I1,0)))))

  4. #4
    Registered User
    Join Date
    09-17-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Combining IF Statements

    Hello!

    Thanks for the replies.

    The first suggestion gave me nothing different than I had when separating the two IF statements.

    The second suggestion returned a "#VALUE" error.

    Bob
    Last edited by Bob Lankin; 10-05-2013 at 04:51 PM.

  5. #5
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Combining IF Statements

    Try this
    =IF(F5="","",IF($F$5="Los Angeles",INDEX(Finders!B24:I43,MATCH(C5,Finders!A24:A43,0),MATCH(D5,Finders!B23:I23,0)),IF($F$5="Chicago",INDEX(Finders!B2:I21,MATCH(C5,Finders!A2:A21,0),MATCH(D5,Finders!B1:I1,0)))))

  6. #6
    Registered User
    Join Date
    09-17-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Combining IF Statements

    Dat worked!

    Thanks very much,


    Alan

+ 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 IF statements
    By icrock83 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-27-2012, 11:20 AM
  2. [SOLVED] Combining 3 IF/AND statements with OR
    By lsargent in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-25-2012, 01:07 AM
  3. Combining IF Statements with AND OR
    By MKuehner in forum Excel General
    Replies: 1
    Last Post: 05-03-2012, 02:36 PM
  4. 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