Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Worksheet function needed

How can i write a function with the following criteria?

IF 3 cells values are all within a given range,say -1 and 1, then "A
comment", otherwise, "B Comment"

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Worksheet function needed

try

IF(AND(MIN(A1:A3)=-1,MAX(A1:A3)<=1),"A Comment","B Comment")

Mike

"Euan Ritchie" wrote:

How can i write a function with the following criteria?

IF 3 cells values are all within a given range,say -1 and 1, then "A
comment", otherwise, "B Comment"

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Worksheet function needed

Try:

=IF(AND(MAX(A1:A3)<=1,MIN(A1:A3)=-1),"A Comment","B Comment")

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Euan Ritchie" wrote in message
...
How can i write a function with the following criteria?

IF 3 cells values are all within a given range,say -1 and 1, then "A
comment", otherwise, "B Comment"

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Worksheet function needed

IF 3 cells values are all within a given range,say -1 and 1, then "A
comment", otherwise, "B Comment"


Assume the 3 source cells in A1:C1
Then in D1, copied down:
=IF(COUNT(A1:C1)<3,"",IF(MIN(COUNTIF(A1:C1,"=-1"),COUNTIF(A1:C1,"<=1"))=3,"A comment","B comment"))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:61
xdemechanik
---
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Worksheet function needed

Try this:

=IF(MAX(INDEX(ABS(A1:A3),))<=1,"A comment","B Comment")


"Euan Ritchie" wrote:

How can i write a function with the following criteria?

IF 3 cells values are all within a given range,say -1 and 1, then "A
comment", otherwise, "B Comment"

Thanks

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
Worksheet function needed Office_Novice Excel Worksheet Functions 5 June 12th 08 09:18 PM
Function needed FMST Excel Worksheet Functions 3 November 25th 06 03:04 PM
Function Needed! Please Help! Rashid Excel Worksheet Functions 3 April 20th 06 01:49 AM
help needed in worksheet function Aarif Excel Worksheet Functions 1 March 17th 06 12:17 PM
Needed: worksheet export help mainemike Excel Discussion (Misc queries) 1 February 24th 06 02:59 AM


All times are GMT +1. The time now is 05:24 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"