Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default How to put Zero in a cell

i have created a balance sheet with this formula to calculate the remaining
balance

=SUM(E5-D6+C6)

However this leaves the value from the cell the calculation was taken from i.e
if cell E5 returns a value of 200 the cell E6 returns the same value. How
can i make cell E6 return a 0 value untill data is added to either column's
"C or D"

I hope this is ok to understand.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 127
Default How to put Zero in a cell

=IF(OR(C6="",D6=""),0,SUM(E5-D6+C6))


"Dobbin0_4" wrote in message
...
i have created a balance sheet with this formula to calculate the remaining
balance

=SUM(E5-D6+C6)

However this leaves the value from the cell the calculation was taken from
i.e
if cell E5 returns a value of 200 the cell E6 returns the same value. How
can i make cell E6 return a 0 value untill data is added to either
column's
"C or D"

I hope this is ok to understand.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default How to put Zero in a cell

The following IF will do it for you:

=IF(OR(D6=0,C6=0),0,E5-D6+C6)

Which says if D6 or C6 = 0 then 0, else E5-D6+C6

--
Kevin Backmann


"Dobbin0_4" wrote:

i have created a balance sheet with this formula to calculate the remaining
balance

=SUM(E5-D6+C6)

However this leaves the value from the cell the calculation was taken from i.e
if cell E5 returns a value of 200 the cell E6 returns the same value. How
can i make cell E6 return a 0 value untill data is added to either column's
"C or D"

I hope this is ok to understand.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 73
Default How to put Zero in a cell

instead of your formula =Sum(E5-D6+C6)

use

=If(Or(D6<0,C6<0),E5-D6+C6,0)

Good Luck

"Dobbin0_4" wrote:

i have created a balance sheet with this formula to calculate the remaining
balance

=SUM(E5-D6+C6)

However this leaves the value from the cell the calculation was taken from i.e
if cell E5 returns a value of 200 the cell E6 returns the same value. How
can i make cell E6 return a 0 value untill data is added to either column's
"C or D"

I hope this is ok to understand.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default How to put Zero in a cell

hi kevin i have tried your formula and it works partly, the problem is this
when i enter a value in C6 it doesn't show the calculation in E6 i.e. giving
a value of E5+C6.
But when i put a value in D6 it shows the calculation of E5-D6.
I copeid you formula to the character! what am i doing wrong?!

"Kevin B" wrote:

The following IF will do it for you:

=IF(OR(D6=0,C6=0),0,E5-D6+C6)

Which says if D6 or C6 = 0 then 0, else E5-D6+C6

--
Kevin Backmann


"Dobbin0_4" wrote:

i have created a balance sheet with this formula to calculate the remaining
balance

=SUM(E5-D6+C6)

However this leaves the value from the cell the calculation was taken from i.e
if cell E5 returns a value of 200 the cell E6 returns the same value. How
can i make cell E6 return a 0 value untill data is added to either column's
"C or D"

I hope this is ok to understand.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default How to put Zero in a cell

Try this (note the AND instead of OR):

=IF(AND(D6=0,C6=0),0,E5-D6+C6)

Hope this helps,

Hutch

"Dobbin0_4" wrote:

hi kevin i have tried your formula and it works partly, the problem is this
when i enter a value in C6 it doesn't show the calculation in E6 i.e. giving
a value of E5+C6.
But when i put a value in D6 it shows the calculation of E5-D6.
I copeid you formula to the character! what am i doing wrong?!

"Kevin B" wrote:

The following IF will do it for you:

=IF(OR(D6=0,C6=0),0,E5-D6+C6)

Which says if D6 or C6 = 0 then 0, else E5-D6+C6

--
Kevin Backmann


"Dobbin0_4" wrote:

i have created a balance sheet with this formula to calculate the remaining
balance

=SUM(E5-D6+C6)

However this leaves the value from the cell the calculation was taken from i.e
if cell E5 returns a value of 200 the cell E6 returns the same value. How
can i make cell E6 return a 0 value untill data is added to either column's
"C or D"

I hope this is ok to understand.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default How to put Zero in a cell

Hi Kevin B
Thanks so much for your help, I was unsure of what you meant and couldn't
figure it out to start with. But now i am fully on board and it has saved me
a lot of hassle with the business system i am creating. i figure that you can
use the if/or function for pretty much anything. Am i right? need to get the
excel bible!

Thanks so much again

Dobbin04

"Kevin B" wrote:

The following IF will do it for you:

=IF(OR(D6=0,C6=0),0,E5-D6+C6)

Which says if D6 or C6 = 0 then 0, else E5-D6+C6

--
Kevin Backmann


"Dobbin0_4" wrote:

i have created a balance sheet with this formula to calculate the remaining
balance

=SUM(E5-D6+C6)

However this leaves the value from the cell the calculation was taken from i.e
if cell E5 returns a value of 200 the cell E6 returns the same value. How
can i make cell E6 return a 0 value untill data is added to either column's
"C or D"

I hope this is ok to understand.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 [email protected] Excel Worksheet Functions 1 August 22nd 08 02:04 AM
How can I make a blank cell in a formula cell with a range of cell Vi Excel Discussion (Misc queries) 5 June 21st 07 02:46 PM
Inputting cell value from source cell based on value in adjacent cell. michaelberrier Excel Discussion (Misc queries) 3 December 9th 06 09:16 PM
How to create/run "cell A equals Cell B put Cell C info in Cell D abmb161 Excel Discussion (Misc queries) 5 January 26th 06 06:36 PM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 0 February 11th 05 05:35 AM


All times are GMT +1. The time now is 05:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"