+ Reply to Thread
Results 1 to 4 of 4

Not sure how to use the IF function

  1. #1
    Registered User
    Join Date
    09-05-2015
    Location
    North Carolina
    MS-Off Ver
    Office 2013
    Posts
    33

    Not sure how to use the IF function

    I'm sure this is a simple formula but I've never really understood how to use the IF function properly. (not even 100% sure I need the IF function or some other function)

    I have a simple formula where I'm multiplying the value of one cell by a set number =sum(B27*0.0575) in most cases the answer will return a negative number. How do I change the formula so if the answer is a negative it returns 0 instead of the negative number?


    if the number is positive it needs to give the positive answer
    Last edited by Brenda H; 09-07-2015 at 08:35 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Not sure how to use the IF function

    hi Brenda. try:
    =MAX(0,sum(B27*0.0575))

    if you wish to use IF,
    =IF(B27<0,0,sum(B27*0.0575))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    08-04-2009
    Location
    Golborne England
    MS-Off Ver
    2013
    Posts
    85

    Re: Not sure how to use the IF function

    Hi Brenda,

    Try this.

    Please Login or Register  to view this content.
    JimBobBowie

  4. #4
    Registered User
    Join Date
    09-05-2015
    Location
    North Carolina
    MS-Off Ver
    Office 2013
    Posts
    33

    Re: Not sure how to use the IF function

    Thank you, all three options worked.

    Brenda

+ 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: 1
    Last Post: 06-10-2015, 12:56 PM
  2. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  3. Replies: 2
    Last Post: 01-15-2014, 11:40 PM
  4. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  5. [SOLVED] Using Offset function as the array in the PercentRank function is giving wrong result
    By Bobneil in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-06-2013, 09:29 PM
  6. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  7. [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