#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default Countif Formula

This has to be easy...
column "J" I need to count how many times "Alabama" shows in column "I" only
if column "H" = either "HOUSES" or "CONDOS" or "Apartments"

ANy help would be appreacited.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Countif Formula

Lime wrote:
This has to be easy...
column "J" I need to count how many times "Alabama" shows in column "I" only
if column "H" = either "HOUSES" or "CONDOS" or "Apartments"

ANy help would be appreacited.



=SUMPRODUCT(((H1:H10="HOUSES")+(H1:H10="CONDOS")+( H1:H10="Apartments"))*(I1:I10="Alabama"))
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Countif Formula

Try this...

Use cells to hold the criteria:

A1 = Alabama
B1 = Houses
B2 = Condos
B3 = Apartments

=SUMPRODUCT(--(I1:I5=A1),--(ISNUMBER(MATCH(H1:H5,B1:B3,0))))

--
Biff
Microsoft Excel MVP


"Lime" wrote in message
...
This has to be easy...
column "J" I need to count how many times "Alabama" shows in column "I"
only
if column "H" = either "HOUSES" or "CONDOS" or "Apartments"

ANy help would be appreacited.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Countif Formula

Hi,

=if(or(H1:H1000="HOUSES",H1:H1000="CONDOS"),count( I1:I1000,"Alabama","")

if neither houses or condos are in column H the formula will display a blank

"Lime" wrote:

This has to be easy...
column "J" I need to count how many times "Alabama" shows in column "I" only
if column "H" = either "HOUSES" or "CONDOS" or "Apartments"

ANy help would be appreacited.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Countif Formula

Glenn wrote:
Lime wrote:
This has to be easy...
column "J" I need to count how many times "Alabama" shows in column
"I" only if column "H" = either "HOUSES" or "CONDOS" or "Apartments"

ANy help would be appreacited.



=SUMPRODUCT(((H1:H10="HOUSES")+(H1:H10="CONDOS")+( H1:H10="Apartments"))*(I1:I10="Alabama"))


Or this:

=SUMPRODUCT(((H1:H10={"HOUSES","CONDOS","Apartment s"}))*(I1:I10="Alabama"))


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Countif Formula

Couldn't get that to work...

Eduardo wrote:
Hi,

=if(or(H1:H1000="HOUSES",H1:H1000="CONDOS"),count( I1:I1000,"Alabama","")

if neither houses or condos are in column H the formula will display a blank

"Lime" wrote:

This has to be easy...
column "J" I need to count how many times "Alabama" shows in column "I" only
if column "H" = either "HOUSES" or "CONDOS" or "Apartments"

ANy help would be appreacited.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Countif Formula

T. Valko wrote:
Try this...

Use cells to hold the criteria:

A1 = Alabama
B1 = Houses
B2 = Condos
B3 = Apartments

=SUMPRODUCT(--(I1:I5=A1),--(ISNUMBER(MATCH(H1:H5,B1:B3,0))))



I like that. Is there a reason for your syntax over this?

=SUMPRODUCT((I1:I5=A1)*(ISNUMBER(MATCH(H1:H5,B1:B3 ,0))))
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Countif Formula

Is there a reason for your syntax over this?

It's slightly more efficient, especially on big ranges.


--
Biff
Microsoft Excel MVP


"Glenn" wrote in message
...
T. Valko wrote:
Try this...

Use cells to hold the criteria:

A1 = Alabama
B1 = Houses
B2 = Condos
B3 = Apartments

=SUMPRODUCT(--(I1:I5=A1),--(ISNUMBER(MATCH(H1:H5,B1:B3,0))))



I like that. Is there a reason for your syntax over this?

=SUMPRODUCT((I1:I5=A1)*(ISNUMBER(MATCH(H1:H5,B1:B3 ,0))))



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default Countif Formula

Thanks... It worked GREAT!!!!!

"Glenn" wrote:

Glenn wrote:
Lime wrote:
This has to be easy...
column "J" I need to count how many times "Alabama" shows in column
"I" only if column "H" = either "HOUSES" or "CONDOS" or "Apartments"

ANy help would be appreacited.



=SUMPRODUCT(((H1:H10="HOUSES")+(H1:H10="CONDOS")+( H1:H10="Apartments"))*(I1:I10="Alabama"))


Or this:

=SUMPRODUCT(((H1:H10={"HOUSES","CONDOS","Apartment s"}))*(I1:I10="Alabama"))

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Countif Formula

Hi,

Here's another approache

=SUMPRODUCT((I1:I6=A1)*(H1:H6=B1:D1))

Where A1 contains Alabama, and B1:D1 your 3 types of housing.

direction is important.
--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Lime" wrote:

This has to be easy...
column "J" I need to count how many times "Alabama" shows in column "I" only
if column "H" = either "HOUSES" or "CONDOS" or "Apartments"

ANy help would be appreacited.

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 Paul E Excel Worksheet Functions 4 November 5th 08 02:04 PM
Formula Help (countif, I think....) RUSH2CROCHET Excel Discussion (Misc queries) 2 June 6th 08 10:14 PM
Formula Countif TRM Excel Discussion (Misc queries) 2 September 11th 06 08:25 PM
CountIf formula results in the formula itself being displayed. NewKid Excel Worksheet Functions 9 December 21st 05 11:10 PM
Countif formula and then some... Julie Excel Worksheet Functions 6 July 27th 05 08:13 PM


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