+ Reply to Thread
Results 1 to 4 of 4

IF function woes

  1. #1
    Registered User
    Join Date
    08-06-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question IF function woes

    Hi there,

    I'm analysing some metabolomic data on excel due to the vast amounts of data I have.

    I'm trying to identify fold change and incorporating the IF function.


    Eg If T2-O2/0.244 is less than 0, I want 0 to appear and not a negative number.

    Seems simple and I've tried many functions but I still seem to get the odd negative number.

    Many thanks in adavance!!

  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 woes

    Use MAX(0,T2-O2/0.244) or probably what you want is MAX(0,(T2-O2)/0.244)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    08-05-2012
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: IF function woes

    Try This it may help

  4. #4
    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 woes

    ACE-XL, formula, gives your result but as you mentioned that you tried many formulae, look and this one, using just if function.

    =IF(T2-O2/0.244<0,0,T2-O2/0.244)
    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.

+ 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