+ Reply to Thread
Results 1 to 6 of 6

Thread: Percent calculation formula

  1. #1
    Registered User
    Join Date
    08-30-2010
    Location
    Here :)
    MS-Off Ver
    Excel 2007
    Posts
    14

    Percent calculation formula

    Greetings! I have the following formula that calculates the percentage change:

    =IF((B2+C2)=0,0,IF(B2=0,"100%",(C2-B2)/B2))

    Is there a way to edit the formula to also include the outcome if the result is less than 1% to display "<1%" instead of, for example, 0.04%?

    Thanks!
    Last edited by temple1; 01-10-2012 at 12:47 PM.

  2. #2
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,223

    Re: Percent calculation formula

    =IF((B2+C2)=0,0,IF(B2=0,"100%",IF((C2-B2)/B2)<1%,"<1%",(C2-B2)/B2)))


    Regards, TMS

  3. #3
    Registered User
    Join Date
    08-30-2010
    Location
    Here :)
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Percent calculation formula

    Thank u for a quick reply TMSchucks. Pretty straight forward formula and I actually tried that myself as well, but for some strange reason I'm getting an error message and it's pointing to B2 in here ,IF((C2-B2)/B2)<1%,

  4. #4
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,223

    Re: Percent calculation formula

    Apologies, my fault, not tested.


    =IF((B2+C2)=0,0,IF(B2=0,"100%",IF((C2-B2)/B2<1%,"<1%",(C2-B2)/B2)))


    Regards, TMS

  5. #5
    Registered User
    Join Date
    08-30-2010
    Location
    Here :)
    MS-Off Ver
    Excel 2007
    Posts
    14

    Thumbs up Re: Percent calculation formula

    Thanks for getting me on the right track. I added more statements to cover less than -1% as well. Again, thank u!

    =IF((B69+C69)=0,0,IF(B69=0,"100%",IF(AND((C69-B69)/B69<1%,(C69-B69)/B69>0%),"<1%",IF(AND((C69-B69)/B69<0%,(C69-B69)/B69>-1%),"<-1%",(C69-B69)/B69))))

  6. #6
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,223

    Re: Percent calculation formula

    You're welcome.

+ 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.2.0