+ Reply to Thread
Results 1 to 4 of 4

IF function problem

  1. #1
    Registered User
    Join Date
    06-22-2012
    Location
    North West England
    MS-Off Ver
    Excel 2010
    Posts
    5

    IF function problem

    Hi, I am struggling to get the following IF statement to work:-

    =IF(C4375<1216,"00:22", IF(C4375>1216,"00:30", IF(C4375<500,"0")))

    Where the element in column C is an imported value from a PI add in and the possible output values are to be minutes, either 30,22 or 0.
    Writing the formula with 2 outcomes works fine, but I can't get it to function with 3.

    Also tried to write the output as "30", "22" and "0" as the summation of a daily column doesn't seem to work.

    Any suggestions welcome

    Thanks

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: IF function problem

    Swap the formula around as below

    Please Login or Register  to view this content.
    Show your appreciation - Press the star icon if this post has been helpful

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF function problem

    Hi and welcome to the forum.

    Try

    =IF(and(C4375<1216,c4375>500),"00:22", IF(C4375>1216,"00:30", IF(C4375<500,0)))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    06-22-2012
    Location
    North West England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: IF function problem

    Quote Originally Posted by Ace_XL View Post
    Swap the formula around as below

    Please Login or Register  to view this content.
    Show your appreciation - Press the star icon if this post has been helpful
    That's worked a treat. Thanks

+ 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