#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Vicki Leatherberry
 
Posts: n/a
Default Countif????

In the mainframe report writer I do something like the following


"amount" ( in ) 22,24,30,33.5,40,44 to identify the record if any of those
amounts are found. How do I convert that code to excel since COUNTIF only
allows 1 condition to be met.

--
vickilynn
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Countif????

If you just want to test it then

=IF(ISNUMBER(MATCH(A1,{22,24,30,33.5,40,44},0)),"a ","b")

to count them

=SUMPRODUCT(--(ISNUMBER(MATCH(A1:A100,{22,24,30,33.5,40,44},0))) )

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Vicki Leatherberry" wrote in message
...
In the mainframe report writer I do something like the following


"amount" ( in ) 22,24,30,33.5,40,44 to identify the record if any of those
amounts are found. How do I convert that code to excel since COUNTIF only
allows 1 condition to be met.

--
vickilynn



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Vicki Leatherberry
 
Posts: n/a
Default Countif????

thanks Bob, that was exactly what I needed
--
vickilynn


"Bob Phillips" wrote:

If you just want to test it then

=IF(ISNUMBER(MATCH(A1,{22,24,30,33.5,40,44},0)),"a ","b")

to count them

=SUMPRODUCT(--(ISNUMBER(MATCH(A1:A100,{22,24,30,33.5,40,44},0))) )

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Vicki Leatherberry" wrote in message
...
In the mainframe report writer I do something like the following


"amount" ( in ) 22,24,30,33.5,40,44 to identify the record if any of those
amounts are found. How do I convert that code to excel since COUNTIF only
allows 1 condition to be met.

--
vickilynn




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
Countif Formula /Sort Bug??? orcfodder Excel Discussion (Misc queries) 2 January 12th 06 10:04 AM
Formula format for Count or Countif funtion with two criterias Debi Excel Worksheet Functions 2 September 26th 05 08:23 PM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


All times are GMT +1. The time now is 01:58 AM.

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"