Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default What am I missing?

Ok I have a worksheet that I enter all my daily information into for my job.
In one column i enter either J or R to let me know what type of transaction
it is.
in another column i enter a category which can be 1 of 5 words.

What I want is a count of all transactions from category 1 that are of type J
so lets say in column A i have(from row 1 to 5) R J J R J
and from Colmn B i have(from row 1 to 5) Circle Circle Square Square Circle

I then want a count of how many Circles i have of type R.

I tried to use the COUNTIF function like so...
=COUNTIF(A1:A5,"R") & COUNTIF(B1:B5,"Circle")
the answer i got was 23 2 = the number of R's in that column and 3 =
number of "circle" in that column. not exactly what i wanted.

So I ask you, what am I missing? I'm fairly new to this type of excel
formating so I'm probably using the wrong function or using it in the wrong
manner. Thanks for any help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 461
Default What am I missing?

Try this

=SUMPRODUCT((A1:A5="R")*(B1:B5="Circle"))


"barrett" wrote:

Ok I have a worksheet that I enter all my daily information into for my job.
In one column i enter either J or R to let me know what type of transaction
it is.
in another column i enter a category which can be 1 of 5 words.

What I want is a count of all transactions from category 1 that are of type J
so lets say in column A i have(from row 1 to 5) R J J R J
and from Colmn B i have(from row 1 to 5) Circle Circle Square Square Circle

I then want a count of how many Circles i have of type R.

I tried to use the COUNTIF function like so...
=COUNTIF(A1:A5,"R") & COUNTIF(B1:B5,"Circle")
the answer i got was 23 2 = the number of R's in that column and 3 =
number of "circle" in that column. not exactly what i wanted.

So I ask you, what am I missing? I'm fairly new to this type of excel
formating so I'm probably using the wrong function or using it in the wrong
manner. Thanks for any help

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default What am I missing?

Yes I think that's what i was looking for. Thanks much. Seems to work
correctly I'll test it more.

"AKphidelt" wrote:

Try this

=SUMPRODUCT((A1:A5="R")*(B1:B5="Circle"))


"barrett" wrote:

Ok I have a worksheet that I enter all my daily information into for my job.
In one column i enter either J or R to let me know what type of transaction
it is.
in another column i enter a category which can be 1 of 5 words.

What I want is a count of all transactions from category 1 that are of type J
so lets say in column A i have(from row 1 to 5) R J J R J
and from Colmn B i have(from row 1 to 5) Circle Circle Square Square Circle

I then want a count of how many Circles i have of type R.

I tried to use the COUNTIF function like so...
=COUNTIF(A1:A5,"R") & COUNTIF(B1:B5,"Circle")
the answer i got was 23 2 = the number of R's in that column and 3 =
number of "circle" in that column. not exactly what i wanted.

So I ask you, what am I missing? I'm fairly new to this type of excel
formating so I'm probably using the wrong function or using it in the wrong
manner. Thanks for any help

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
i'm missing something [email protected] Excel Worksheet Functions 11 February 17th 07 06:23 AM
add-ins missing Newbie Excel Worksheet Functions 1 March 7th 06 08:29 PM
Toolbars Missing, And option to Add Missing SmeetaG Excel Discussion (Misc queries) 3 October 19th 05 11:43 AM
Missing row Kim Excel Discussion (Misc queries) 4 August 19th 05 12:47 AM
Missing Row Debbie Humphrey Excel Worksheet Functions 3 January 12th 05 06:26 PM


All times are GMT +1. The time now is 02:32 PM.

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"