(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?
(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?)
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.
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