Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 41
Default Helpful New Functions: ALL and ANY

I'd really like Excel to have an All(range, criteria) function, as used in a
number of programming languages. For instance:

A B C D
1 y y y n
2
3


=ALL(A1:C1, "y") -- TRUE
=ALL(A1:D1, "y") -- FALSE

In a similar vein, the ANY function would be quite handy:

=ANY(A1:C1, "y") -- TRUE
=ANY(A1:C1, "n") -- TRUE
=ANY(A1:C1, "o") -- FALSE

Anyone else think so?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Helpful New Functions: ALL and ANY

Think ..
=ALL(A1:C1, "y") -- TRUE
=ALL(A1:D1, "y") -- FALSE


would be the same as using:
=COUNTIF(A1:C1,"y")=COLUMNS(A1:C1)
=COUNTIF(A1:D1,"y")=COLUMNS(A1:D1)

and ..
=ANY(A1:C1, "y") -- TRUE
=ANY(A1:C1, "n") -- TRUE
=ANY(A1:C1, "o") -- FALSE


would be the same as using:
=COUNTIF(A1:C1,"y")0
=COUNTIF(A1:C1,"n")0
=COUNTIF(A1:C1,"o")0
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Atreides" wrote:
I'd really like Excel to have an All(range, criteria) function, as used in a
number of programming languages. For instance:

A B C D
1 y y y n
2
3


=ALL(A1:C1, "y") -- TRUE
=ALL(A1:D1, "y") -- FALSE

In a similar vein, the ANY function would be quite handy:

=ANY(A1:C1, "y") -- TRUE
=ANY(A1:C1, "n") -- TRUE
=ANY(A1:C1, "o") -- FALSE

Anyone else think so?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Helpful New Functions: ALL and ANY

See your previous post.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Atreides" <atreides1AThotmailD0Tcom wrote in message
...
I'd really like Excel to have an All(range, criteria) function, as used in

a
number of programming languages. For instance:

A B C D
1 y y y n
2
3


=ALL(A1:C1, "y") -- TRUE
=ALL(A1:D1, "y") -- FALSE

In a similar vein, the ANY function would be quite handy:

=ANY(A1:C1, "y") -- TRUE
=ANY(A1:C1, "n") -- TRUE
=ANY(A1:C1, "o") -- FALSE

Anyone else think so?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow

this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.


http://www.microsoft.com/office/comm...et.f unctions


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Helpful New Functions: ALL and ANY

On Mon, 25 Sep 2006 01:49:02 -0700, Atreides <atreides1AThotmailD0Tcom wrote:

I'd really like Excel to have an All(range, criteria) function, as used in a
number of programming languages. For instance:

A B C D
1 y y y n
2
3


=ALL(A1:C1, "y") -- TRUE
=ALL(A1:D1, "y") -- FALSE

In a similar vein, the ANY function would be quite handy:

=ANY(A1:C1, "y") -- TRUE
=ANY(A1:C1, "n") -- TRUE
=ANY(A1:C1, "o") -- FALSE

Anyone else think so?



You could always use the array entered formulas:

=AND(rng="y") for ALL

and

=OR(rng="y") for ANY


--ron
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Helpful New Functions: ALL and ANY

Cute!

"Ron Rosenfeld" wrote in message
...
On Mon, 25 Sep 2006 01:49:02 -0700, Atreides <atreides1AThotmailD0Tcom

wrote:

I'd really like Excel to have an All(range, criteria) function, as used

in a
number of programming languages. For instance:

A B C D
1 y y y n
2
3


=ALL(A1:C1, "y") -- TRUE
=ALL(A1:D1, "y") -- FALSE

In a similar vein, the ANY function would be quite handy:

=ANY(A1:C1, "y") -- TRUE
=ANY(A1:C1, "n") -- TRUE
=ANY(A1:C1, "o") -- FALSE

Anyone else think so?



You could always use the array entered formulas:

=AND(rng="y") for ALL

and

=OR(rng="y") for ANY


--ron





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Helpful New Functions: ALL and ANY

Thanks.

On Mon, 25 Sep 2006 14:17:07 +0100, "Bob Phillips"
wrote:

Cute!

"Ron Rosenfeld" wrote in message
.. .
On Mon, 25 Sep 2006 01:49:02 -0700, Atreides <atreides1AThotmailD0Tcom

wrote:

I'd really like Excel to have an All(range, criteria) function, as used

in a
number of programming languages. For instance:

A B C D
1 y y y n
2
3


=ALL(A1:C1, "y") -- TRUE
=ALL(A1:D1, "y") -- FALSE

In a similar vein, the ANY function would be quite handy:

=ANY(A1:C1, "y") -- TRUE
=ANY(A1:C1, "n") -- TRUE
=ANY(A1:C1, "o") -- FALSE

Anyone else think so?



You could always use the array entered formulas:

=AND(rng="y") for ALL

and

=OR(rng="y") for ANY


--ron



--ron
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Helpful New Functions: ALL and ANY

"Atreides" <atreides1AThotmailD0Tcom wrote in message
...
I'd really like Excel to have an All(range, criteria) function, as used in
a
number of programming languages. For instance:



Just out of curiosity, can you tell me a programming language other than SQL
that has an ALL or ANY function?


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



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