Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default count 1 cell in column based on value in another cell

I have a table that looks like the following

one Y
one
two
two
three Y
three Y
three

What I am trying to do is count the numbers of Y's based on the value in the
first column


ie......count y's if column 1 = 3

Thanks
Tim


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default count 1 cell in column based on value in another cell

Is that 3 or three?

=SUMPRODUCT(--(A1:A100=3),--(B1:B100="Y")

or

=SUMPRODUCT(--(A1:A100="three"),--(B1:B100="Y")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Tim" wrote in message
...
I have a table that looks like the following

one Y
one
two
two
three Y
three Y
three

What I am trying to do is count the numbers of Y's based on the value in

the
first column


ie......count y's if column 1 = 3

Thanks
Tim




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
Sum Cell Values of one column based on Another Cell Value in a different column kristenb via OfficeKB.com Excel Worksheet Functions 5 April 26th 23 07:41 PM
Count the number of cell based on the value of certain cell wilchong via OfficeKB.com New Users to Excel 6 September 25th 08 07:59 AM
conditional cell format based on cell in same row, previous column tamiluchi Excel Worksheet Functions 7 May 3rd 06 04:11 PM
Format cell in column B based on value in the next cell (column c) Nicole Excel Discussion (Misc queries) 7 May 18th 05 10:19 PM
Deleting Rows based on text in cell & formatting cell based on text in column beside it Steve Excel Programming 4 February 26th 04 03:31 PM


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