+ Reply to Thread
Results 1 to 4 of 4

3 if statements in One cell

  1. #1
    Registered User
    Join Date
    12-02-2012
    Location
    Harrow
    MS-Off Ver
    Excel 2003
    Posts
    73

    3 if statements in One cell

    HI I am trying to combine 3 if statements in one but the order keeps coming out wrong.

    The three statements separately are

    If (B10>A1,0)

    If(B10=A1,-B9)

    If(B10<A1, B9+b8)

    Can anyone help put these into one statement.

    Thanks

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: 3 if statements in One cell

    Try

    =IF(B10>A1,0,IF(B10=A1,-B9,B9+B8))

  3. #3
    Registered User
    Join Date
    12-02-2012
    Location
    Harrow
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: 3 if statements in One cell

    great thanks!!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: 3 if statements in One cell

    You're welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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