Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thius is a stupid question but I cannot for the life of me work it out
the calculation I need is if C4=0 or if D4 = 0 then 0 else c4-d4 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this:
=IF(OR(C4=0,D4=0),0,C4-D4) Hope this helps. -- Kevin Backmann "Nigel" wrote: Thius is a stupid question but I cannot for the life of me work it out the calculation I need is if C4=0 or if D4 = 0 then 0 else c4-d4 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You don't need to nest IFs.
=IF(OR(C4=0,D4=0),0,C4-D4) If you particularly want to nest IFs: =IF(C4=0,0,IF(D4=0,0,C4-D4)) -- David Biddulph "Nigel" wrote in message ... Thius is a stupid question but I cannot for the life of me work it out the calculation I need is if C4=0 or if D4 = 0 then 0 else c4-d4 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
No that doesn't work
"Kevin B" wrote: Try this: =IF(OR(C4=0,D4=0),0,C4-D4) Hope this helps. -- Kevin Backmann "Nigel" wrote: Thius is a stupid question but I cannot for the life of me work it out the calculation I need is if C4=0 or if D4 = 0 then 0 else c4-d4 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Unless you formulated your intitial question incorrectly, it works just fine.
Dave Biddulph has given the same formula along with an "If you have to nest" IF formula. -- Kevin Backmann "Nigel" wrote: No that doesn't work "Kevin B" wrote: Try this: =IF(OR(C4=0,D4=0),0,C4-D4) Hope this helps. -- Kevin Backmann "Nigel" wrote: Thius is a stupid question but I cannot for the life of me work it out the calculation I need is if C4=0 or if D4 = 0 then 0 else c4-d4 |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
"That doesn't work" wins the prize for the most unhelpful post of the day.
If you had wanted further help, you would have told us what values you had as your inputs, what result you got from the formula, and what result you expected, but as you did not give any of that information we can't tell you what you did wrong. [Kevin's formula was correct, of course, so if that isn't the right answer it means you asked the wrong question.] -- David Biddulph "Nigel" wrote in message ... No that doesn't work "Kevin B" wrote: Try this: =IF(OR(C4=0,D4=0),0,C4-D4) Hope this helps. -- Kevin Backmann "Nigel" wrote: Thius is a stupid question but I cannot for the life of me work it out the calculation I need is if C4=0 or if D4 = 0 then 0 else c4-d4 |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sorry Kevin, my mistake, the value in C4 or D4 is actually a text field
(retreiving from Essbase) so thats why it didn't work its fine now thanks "Kevin B" wrote: Try this: =IF(OR(C4=0,D4=0),0,C4-D4) Hope this helps. -- Kevin Backmann "Nigel" wrote: Thius is a stupid question but I cannot for the life of me work it out the calculation I need is if C4=0 or if D4 = 0 then 0 else c4-d4 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
nested ifs not enough | Excel Discussion (Misc queries) | |||
nested if based on nested if in seperate sheet. how? | Excel Worksheet Functions | |||
Nested Ifs | Excel Worksheet Functions | |||
nested if | Excel Worksheet Functions | |||
Nested If / And / Or ? | Excel Discussion (Misc queries) |