+ Reply to Thread
Results 1 to 4 of 4

IF Function

  1. #1
    Registered User
    Join Date
    02-09-2015
    Location
    Los Angeles, California
    MS-Off Ver
    MS Office 2010
    Posts
    17

    IF Function

    I am trying to create a function that delivers the following:

    If the value in A1 is less than 0, then I want to cell the return the inverse of A1 but if the the value is less than -250 than I want to return 250. In other words any value between 0 and -250 will return the inverse of that value but any value less than -250 (-500 for example) will return a value of 250. I've tried multiple IF OR and AND Functions but can't quite get it to work quite right. Thanks for any help!

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,678

    Re: IF Function

    you have not specified what if a1 >0

    but this is what you asked for
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    so if A1>=0 then just A1 it will become:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    02-09-2015
    Location
    Los Angeles, California
    MS-Off Ver
    MS Office 2010
    Posts
    17

    Re: IF Function

    Sorry, if A1>0 then return 0

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,678

    Re: IF Function

    I hope you did it (as marking as SOLVED suggests), but just in case:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  2. Replies: 2
    Last Post: 01-15-2014, 11:40 PM
  3. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  4. Replies: 2
    Last Post: 03-20-2009, 01:29 PM
  5. [SOLVED] Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 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