Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default should it be if() or another logical function?

I want to get a 1 if true, a 0 if false...
What I'm looking at is:
if the total of 3 cells=0 AND the average of 5 other cells =30, then 1,
else 0
....typing this it seems like an and or an or function without the tue/false
return...what do you think?

Thanks!
--
Gina
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default should it be if() or another logical function?

=IF(AND(AVERAGE(A1:A5)=30,SUM(B1:B3)=0),1,0)

Dave
--
Brevity is the soul of wit.


"Gina" wrote:

I want to get a 1 if true, a 0 if false...
What I'm looking at is:
if the total of 3 cells=0 AND the average of 5 other cells =30, then 1,
else 0
...typing this it seems like an and or an or function without the tue/false
return...what do you think?

Thanks!
--
Gina

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default should it be if() or another logical function?

Try this:
=--AND(SUM(A1:A3)=0,AVERAGE(B1:B5)=30)


"Gina" wrote:

I want to get a 1 if true, a 0 if false...
What I'm looking at is:
if the total of 3 cells=0 AND the average of 5 other cells =30, then 1,
else 0
...typing this it seems like an and or an or function without the tue/false
return...what do you think?

Thanks!
--
Gina

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
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
wild card with if logical function b166er Excel Worksheet Functions 2 May 30th 06 11:20 AM
Custom function Christina L. Excel Worksheet Functions 1 May 10th 06 06:38 PM
Logical Function Question jgp_2 Excel Worksheet Functions 2 September 28th 05 07:24 PM
using logical functions as criteria with the SUMIF function pfdubz Excel Worksheet Functions 6 December 1st 04 07:40 PM


All times are GMT +1. The time now is 04:15 PM.

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"