WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Simple calc problem

 
   Home -> Office -> Templates RSS
Next:  Templates: P&L Depreciation Calc Problem  
Author Message
Jeffrey Ellis

External


Since: Feb 02, 2008
Posts: 5



(Msg. 1) Posted: Wed Feb 20, 2008 9:00 am
Post subject: Simple calc problem Add to elertz
Archived from groups: microsoft>public>excel>templates (more info?)

Hi--

I have three cells in the P&L template I got from MS. The first is prior
period, then current period, then % change over prior period.

The last period had 0 for the amount, the current 250. The formula for the
calc is:

=IF(D1=0,"-",D1/B1-1)

Meaning, if current is not empty, then divide prior by current -1

So I'm getting a #DIV/0 error. But these are perfectly reasonable figures. I
can't enter more than 0 for the prior period if that's what it is. And this
is MS's own template. Is there some way to fix this? For example, can I add
a nested IF in the second value?

Thanks.
Back to top
Login to vote
Gord Dibben

External


Since: Feb 23, 2004
Posts: 15332



(Msg. 2) Posted: Wed Feb 20, 2008 4:40 pm
Post subject: Re: Simple calc problem Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Looking at the P & L template from this site

http://office.microsoft.com/en-us/templates/TC011154841033.aspx?pid=CT...1727610

I would say make this change in F12 to prevent the error unless B12 has a 1

=IF($B12="","-",$D12/(B12-1))

Further..........to prevent the error if B12 is blank or 1

=IF(OR($B12="",$B12=1),"-",$D12/(B12-1))

Copy across to G12

Copy to any other cells in F and G where warranted.


Gord Dibben MS Excel MVP

On Wed, 20 Feb 2008 09:00:40 -0800, Jeffrey Ellis <rlinsurf DeleteThis @nospam.net> wrote:

>Hi--
>
>I have three cells in the P&L template I got from MS. The first is prior
>period, then current period, then % change over prior period.
>
>The last period had 0 for the amount, the current 250. The formula for the
>calc is:
>
>=IF(D1=0,"-",D1/B1-1)
>
>Meaning, if current is not empty, then divide prior by current -1
>
>So I'm getting a #DIV/0 error. But these are perfectly reasonable figures. I
>can't enter more than 0 for the prior period if that's what it is. And this
>is MS's own template. Is there some way to fix this? For example, can I add
>a nested IF in the second value?
>
>Thanks.
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Templates All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET