+ Reply to Thread
Results 1 to 3 of 3

add error to excel formula when there is a negative number in the denominator

  1. #1
    Forum Contributor
    Join Date
    01-16-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    139

    add error to excel formula when there is a negative number in the denominator

    I have negative numbers in some denominators so I need to use this formula (for money year 2 compared to year 1). How do i also add in an iserror so if there's a #value or NA it is blank?
    =IF(FU7<0,((FV7/FU7-1)*-1),FV7/FU7-1)
    Last edited by dianaCatz; 02-15-2023 at 05:47 AM.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,343

    Re: excel formula when there is a negative number in the denominator

    I am not an accountant or anything similar, but my impression is that most people don't really like to use "percent change" of any kind when one value is positive and one value is negative. I expect that the "best formula" to use in this situation is whatever best reflects what "percent change" means to you when one value is negative and one value is positive.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: add error to excel formula when there is a negative number in the denominator

    Notwithstanding the reply you've already received, I think the answer to your question is;

    =IFERROR(IF(FU7<0,((FV7/FU7-1)*-1),FV7/FU7-1),"")
    Last edited by Croweater; 02-15-2023 at 02:12 AM.

+ 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. Excel Fractions - Specifying the Denominator
    By John Vieren in forum Excel General
    Replies: 3
    Last Post: 02-16-2019, 12:42 PM
  2. Replies: 7
    Last Post: 07-10-2018, 01:05 PM
  3. [SOLVED] Help on Excel Formula - to select the negative number closest to ZERO
    By mablelim in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2016, 05:09 AM
  4. Replies: 3
    Last Post: 03-10-2016, 04:40 PM
  5. [SOLVED] Formula to split a number to nearest denominator
    By strud in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-29-2013, 07:39 AM
  6. [SOLVED] How to show a number as a fraction of a given numerator and denominator?
    By canis01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2013, 05:57 PM
  7. Replies: 1
    Last Post: 12-19-2012, 12:30 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