#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Conditional formula

Hi,

I have a formula in which I want to return a 1 to include else a 0 if
certain cells contain a value of + or - 10. Unfortunately this is returning
zeros even when a 1 should be returned.

=SUMPRODUCT(--(N57<=11),--(N57<=-11),--(Q57<=11),--(Q57<=-11),--(AB57<=11),--(AB57<=-11),1,0)

Any help gratefully appreciated.


  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Conditional formula

remove the ,1,0
=SUMPRODUCT(--(N57<=11),--(N57<=-11),--(Q57<=11),--(Q57<=-11),--(AB57<=11),--(AB57<=-11))
or
=SUMPRODUCT(--(abs(N57)<=11),--(abs(Q57)<=11),--(abs(AB57)<=11))
From your Description You might want "10" rather than 11 in your equations.
a simpler equation
=if(max(abs(M57),Abs(Q57),Abs(Ab57))<=11,1,0)
"Kierano" wrote:

Hi,

I have a formula in which I want to return a 1 to include else a 0 if
certain cells contain a value of + or - 10. Unfortunately this is returning
zeros even when a 1 should be returned.

=SUMPRODUCT(--(N57<=11),--(N57<=-11),--(Q57<=11),--(Q57<=-11),--(AB57<=11),--(AB57<=-11),1,0)

Any help gratefully appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Conditional formula

Do you mean =-11 ?
And I'm not sure why you're using 11 and -11, when your description talks of
"+ or - 10"?
And finally I assume that most of your formula is doing nothing because you
end up with multiplying everything by 1 (which won't change things much),
then by zero (which will). If you want to return a 1 if all your conditions
are met, and a zero if they're not, you don't need the last two terms, as
you'll get that from the multiplication of your logicals coerced to
numerical values.
--
David Biddulph

"Kierano" wrote in message
...
Hi,

I have a formula in which I want to return a 1 to include else a 0 if
certain cells contain a value of + or - 10. Unfortunately this is
returning
zeros even when a 1 should be returned.

=SUMPRODUCT(--(N57<=11),--(N57<=-11),--(Q57<=11),--(Q57<=-11),--(AB57<=11),--(AB57<=-11),1,0)

Any help gratefully appreciated.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Conditional formula

And even more finally, what are you trying to sum? You've got a list of
terms for the product, but without array references I can't see where the
sum comes in? You may want to look in help for the operation of the
SUMPRODUCT() function.
--
David Biddulph

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
Do you mean =-11 ?
And I'm not sure why you're using 11 and -11, when your description talks
of "+ or - 10"?
And finally I assume that most of your formula is doing nothing because
you end up with multiplying everything by 1 (which won't change things
much), then by zero (which will). If you want to return a 1 if all your
conditions are met, and a zero if they're not, you don't need the last two
terms, as you'll get that from the multiplication of your logicals coerced
to numerical values.
--
David Biddulph

"Kierano" wrote in message
...
Hi,

I have a formula in which I want to return a 1 to include else a 0 if
certain cells contain a value of + or - 10. Unfortunately this is
returning
zeros even when a 1 should be returned.

=SUMPRODUCT(--(N57<=11),--(N57<=-11),--(Q57<=11),--(Q57<=-11),--(AB57<=11),--(AB57<=-11),1,0)

Any help gratefully appreciated.






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
conditional formula pattyling Excel Worksheet Functions 4 March 1st 07 10:18 PM
Conditional Formula to indicate Formula in cell SteveW New Users to Excel 9 August 2nd 06 01:12 AM
Need Conditional Formula MatthewFlinchem Excel Worksheet Functions 3 May 4th 06 02:29 PM
conditional formula Kari Excel Worksheet Functions 1 September 22nd 05 04:50 PM
conditional sum formula erwt Excel Worksheet Functions 3 September 6th 05 08:56 AM


All times are GMT +1. The time now is 09:35 PM.

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

About Us

"It's about Microsoft Excel"