+ Reply to Thread
Results 1 to 7 of 7

Percent change question

  1. #1
    Registered User
    Join Date
    07-12-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Percent change question

    I am trying to insert a column that shows the percent change in two figures. I am using the typical new-old/old formula and that works great unless the old figure is a 0 and then I get an error. How do I correct this?
    Last edited by esion9302; 07-12-2010 at 12:50 PM.

  2. #2
    Forum Contributor
    Join Date
    10-11-2008
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    111

    Re: Percent change question

    please upload the excel file

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Percent change question

    =IF(A1=0, "",(B1-A1)/A1)

    where A1 = old value
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    06-16-2010
    Location
    Minnetonka, MN
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Percent change question

    ChemistB is correct, the reason it comes back with an error is because mathematically you cannot divide by 0, so you get #DIV/0, using the formula will leave it blank.

  5. #5
    Registered User
    Join Date
    07-12-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Percent change question

    What type of IF statement am I supposed to use? Thanks.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    10-11-2008
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    111

    Re: Percent change question

    what do you mean? the if statement is the one ChemistB posted, but according to your excel:

    =IF(B1=0;"";(A1-B1)/B1)

    in all your column C

  7. #7
    Registered User
    Join Date
    07-12-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Percent change question

    Sorry, I just caught the problem. On the original file they have last year's value in B so I had A and B switched on the IF statement. Thanks.

+ 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