Re: Combine two if then statements into or statement

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Frank Kabel (frank.kabel_at_freenet.de)
Date: 10/22/04


Date: Fri, 22 Oct 2004 22:27:06 +0200

Hi
use
=IF(AND(A15=TRUE,A8=TRUE),C60+C61+C62+C74,IF(A18=TRUE,C63+C64+C65+C71+C
78+C79+C81,0))

--
Regards
Frank Kabel
Frankfurt, Germany
"M" <M@discussions.microsoft.com> schrieb im Newsbeitrag
news:0ACB745A-D3A0-4522-A0C0-4172654C5D5E@microsoft.com...
> This is statement one:
>
> =IF(AND(A15=TRUE,A8=TRUE),(C60+C61+C62+C74),0)
>
> This is statement two:
>
> =IF(A18=TRUE,(C63+C64+C65+C71+C78+C79+C81),0)
>
> I need to combine these so that appropriate value whether zero or one
of
> those sums are returned depedent on what is true.
>
> I tried to combine it and ended up with this:
> =IF(OR(AND(A15=TRUE,A8=TRUE),(C60+C61+C62+C74),0),
> IF(A18=TRUE,(C63+C64+C65+C71+C78+C79+C81),0))
>
> But that does work because when A15&A8 are true it comes back zero
instead
> of adding up the sum of C60,C61,C62,C74.
> I am sure its just one tiny thing I am missing or guessing that's all
it is
> but I just can not seem to find it. I greatly appreciate any help.
>
> Thanks!
>
> --
> M
> A+ Certified
> 8 yrs of IT Experiance in Support/Admin
>
> VB exp. based on self taught and what others have helped with.
>
> Very proficient in Office applications as far as functionality.


Relevant Pages

  • Re: Maximum number of data points
    ... "Zero" schrieb im Newsbeitrag ... > I'm wondering if there are any downloads to increase the maximum ...
    (microsoft.public.excel.charting)
  • Re: Pivot Table and Zeros
    ... "mense23" schrieb im Newsbeitrag ... > The cell has a value of zero, ...
    (microsoft.public.excel.misc)
  • Re: CountIf function + dates
    ... "patricia" schrieb im Newsbeitrag ... > todayand still zero. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: If Function
    ... "Nikki" schrieb im Newsbeitrag ... > below zero it will remain zero. ... > So when I sum the column I get what looks like a wrong ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Sumif cell contains a certain value
    ... sums all values in column B if column A contains a '1' ... Frank Kabel ... "NV" schrieb im Newsbeitrag ...
    (microsoft.public.excel.worksheet.functions)