+ Reply to Thread
Results 1 to 4 of 4

Trying to remove negative result in cell

  1. #1
    Registered User
    Join Date
    08-13-2014
    Location
    Australia
    MS-Off Ver
    365
    Posts
    25

    Trying to remove negative result in cell

    I have a formula as below:

    =SUM(K7)-AVERAGEIFS('2 TURN'!$K:$K,'2 TURN'!$F:$F,$F7,'2 TURN'!$G:$G,$G7)

    The 2nd part of the formula returns an average figured which is subtracted from the figure in cell K7. Sometime the K column doesn't have a value but has N/A (not available). When this is the case, this formula returns a negative result = to the average in the 2nd part of the formula.

    Is there a way I can have the formula return "N/A" is some non-numerical value when the cell in the K column (as per example, K7) has N/A ?

    Many thanks

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Trying to remove negative result in cell

    Hi,
    Try this
    =iferror(SUM(K7)-AVERAGEIFS('2 TURN'!$K:$K,'2 TURN'!$F:$F,$F7,'2 TURN'!$G:$G,$G7),"N/A")

    Punnam

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Trying to remove negative result in cell

    =IF(K7="N/A","N/A",YourFormulaHere)

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Trying to remove negative result in cell

    AS far as I can see, if K7 holds N/A, then the result is N/A.

+ 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. [SOLVED] How to highlight a cell if result is a negative number
    By livemusic in forum Excel General
    Replies: 3
    Last Post: 07-05-2013, 10:52 AM
  2. cell formulae giving negative result.
    By BrianC500 in forum Excel General
    Replies: 7
    Last Post: 07-25-2006, 05:10 AM
  3. [SOLVED] cell calculation check if result is negative and zero out if not l
    By Rich in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-16-2006, 04:35 PM
  4. [SOLVED] Fill a cell in orange if the result is negative, help please.
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2005, 03:55 AM
  5. [SOLVED] How do i get excel to format a cell for a negative result.
    By Cisco in forum Excel General
    Replies: 4
    Last Post: 07-21-2005, 04:05 AM

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