Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
zubee
 
Posts: n/a
Default What's the correct formula?

Hi all,
I'm looking for the correct formula for this expression.

=COUNTIF((Your_Range,"hat and coat") or COUNTIF(Your_Range,"hat")) and
(range,"New York")

The first two criteria are possible selections and the third is a must in
order to count the record as 1

My question is what would be the logical expression(formula) to show this.
--
--
Cheers
  #3   Report Post  
bj
 
Posts: n/a
Default

try
=sumproduct(--(or(yourrange="hat and coat",yourrange="hat"),--(range="New
York"))
the --( changes the logical true false to numeric 1,0.
the arrays in each section must be the same size but wont work with the
shrrthand for full columns or rows (A:A wont work)

"zubee" wrote:

Hi all,
I'm looking for the correct formula for this expression.

=COUNTIF((Your_Range,"hat and coat") or COUNTIF(Your_Range,"hat")) and
(range,"New York")

The first two criteria are possible selections and the third is a must in
order to count the record as 1

My question is what would be the logical expression(formula) to show this.
--
--
Cheers

  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Mon, 5 Sep 2005 07:50:09 -0700, "zubee"
wrote:

Hi all,
I'm looking for the correct formula for this expression.

=COUNTIF((Your_Range,"hat and coat") or COUNTIF(Your_Range,"hat")) and
(range,"New York")

The first two criteria are possible selections and the third is a must in
order to count the record as 1

My question is what would be the logical expression(formula) to show this.
--



=--(((COUNTIF(Your_Range,"hat and coat") + COUNTIF(Your_Range,"hat")) *
COUNTIF(range,"New York")) 0)

=IF(AND(OR(COUNTIF(Your_Range,"hat and coat"),
COUNTIF(Your_Range,"hat")),COUNTIF(range,"New York")),1,0)


--ron
  #5   Report Post  
KL
 
Posts: n/a
Default

Hi zubee,

the first OR condition can be realised via:

=COUNTIF((Your_Range,"hat*")

if you need to add the AND condition applying to another range, then use:

=SUMPRODUCT(ISNUMBER(SEARCH("hat",A1:A10))*(B1:B10 ="new york"))

or

=SUMPRODUCT(--ISNUMBER(SEARCH("hat",A1:A10)),--(B1:B10="new york"))

Regards,
KL

"Don Guillett" wrote in message
...
try
=SUMPRODUCT((K7:K8={"hat","coat"})*1)

--
Don Guillett
SalesAid Software

"zubee" wrote in message
...
Hi all,
I'm looking for the correct formula for this expression.

=COUNTIF((Your_Range,"hat and coat") or COUNTIF(Your_Range,"hat")) and
(range,"New York")

The first two criteria are possible selections and the third is a must in
order to count the record as 1

My question is what would be the logical expression(formula) to show
this.
--
--
Cheers





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
problem with formula wu-fu Excel Discussion (Misc queries) 1 July 10th 05 10:22 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
Offset & Match Formula Shows Duplicates Joe Gieder Excel Worksheet Functions 14 December 7th 04 05:35 PM
Excel 2003 - Formula result shows as 0:00 Serena Excel Worksheet Functions 4 November 11th 04 10:18 PM
Formula window displays correct answer while cell displays incorre MMV Excel Worksheet Functions 3 November 10th 04 09:28 PM


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