Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-26-2011, 04:42 AM
accablues accablues is offline getting div error Windows XP getting div error Office 2010 64bit
Novice
getting div error
 
Join Date: Jul 2011
Posts: 3
accablues is on a distinguished road
Default getting div error

hi, I am trying to return the forumale value to "-". see below



D11 cell = 0
F11 cell = 58,000

i am calculating year on year increase in expense where D11=2011 EXPENSE and F11=2012 EXPENSE

formuale used is =SUM(F11-D11)/D11 which returns with #Div/0! error

I want this to change to "-" regardless the D11 or F11 value becomes zero. please help it's looking very odd on my report

I hope i have explained correctly.

thanks for the help in advance
Reply With Quote
  #2  
Old 07-26-2011, 06:28 AM
Catalin.B Catalin.B is offline getting div error Windows Vista getting div error Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

Normally, you dont need SUM in this formula =(F11-D11)/D11
To remove the error:
Try this: =IF(ISERR((F11-D11)/D11*100)=TRUE;"-";(F11-D11)/D11*100)
Reply With Quote
  #3  
Old 07-26-2011, 09:21 PM
accablues accablues is offline getting div error Windows XP getting div error Office 2010 64bit
Novice
getting div error
 
Join Date: Jul 2011
Posts: 3
accablues is on a distinguished road
Default

thanks for your help. the formulae worked with a slight change, i removed =TRUE because it was giving me some message and also *100 because I already had the cell formated to percentage.
now its changing to "-" many thanks for your help

Last edited by accablues; 07-26-2011 at 10:32 PM.
Reply With Quote
  #4  
Old 07-26-2011, 10:40 PM
accablues accablues is offline getting div error Windows XP getting div error Office 2010 64bit
Novice
getting div error
 
Join Date: Jul 2011
Posts: 3
accablues is on a distinguished road
Default

i just realised on my sheet that with the above formulae its giving me error

S-1
2012 figures = 0 (D10)
2013 figures = 34,000 (F10)

it should show 100% increase in expense but it's giving me "-". the forumale i am using

=IF(ISERROR((F10-D10)/D10),"-",(F10-D10)/D10)

i also tried this formula, but still "-"

=IF(ISERROR((F10-D10)/D10)=TRUE,"-",(F10-D10)/D10)

help please thanks
Reply With Quote
  #5  
Old 07-27-2011, 07:42 AM
Catalin.B Catalin.B is offline getting div error Windows Vista getting div error Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

the formula is corect, be careful to your regional settings marked in red in formula, instead of ; you use ,
=IF(ISERROR((F10-D10)/D10)=TRUE;"-";(F10-D10)/D10)

look at the sample attached
Attached Files
File Type: xlsx sample.xlsx (11.8 KB, 6 views)
Reply With Quote
  #6  
Old 07-27-2011, 10:04 AM
Kimberly Kimberly is offline getting div error Windows 7 64bit getting div error Office 2010 64bit
Expert
 
Join Date: May 2010
Posts: 517
Kimberly is on a distinguished road
Default

=(f10-d10)/f10
Reply With Quote
  #7  
Old 07-27-2011, 10:08 AM
Kimberly Kimberly is offline getting div error Windows 7 64bit getting div error Office 2010 64bit
Expert
 
Join Date: May 2010
Posts: 517
Kimberly is on a distinguished road
Default

It won't error, but if you want to suppress errors:

=IFERROR((F10-D10)/F10,"-")
Reply With Quote
  #8  
Old 07-27-2011, 11:25 AM
Catalin.B Catalin.B is offline getting div error Windows Vista getting div error Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

Sorry Kimberly, but this formula does not calculate the increase

=IFERROR((F10-D10)/F10,"-")

I guess you intended =IFERROR((F10-D10)/D10,"-")
But maybe i am wrong , anyway, there are more than one solution to a problem, another could be: IFERROR(F1/D1-1,"-")
Reply With Quote
  #9  
Old 07-27-2011, 01:34 PM
Kimberly Kimberly is offline getting div error Windows 7 64bit getting div error Office 2010 64bit
Expert
 
Join Date: May 2010
Posts: 517
Kimberly is on a distinguished road
Default

I couldnt tell what the question was. I was pretty sure this wasn't the best answer
Quote:
=IF(ISERROR((F10-D10)/D10)=TRUE;"-";(F10-D10)/D10)
He complained that it should equal 100%, even though D10 is zero, so I don't know what he's after.

You don't have to use Iserr or Iserror anymore. You never had to say =TRUE.
Reply With Quote
  #10  
Old 07-27-2011, 07:58 PM
Catalin.B Catalin.B is offline getting div error Windows Vista getting div error Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

Quote:
Originally Posted by accablues View Post
hi, I am trying to return the forumale value to "-". see below

D11 cell = 0
F11 cell = 58,000

i am calculating year on year increase in expense where D11=2011 EXPENSE and F11=2012 EXPENSE



thanks for the help in advance
well, this is his first post, he did say what he wants, and yes, your solution is the easiest

wish you a wonderful day and hope for a real challenge
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Visual Basic error - run time error 504 crazymorton Word 11 01-13-2012 04:32 AM
Ms Word Error manesh Word 1 05-28-2010 07:26 AM
Circular error markg2 Excel 2 05-17-2010 07:39 AM
Runtime error 5487 - Word cannot complete the save to to file permission error franferns Word 0 11-25-2009 05:35 AM
Receive error cannot open this form because an error occurred in BCM 2007 bornhusker Outlook 0 06-01-2009 10:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:05 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft